/* QUICK_GUIDE_MAIN_V1: catalog typography, spacing, list height and notes stay original. */
#howModal .xkg2-catalog { display: contents; }
#howModal .xkg2-card [hidden] { display: none !important; }
#howModal .xkg2-tabs {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 4px; flex: 0 0 auto;
  margin: 0 44px 14px 0; padding: 4px; min-height: 42px; border: 1px solid #bd8aaa99;
  border-radius: 24px; background: linear-gradient(115deg,#52283e80,#28203a90);
  box-shadow: inset 0 1px 0 #ffffff18, 0 0 18px #f272b025;
  letter-spacing: 0;
}
#howModal .xkg2-tab {
  display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0;
  min-height: 34px; padding: 5px 8px; border: 1px solid transparent; border-radius: 20px;
  background: none; color: #f6d9ec; font-family: inherit; font-size: 14px; line-height: 1.15;
  font-weight: 850; letter-spacing: 0; white-space: nowrap; cursor: pointer;
}
#howModal .xkg2-tab[aria-selected="true"] { color: #fff; background: linear-gradient(110deg,#b14281,#8060a5); border-color: #ffc0dd8c; box-shadow: inset 0 1px 0 #ffffff25; }
#howModal .xkg2-tab:last-child:not([aria-selected="true"]) { color: #ffe0a6; }
#howModal .xkg2-tab svg { width: 15px; height: 15px; flex: 0 0 15px; }
#howModal .xkg2-new { width: 5px; height: 5px; border-radius: 50%; background: #ffdf98; box-shadow: 0 0 7px #ffe1a1; }
#howModal.show .xkg2-card:not(.guide-seen) .xkg2-tabs { animation: xkg2-pulse 2.8s ease-in-out infinite; }
#howModal .xkg2-card .modal-top-row { top: 24px; }
#howModal .xkg2-card.is-guide { height: min(690px,calc(100vh - 28px)); height: min(690px,calc(100dvh - 28px)); }
#howModal.show .xkg2-card.is-guide { transform: none; }
#howModal .xkg2-card.is-guide .modal-inner { height: 100%; min-height: 0; max-height: none; overflow: hidden; }
#howModal .xkg2-guide {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 1px 0;
  scrollbar-width: thin; scrollbar-color: #b17e9a88 #ffffff08; letter-spacing: 0; text-align: left;
}
#howModal .xkg2-guide::-webkit-scrollbar { width: 4px; display: block; }
#howModal .xkg2-guide::-webkit-scrollbar-thumb { border-radius: 4px; background: #b17e9a88; }
#howModal .xkg2-title { margin: 2px 0 13px; color: #fff0f8; font-size: 21px; line-height: 1.25; font-weight: 900; text-align: center; letter-spacing: 0; }
#howModal .xkg2-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 82px 114px 72px 100px; gap: 10px; padding: 2px; border: 0; }
#howModal .xkg2-topic {
  --accent: #f1a9cc; --tint: #ec60a9; display: grid; grid-template-columns: minmax(0,1fr) 18px; grid-template-rows: 28px 1fr;
  align-items: start; gap: 6px; width: 100%; min-height: 0; height: 100%; padding: 11px 12px; border-radius: 8px;
  border: 1px solid #ffffff32; box-shadow: inset 0 1px 0 #ffffff20;
  color: #fff0f8; text-align: left; font-family: inherit; cursor: pointer;
}
#howModal .drops { --accent: #a4edf3; --tint: #64d5e4; }
#howModal .bonus { --accent: #ffe19d; --tint: #ecc273; }
#howModal .leaders { --accent: #f0d6a4; --tint: #ccb05d; }
#howModal .wishlist { --accent: #ffbdcf; --tint: #e57b9c; }
#howModal .message { --accent: #e2b9f4; --tint: #c58fed; }
#howModal .xkg2-topic.spin { background: linear-gradient(110deg,#963d75,#51416c); }
#howModal .xkg2-topic.drops { background: linear-gradient(135deg,#15586b,#173f45); }
#howModal .xkg2-topic.bonus { background: linear-gradient(135deg,#71501f,#674333); }
#howModal .xkg2-topic.leaders { background: linear-gradient(110deg,#184f48,#285645); }
#howModal .xkg2-topic.wishlist { background: linear-gradient(135deg,#68344b,#532c42); }
#howModal .xkg2-topic.message { background: linear-gradient(135deg,#534779,#38315d); }
#howModal .xkg2-topic-copy { display: grid; grid-area: 2 / 1 / 3 / 3; gap: 5px; min-width: 0; flex: 1; }
#howModal .xkg2-topic-copy strong { font-size: 15px; line-height: 1.2; font-weight: 900; color: #fff3fa; }
#howModal .xkg2-topic-copy > span { font-size: 11px; line-height: 1.25; font-weight: 500; color: #e6dce8; }
#howModal .xkg2-topic > svg { grid-area: 1 / 2; width: 17px; height: 17px; flex: 0 0 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: #edcedf; }
#howModal .xkg2-art { grid-area: 1 / 1; width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 0; background: none; color: #f9e6f3; }
#howModal .xkg2-art > svg { width: 25px; height: 25px; filter: none; }
#howModal .spin .xkg2-art > svg { fill: #ffcf64; stroke: #ffe4a6; }
#howModal .xkg2-topic:nth-child(1), #howModal .xkg2-topic:nth-child(4) { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
#howModal .xkg2-topic:nth-child(1) .xkg2-art { width: 39px; height: 39px; flex-basis: 39px; }
#howModal .xkg2-topic:nth-child(1) .xkg2-art svg { width: 36px; height: 36px; }
#howModal .xkg2-topic:nth-child(1) .xkg2-topic-copy strong { font-size: 18px; }
#howModal .xkg2-topic:nth-child(4) .xkg2-art { width: 32px; height: 32px; flex-basis: 32px; }
#howModal .xkg2-topic:nth-child(4) .xkg2-topic-copy strong { font-size: 16px; }
#howModal .xkg2-protected {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 15px 0 0; padding: 12px 10px;
  border: 1px solid #8ee6c64f; border-radius: 8px; color: #a9f0d4;
  background: linear-gradient(110deg,#257f6e33,#1d353d25); text-align: left; font-family: inherit; cursor: pointer;
}
#howModal .xkg2-protected > svg { width: 21px; height: 21px; flex: 0 0 21px; }
#howModal .xkg2-protected > svg:last-child { margin-left: auto; width: 15px; height: 15px; flex-basis: 15px; }
#howModal .xkg2-protected > span { display: grid; gap: 3px; }
#howModal .xkg2-protected strong { font-size: 14px; line-height: 1.2; font-weight: 900; }
#howModal .xkg2-protected span > span { font-size: 12px; line-height: 1.3; color: #d4e6df; }
#howModal .xkg2-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 0 14px; border: 1px solid #d999bd80; border-radius: 24px; background: linear-gradient(110deg,#573047,#3b2a46); box-shadow: inset 0 1px 0 #ffffff20,0 0 14px #e986b42a; color: #fff0f8; font: inherit; font-size: 14px; line-height: 1.2; font-weight: 850; white-space: nowrap; cursor: pointer; }
#howModal .xkg2-back svg { width: 20px; height: 20px; flex: 0 0 20px; }
#howModal .xkg2-back:hover { border-color: #efbbd7; background: linear-gradient(110deg,#6b3a57,#4e355b); }
#howModal .xkg2-detail-title { margin: 4px 0 7px; color: #fff1f9; font-size: 23px; line-height: 1.25; font-weight: 900; outline: none; letter-spacing: 0; }
#howModal .xkg2-guide.is-reading { display: flex; flex-direction: column; flex: 1; overflow: hidden; padding: 2px 0 0; }
#howModal .is-reading .xkg2-detail { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#howModal .xkg5-reader-head { flex: 0 0 auto; padding-bottom: 12px; border-bottom: 1px solid #d2a1bd30; }
#howModal .xkg5-reader-head .xkg2-detail-title { margin: 10px 0 0; overflow-wrap: break-word; }
#howModal .xkg5-reader-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 4px 16px 0; scroll-padding: 14px; scrollbar-width: thin; scrollbar-color: #c18eab80 #ffffff07; }
#howModal .xkg5-reader-content::-webkit-scrollbar { width: 4px; }
#howModal .xkg5-reader-content::-webkit-scrollbar-thumb { background: #c18eab80; border-radius: 4px; }
#howModal .xkg2-preview { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 112px; margin-bottom: 18px; padding: 12px; border-top: 1px solid #b68da430; border-bottom: 1px solid #b68da430; background: linear-gradient(110deg,#b9538930,#32346a24); }
#howModal .xkg2-preview-modes { display: grid; grid-template-columns: 1fr 1fr; width: 126px; padding: 4px; gap: 6px; border: 1px solid #d7b4cc66; border-radius: 24px; background: #ffffff0c; font-size: 15px; text-align: center; }
#howModal .xkg2-preview-modes > * { padding: 6px; }
#howModal .xkg2-preview-modes > b { border-radius: 20px; color: white; background: linear-gradient(110deg,#ff47a8,#ffb752); }
#howModal .xkg2-preview-spin { display: flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 25px; background: linear-gradient(110deg,#ff47a8,#ffb752); color: white; font-size: 18px; font-weight: 900; box-shadow: 0 7px 22px #ff4e9550; }
#howModal .xkg2-preview-spin svg { width: 18px; height: 18px; fill: #ffe39a; stroke: #ffe39a; }
#howModal .xkg2-preview.message { flex-direction: column; gap: 10px; }
#howModal .xkg2-preview-chat { display: grid; gap: 7px; width: min(100%,240px); font-size: 13px; }
#howModal .xkg2-preview-chat span { padding: 8px 14px; width: max-content; max-width: 100%; border: 1px solid #c997bb55; background: #9e4f7d66; border-radius: 8px; }
#howModal .xkg2-preview-chat span:first-child { justify-self: end; }
#howModal .xkg2-preview-chat span:last-child { background: #6c608344; }
#howModal .xkg2-reply-time { display: flex; align-items: center; gap: 5px; color: #f6d39d; font-size: 12px; font-weight: 750; }
#howModal .xkg2-reply-time svg { width: 14px; height: 14px; }
#howModal .xkg3-interface { display: block; padding: 10px 12px; margin-bottom: 14px; cursor: default; user-select: none; }
#howModal .xkg3-mini-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 8px; }
#howModal .xkg3-mini-head > strong { display: flex; align-items: center; gap: 6px; min-width: 0; color: #fff0f9; font-size: 14px; line-height: 1.3; font-weight: 850; }
#howModal .xkg3-mini-head svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--accent,#e6bad5); }
#howModal .xkg3-example { color: #d9c5d6; font-size: 11px; font-weight: 500; line-height: 1.3; }
#howModal .xkg3-mini-segments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 3px; padding: 3px; margin-bottom: 10px; border: 1px solid #c19bb057; border-radius: 20px; background: #08071060; text-align: center; font-size: 11px; line-height: 1.2; color: #e8d7e9; font-weight: 800; }
#howModal .xkg3-mini-segments > span { padding: 5px 2px; min-width: 0; }
#howModal .xkg3-mini-segments .selected { border-radius: 16px; background: linear-gradient(110deg,#b5578f,#9773ad); color: #fff4fa; box-shadow: inset 0 1px 0 #ffffff2c; }
#howModal .xkg3-drop-grid, #howModal .xkg3-wishes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
#howModal .xkg3-drop-item { overflow: hidden; border: 1px solid #e2adc43b; border-radius: 8px; background: #160f1d; }
#howModal .xkg3-drop-item img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: center 20%; }
#howModal .xkg3-drop-item > span { display: flex; align-items: center; gap: 5px; padding: 7px 8px; color: #d6e8df; font-size: 11px; font-weight: 700; }
#howModal .xkg3-drop-item svg { width: 12px; height: 12px; color: #a4edcf; }
#howModal .xkg3-interface.bonus { background: linear-gradient(140deg,#654d8499,#4934a18c); border-color: #8199ff80; }
#howModal .xkg3-point-chips { display: flex; gap: 7px; margin-bottom: 8px; }
#howModal .xkg3-point-chips > span { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; padding: 5px 7px; border-radius: 16px; background: #110e2966; color: #ffe2a7; font-size: 11px; font-weight: 800; }
#howModal .xkg3-point-chips svg { width: 11px; height: 11px; fill: #ffd681; stroke: #ffd681; }
#howModal .xkg3-bonus-next { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff1f8; font-size: 12px; line-height: 1.4; }
#howModal .xkg3-bonus-next > b { white-space: nowrap; color: #ffe6a2; }
#howModal .xkg3-bonus-track { height: 7px; margin: 8px 0 6px; overflow: hidden; border-radius: 9px; background: #ffffff16; }
#howModal .xkg3-bonus-track > span { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg,#7454ff,#84a5ff,#f183d4); }
#howModal .xkg3-bonus-caption { display: block; font-size: 11px; line-height: 1.4; color: #e7d8ef; text-align: center; }
#howModal .xkg3-bonus-path { display: grid; gap: 5px; margin-top: 8px; }
#howModal .xkg3-bonus-path > div { display: flex; align-items: center; gap: 7px; min-height: 28px; padding: 6px 8px; border-radius: 8px; background: #15102670; color: #e7e0ef; font-size: 11px; font-weight: 700; }
#howModal .xkg3-bonus-path svg { width: 12px; height: 12px; flex: 0 0 12px; color: #a7edcc; }
#howModal .xkg3-bonus-path b { margin-left: auto; color: #ffe0a5; }
#howModal .xkg3-bonus-path .next { outline: 1px solid #eab9e46b; background: #bf7db12c; }
#howModal .xkg3-interface.leaders { background: linear-gradient(135deg,#17665d88,#45604d66); border-color: #b4a16c77; }
#howModal .xkg3-interface.leaders .selected { background: linear-gradient(100deg,#387b70,#7b6640); }
#howModal .xkg3-leader-rows { display: grid; gap: 4px; }
#howModal .xkg3-leader-rows > div { display: flex; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 8px; background: #061c20bf; font-size: 12px; line-height: 1.3; color: #e2f0e8; }
#howModal .xkg3-leader-rows b { color: #ffe3a1; font-weight: 900; }
#howModal .xkg3-leader-rows svg { margin-left: auto; width: 13px; height: 13px; color: #e8c77d; }
#howModal .xkg3-profile-strip { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; margin-top: 8px; padding: 6px 8px; border: 1px solid #d1a5cd88; border-radius: 16px; background: linear-gradient(105deg,#c94697,#5f89ab); font-size: 12px; color: #fff; }
#howModal .xkg3-profile-strip svg { width: 13px; height: 13px; flex: 0 0 13px; }
#howModal .xkg3-profile-strip > strong { flex: 1; text-align: center; }
#howModal .xkg3-showcase { display: flex; justify-content: center; gap: 12px; margin: 8px 0 1px; }
#howModal .xkg3-showcase > span { padding: 4px 10px; border: 1px solid #ffffff44; border-radius: 18px; color: #fff2fb; font-size: 11px; font-weight: 850; line-height: 1.3; box-shadow: 0 0 10px #ed8bc52b; }
#howModal .xkg3-showcase .vip { background: linear-gradient(110deg,#9c467c,#6f456e); border-color: #d694be; }
#howModal .xkg3-showcase .trophy { background: linear-gradient(110deg,#564924,#2c2b18); color: #ffe3a3; border-color: #be9e55; }
#howModal .xkg3-showcase .set { background: linear-gradient(110deg,#67319c,#b258a0); border-color: #c89ce9; }
#howModal .xkg3-interface.wishlist { background: linear-gradient(135deg,#49224d80,#241a3550); border-color: #c089b557; }
#howModal .xkg3-wishes > div { overflow: hidden; border: 1px solid #d5adc04a; border-radius: 8px; background: #120d1c; }
#howModal .xkg3-wishes img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; }
#howModal .xkg3-wishes strong { display: block; padding: 8px; color: #f6deee; font-size: 12px; line-height: 1.3; font-weight: 750; }
#howModal .xkg2-steps { counter-reset: guide; list-style: none; margin: 0 0 16px; padding: 0; }
#howModal .xkg2-steps li { counter-increment: guide; position: relative; padding: 3px 0 22px 42px; margin: 0; }
#howModal .xkg2-steps li:last-child { padding-bottom: 0; }
#howModal .xkg2-steps li::before { content: counter(guide); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d7a6c480; border-radius: 50%; color: #fff0f8; background: linear-gradient(135deg,#75445f,#3a2945); font-size: 14px; font-weight: 850; }
#howModal .xkg2-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 35px; bottom: 5px; width: 1px; background: linear-gradient(#bd8aa469,#bd8aa41c); pointer-events: none; }
#howModal .xkg2-steps strong { color: #fff1f9; font-size: 16px; line-height: 1.4; font-weight: 850; }
#howModal .xkg2-steps p { margin: 6px 0 0; color: #e4d4e2; font-size: 15px; line-height: 1.5; font-weight: 450; }
#howModal .xkg2-no-repeats { margin: 0 0 16px; padding: 0 0 0 12px; border-left: 2px solid #91e4c4; outline: none; }
#howModal .xkg2-no-repeats h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; font-size: 15px; font-weight: 900; color: #a4edcf; }
#howModal .xkg2-no-repeats h3 svg { width: 16px; height: 16px; }
#howModal .xkg2-jackpot { display: block; color: #ffdfa5; font-size: 14px; line-height: 1.5; }
#howModal .xkg2-rules { margin-top: 8px; font-size: 12px; color: #d2bdce; line-height: 1.5; }
#howModal .xkg2-rules summary { cursor: pointer; }
#howModal .xkg2-rules p { margin: 6px 0 0; }
#howModal .xkg2-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; padding: 12px 0 2px; border-top: 1px solid #d2a1bd30; }
#howModal .xkg2-action { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; flex: 1 1 130px; padding: 10px 14px; border: 1px solid #ffc2dc7a; border-radius: 24px; background: linear-gradient(110deg,#bb498e,#8463a5); box-shadow: inset 0 1px 0 #ffffff25,0 5px 18px #d3559c25; color: #fff6fc; font-family: inherit; font-size: 15px; line-height: 1.3; font-weight: 850; cursor: pointer; }
#howModal .xkg2-action svg { width: 16px; height: 16px; flex: 0 0 16px; }
#howModal .xkg2-action + .xkg2-action { background: #ffffff0b; box-shadow: none; color: #f4cce4; }
#howModal .xkg2-notice { color: #ffd69c; font-size: 12px; line-height: 1.4; }
#howModal .xkg2-notice:empty { display: none; }
#howModal .xkg2-card button:focus-visible, #howModal .xkg2-card summary:focus-visible { outline: 2px solid #ffe1ad; outline-offset: 2px; }
#howModal .xkg2-topic:hover { background-color: #d988bd0d; }
@keyframes xkg2-pulse { 0%,100% { border-color: #bd8aaa99; box-shadow: inset 0 1px 0 #ffffff18,0 0 12px #f272b025; } 50% { border-color: #edb7cb; box-shadow: inset 0 1px 0 #ffffff25,0 0 22px #f272b05c; } }
@media (max-width:360px) {
  #howModal .xkg2-tab { font-size: 12px; padding: 4px; }
  #howModal .xkg2-title { font-size: 19px; }
  #howModal .xkg2-menu { grid-template-rows: 86px 124px 86px 116px; gap: 8px; }
  #howModal .xkg2-topic { padding-inline: 9px; }
  #howModal .xkg2-topic:nth-child(1), #howModal .xkg2-topic:nth-child(4) { gap: 8px; }
  #howModal .xkg2-topic:nth-child(1) .xkg2-art { width: 30px; height: 30px; flex-basis: 30px; }
  #howModal .xkg2-topic:nth-child(1) .xkg2-topic-copy strong { font-size: 16px; }
  #howModal .xkg2-topic:nth-child(4) .xkg2-topic-copy strong { font-size: 15px; }
  #howModal .xkg2-preview { gap: 10px; padding: 10px 5px; }
  #howModal .xkg2-preview-spin { padding: 10px 15px; }
}
@media (min-width:361px) {
  #howModal .xkg2-detail:not([data-topic="spin"]):not([data-topic="message"]) .xkg2-actions { flex-wrap: nowrap; }
  #howModal .xkg2-detail:not([data-topic="spin"]):not([data-topic="message"]) .xkg2-action { flex: 1 1 0; min-width: 0; padding-inline: 9px; gap: 6px; white-space: nowrap; }
  #howModal .xkg2-detail:not([data-topic="spin"]):not([data-topic="message"]) .xkg2-action:first-child { flex-grow: 1.25; }
}
@media (prefers-reduced-motion:reduce) { #howModal .xkg2-card, #howModal .xkg2-card *, #howModal .xkg2-card::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
