/* 게임 사전 */
#help-open { display: inline-flex; align-items: center; gap: 6px; background: #19302f; border-color: #405b55; color: #d7ece3; padding: 7px 11px; white-space: nowrap; }
#help-open .ui-icon, #ticket-help .ui-icon { width: 17px; height: 17px; flex: none; }
#help-open:hover, #top #ticket-help:hover { background: #28413a; border-color: #8bbb97; }
#game-help { color: #ecf3ef; background: #111b1d; padding: 0; width: min(1050px, calc(100vw - 36px)); max-width: none; max-height: min(850px, calc(100dvh - 36px)); border: 1px solid #59746b; border-radius: 20px; box-shadow: 0 30px 90px #000b; overflow: hidden; }
#game-help[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
#game-help::backdrop { background: #050a0dc9; }
#game-help .help-header { display: grid; grid-template-columns: 1fr auto; gap: 15px; padding: 20px 24px 22px; background: linear-gradient(91deg, #122a2f 7%, #193b3ce8 48%, #17302fd1 85%), url('/art/ui/dex-atlas.webp') center 53% / cover; border-bottom: 1px solid #43594e; }
.help-title { display: flex; align-items: center; gap: 11px; }
.help-title h2 { font-size: 30px; margin: 0; letter-spacing: -.04em; }
.help-title > span { display: grid; place-items: center; width: 43px; height: 43px; background: #bfe2c7; color: #193a33; border-radius: 12px; box-shadow: inset 0 1px 1px #fff9, 0 4px 14px #020c0a55; }
.help-title .ui-icon { width: 23px; height: 23px; }
#game-help .help-close { align-self: center; border: 1px solid #7d9a9277; background: #101b1db3; padding: 0; width: 38px; height: 38px; font-size: 25px; line-height: 1; }
.help-search { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; color: #a9ccc1; background: #101a1de8; border: 1px solid #66877b; border-radius: 11px; padding: 3px 13px; }
.help-search:focus-within { border-color: #d2eb9e; box-shadow: 0 0 0 2px #c8eca52b; }
.help-search .ui-icon { width: 22px; height: 22px; flex: none; }
#game-help .help-search input { border: 0; outline: 0; color: #f6fbf8; font-size: 16px; background: transparent; padding: 10px 0; flex: 1; min-width: 0; }
#game-help .help-search input::placeholder { color: #a6b8b5; }
.help-body { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 0; height: min(640px, calc(100dvh - 196px)); }
.help-index, .help-detail { overflow: auto; overscroll-behavior: contain; scrollbar-color: #4b6560 transparent; }
.help-index { padding: 15px 12px; border-right: 1px solid #344845; background: #121e20; }
.help-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 3px 13px; border-bottom: 1px solid #2e4340; margin-bottom: 13px; }
#game-help .help-quick button, #game-help .help-related-items button { padding: 5px 9px; color: #d8eee3; background: #222f30; border-color: #405550; font-size: 13px; line-height: 1.4; border-radius: 30px; }
#game-help .help-quick button:hover, #game-help .help-related-items button:hover { background: #304a42; border-color: #96bea8; }
.help-index-group { margin: 0 0 15px; }
.help-index-group h3 { font-size: 12px; color: #a6bdb5; padding-left: 8px; margin: 0 0 5px; }
#game-help .help-index-item { width: 100%; background: transparent; padding: 6px 8px; display: grid; grid-template-columns: 29px minmax(0, 1fr) 13px; align-items: center; gap: 8px; border: 1px solid transparent; text-align: left; font-size: 14px; line-height: 1.25; min-height: 42px; }
#game-help .help-index-item[aria-current] { background: #27403a; border-color: #4b6c5f; color: #e6ffc9; }
#game-help .help-index-item:hover { background: #273739; }
.help-item-icon { color: #9dbfb1; display: grid; place-items: center; }
.help-item-icon .ui-icon { width: 18px; height: 18px; }
.help-index-item > .ui-icon { width: 13px; height: 13px; opacity: .7; }
.help-item-face { object-fit: contain; width: 29px; height: 29px; background: #263736; border-radius: 7px; }
.help-index-status, .help-empty { color: #a9c0bd; padding: 18px; }
.help-detail { min-width: 0; padding: 19px 25px 24px; outline: 0; }
.help-article-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #a6c0b9; font-size: 13px; }
#game-help .help-article-top button { display: none; }
.help-article-title, .help-player { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; }
.help-article-title > span, .help-player > .face { display: grid; place-items: center; flex: none; width: 55px; height: 55px; background: linear-gradient(145deg, #325049, #233439); color: #ceeaa9; border: 1px solid #58736a; border-radius: 13px; }
.help-player > .face { width: 72px; height: 72px; object-fit: contain; }
.help-article-title .ui-icon { width: 29px; height: 29px; }
.help-detail h3 { font-size: 29px; letter-spacing: -.035em; margin: 0 0 2px; line-height: 1.12; }
.help-detail h4 { font-size: 15px; color: #dcf0e9; margin: 0 0 7px; }
.help-article-title p, .help-player p { color: #b4c9c5; font-size: 14px; line-height: 1.45; margin: 4px 0 0; }
.help-status { background: linear-gradient(145deg, #243b39, #1b2c2e 80%); border: 1px solid #4b6861; border-radius: 12px; padding: 13px 15px; margin: 0 0 16px; }
.help-status h4 { color: #d7ecaf; }
.help-status p { margin: 6px 0; }
.help-status dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 15px; margin: 10px 0 0; }
.help-status dt { color: #b6cbc4; font-size: 12px; }
.help-status dd { margin: 2px 0 0; color: #f7fff1; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.help-status dd[data-help-countdown] { color: #f3daa3; }
.help-copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 21px; }
.help-copy { border-top: 1px solid #344945; padding: 11px 0; }
.help-copy ul { color: #c2cfce; margin: 0; padding-left: 17px; font-size: 14px; line-height: 1.55; }
.help-copy li + li { margin-top: 5px; }
.help-table { margin-top: 8px; border: 1px solid #39524d; border-radius: 10px; background: #19282b; }
.help-table summary { cursor: pointer; padding: 9px 12px; font-weight: 800; color: #d0e6df; font-size: 14px; }
.help-table > div { overflow: auto; }
.help-table table { width: 100%; border-collapse: collapse; text-align: left; }
.help-table :is(th, td) { font-size: 13px; padding: 6px 10px; border-top: 1px solid #314644; }
.help-table thead { background: #223437; color: #ecf8f0; }
.help-table tbody th { color: #c1d8d1; font-weight: 650; }
.help-actions, .help-related-items { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.help-actions { margin-top: 16px; }
#game-help .help-actions button { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; padding: 7px 10px; }
#game-help .help-actions .help-primary { background: #cde99b; border-color: #e3f6b8; color: #1b2a21; font-weight: 800; }
.help-actions .ui-icon { width: 13px; height: 13px; }
.help-related { margin-top: 17px; }
.help-base-card { margin: 0 0 9px; color: #c7d8c9; font-size: 13px; }

@media (min-width: 621px) {
  #game-help { margin-block: max(18px, calc((100dvh - 796px) / 2)) auto; }
  #game-help:has(.help-search input:not(:placeholder-shown)) .help-body {
    height: auto; min-height: min(260px, calc(100dvh - 196px)); max-height: min(640px, calc(100dvh - 196px));
  }
}
@media (max-width: 760px) {
  #help-open { padding: 6px; }
  #help-open .help-open-label { display: none; }
}
@media (max-width: 620px) {
  #game-help { width: calc(100vw - 14px); max-height: calc(100dvh - 14px); border-radius: 14px; }
  #game-help .help-header { padding: 11px 12px 13px; gap: 10px; }
  .help-title h2 { font-size: 24px; }
  .help-title > span { width: 34px; height: 34px; border-radius: 9px; }
  .help-title .ui-icon { width: 19px; height: 19px; }
  .help-body { display: block; height: min(730px, calc(100dvh - 138px)); }
  .help-detail, .help-index { height: 100%; padding: 12px; }
  .help-index { border: 0; }
  #game-help[data-screen="detail"] .help-index, #game-help[data-screen="index"] .help-detail { display: none; }
  #game-help .help-article-top button { display: inline-flex; font-size: 13px; padding: 4px 8px; }
  .help-copy-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .help-status dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  #top .b-name { font-size: 12px; }
  #top .wallet { gap: 3px; }
  #top #ticket-help { padding-inline: 5px; }
}

/* 운영 알림 */
#ntpop { background: #050a10cf; }
#ntpop .ntbox {
  --nt-light: #c7e4ff; --nt-line: #658bba; --nt-top: #233d5b; --nt-low: #131e30; --nt-button: #bddcf9;
  padding: 0; border: 1px solid var(--nt-line); background: var(--nt-low); border-radius: 19px; color: #f2f5fc;
  max-width: 570px; max-height: calc(100dvh - 32px); box-shadow: 0 23px 75px #000b, inset 0 0 0 1px #eef6ff0f;
  overscroll-behavior: contain; scrollbar-color: var(--nt-line) transparent;
}
#ntpop .nt-patch { --nt-light: #dce5ff; --nt-line: #7b8bc4; --nt-top: #30365f; --nt-low: #161b32; --nt-button: #c9d4f9; }
#ntpop .nt-award { --nt-light: #ffe8ac; --nt-line: #b39456; --nt-top: #59401f; --nt-low: #282119; --nt-button: #f5d88b; }
#ntpop .nt-celebrate { --nt-light: #ffe5b3; --nt-line: #c98462; --nt-top: #623028; --nt-low: #2d1f21; --nt-button: #ffcf9c; }
#ntpop .nt-own { max-width: 645px; box-shadow: 0 24px 90px #000e, 0 0 30px #ffcf7a30, inset 0 0 0 1px #fff2c44a; }
.nt-hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 14px 20px 20px; background: radial-gradient(ellipse at 50% 10%, #fff1bd21 0, transparent 60%), linear-gradient(150deg, var(--nt-top), var(--nt-low)); border-bottom: 1px solid color-mix(in srgb, var(--nt-line), transparent 50%); }
.nt-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--nt-light); text-align: start; font-size: 13px; font-weight: 800; }
#ntpop .ntpage { font-size: 12px; margin-left: auto; color: var(--nt-light); border: 1px solid #edf4ff30; background: #10102065; padding: 3px 8px; border-radius: 20px; font-variant-numeric: tabular-nums; }
.nt-emblem { display: grid; place-items: center; margin: 13px auto 8px; width: 57px; height: 57px; font-size: 28px; color: var(--nt-light); background: #fffcf316; border: 1px solid #fff2d556; border-radius: 15px; box-shadow: inset 0 1px 1px #ffffff28, 0 8px 18px #120a133a; }
.nt-hero h2 { font-size: 27px; line-height: 1.23; margin: 6px 0 0; letter-spacing: -.035em; overflow-wrap: anywhere; outline: 0; }
.nt-own .nt-hero { padding-block: 15px 24px; }
.nt-own .nt-emblem { width: 75px; height: 75px; font-size: 37px; border-radius: 22px; background: #ffd28820; box-shadow: 0 5px 26px #ffbb5951, inset 0 1px 1px #ffedbb51; }
.nt-own .nt-hero h2 { font-size: clamp(25px, 5.2vw, 37px); }
.nt-personal { display: inline-block; border: 1px solid #ffd69c63; background: #ffd69c20; color: #ffebc7; padding: 3px 9px; border-radius: 15px; margin-top: 10px; font-size: 12px; font-weight: 800; }
.nt-award .nt-hero::before, .nt-celebrate .nt-hero::before { content: ''; position: absolute; z-index: -1; inset: -155% -40% -45%; opacity: .48; transform-origin: 50% 66%; background: repeating-conic-gradient(from 14deg at 50% 66%, transparent 0deg 10deg, #ffe0a41d 12deg 15deg, transparent 19deg 31deg); animation: nt-rays .8s ease-out both; }
.nt-own .nt-hero::before { opacity: .85; }
.nt-award .nt-hero h2, .nt-celebrate .nt-hero h2 { animation: nt-title .42s cubic-bezier(.18,.82,.3,1.33) both; }
.nt-confetti { position: absolute; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; }
.nt-confetti i { position: absolute; left: calc(5% + var(--i) * 5%); top: 0; width: 5px; height: 9px; border-radius: 1px; background: #fed382; opacity: 0; animation: nt-fall 1.05s calc(var(--i) * 31ms) ease-out both; }
.nt-confetti i:nth-child(3n) { background: #f894a2; height: 6px; }
.nt-confetti i:nth-child(3n + 1) { background: #fff0b7; width: 4px; }
@keyframes nt-rays { from { transform: rotate(-10deg) scale(.8); } to { transform: rotate(0) scale(1); } }
@keyframes nt-title { from { opacity: 0; transform: scale(.86) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes nt-fall { 8% { opacity: .9; } 100% { opacity: 0; transform: translate(14px, 169px) rotate(212deg); } }
#ntpop .ntitem { margin: 0; border-radius: 0; background: transparent; padding: 16px 21px 10px; }
#ntpop .ntitem p { margin: 0; font-size: 15px; color: #e4eaf0; line-height: 1.65; overflow-wrap: anywhere; }
#ntpop .ntnav { margin: 3px 0 0; padding: 8px 21px 18px; }
#ntpop .ntnav button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; min-width: 85px; }
#ntpop #nt-next { color: #212027; background: var(--nt-button); border-color: var(--nt-light); font-weight: 900; }
#ntpop .ntnav .ui-icon { width: 14px; height: 14px; }
.nt-grade, .nt-star, .nt-nyang { font-weight: 850; }
.nt-g-N { color: #d1d7e1; } .nt-g-R { color: #91cfff; } .nt-g-U { color: #ff8f9c; }
.nt-g-E { color: #d8afff; } .nt-g-L, .nt-star { color: #ffe099; } .nt-nyang { color: #f9dcaa; }
.nt-g-M { color: #f9bbeb; background: linear-gradient(95deg, #ffb8bb, #ffe1a0, #a1e9ff, #f1b6fc); background-clip: text; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .nt-award .nt-hero::before, .nt-celebrate .nt-hero::before, .nt-award .nt-hero h2, .nt-celebrate .nt-hero h2, .nt-confetti i { animation: none; }
}
@media (forced-colors: active) { .nt-g-M { background: none; -webkit-text-fill-color: CanvasText; } }
