/* ============================================================
   Unwordle.io — 2026 refresh. Design language shared with quordly.org:
   soft white cards, rounded corners, Montserrat/Nunito type, dark mode,
   green accent with the classic green / yellow / grey tile trio.
   ============================================================ */

:root {
    --q-accent: #22c55e;
    --q-accent-dark: #16a34a;
    --q-accent-soft: #dcfce7;
    --q-accent-line: rgba(22, 163, 74, 0.22);
    --q-green: #22c55e;
    --q-yellow: #eab308;
    --q-gray: #94a3b8;
    --q-red: #ef4444;
    --q-ink: #161c2d;
    --q-muted: #5b6270;
    --q-surface: #ffffff;
    --q-surface-2: #f3f7f4;
    --q-cell: #e6eae3;
    --q-border: rgba(20, 20, 20, 0.10);
    --q-shadow: 0 1px 2px rgba(20, 30, 20, 0.05), 0 20px 44px -24px rgba(20, 30, 20, 0.30);
    --q-shadow-hover: 0 1px 2px rgba(20, 30, 20, 0.06), 0 26px 52px -22px rgba(20, 30, 20, 0.36);
    --q-radius: 20px;
    --t-c: var(--q-green);
    --t-p: var(--q-yellow);
    --t-a: #8f99a8;
}
body.dark {
    --q-accent-soft: rgba(34, 197, 94, 0.14);
    --q-accent-line: rgba(34, 197, 94, 0.24);
    --q-ink: #e6e8ec;
    --q-muted: #a2a9b4;
    --q-surface: #1e2126;
    --q-surface-2: #191c21;
    --q-cell: #2d323b;
    --q-border: rgba(255, 255, 255, 0.09);
    --q-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 50px -26px rgba(0, 0, 0, 0.85);
    --q-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.55), 0 30px 56px -24px rgba(0, 0, 0, 0.9);
    --t-a: #4b5361;
}
body.colorblind { --t-c: #f5793a; --t-p: #85c0f9; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    color: var(--q-ink);
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.dark { background: #16181c; }
a, a:visited { text-decoration: none; color: var(--q-accent-dark); transition: .15s; }
body.dark a, body.dark a:visited { color: var(--q-accent); }
p { line-height: 1.65; }
button { font-family: inherit; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.u-narrow { max-width: 820px; }
.u-wide { max-width: 980px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1.5rem; }
.bg-half { padding: 34px 0; position: relative; }

/* ---------- Typography ---------- */
.u-h1, .u-head, .step_head, .spcb_head, .qpop__title, .share_s .title { font-family: 'Montserrat', 'Nunito', system-ui, sans-serif; }
.u-hero .container {
    max-width: 880px; text-align: center;
    background: var(--q-accent-soft); border: 1px solid var(--q-accent-line);
    border-radius: 24px; padding: 38px 30px; box-shadow: var(--q-shadow);
}
.u-h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin: 0; color: var(--q-ink); }
.u-h2 { font-size: 18px; font-weight: 500; line-height: 1.65; color: var(--q-muted); max-width: 680px; margin: 14px auto 0; }
.u-head { font-size: 29px; font-weight: 800; letter-spacing: -0.02em; color: var(--q-ink); text-align: center; margin: 0 0 20px; }
.u-sub { text-align: center; color: var(--q-muted); max-width: 680px; margin: -8px auto 20px; }
.u-text { font-size: 16px; line-height: 1.7; color: var(--q-muted); }
.u-text p { margin: 0 0 12px; }
.u-text p:last-child { margin-bottom: 0; }
.u-text b, .u-text strong { color: var(--q-ink); }
.u-card { background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 18px; box-shadow: var(--q-shadow); padding: 24px 26px; }
.u-back { text-align: center; margin-top: 22px; font-weight: 800; }
@media (max-width: 767px) { .u-h1 { font-size: 31px; } .u-head { font-size: 24px; } .u-hero .container { padding: 26px 18px; border-radius: 20px; } }

/* ---------- Header ---------- */
.u-header {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    max-width: 660px; margin: 0 auto; padding: 8px 10px 6px; min-height: 52px;
    position: relative; z-index: 100;
}
.logo_word { display: inline-flex; align-items: center; gap: 3px; line-height: 1; color: inherit; flex-shrink: 0; }
.logo_word__tile {
    width: 36px; height: 36px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--q-accent); color: #fff;
    font-family: 'Fredoka', 'Montserrat', sans-serif; font-weight: 600; font-size: 25px;
    box-shadow: 0 9px 18px -8px rgba(22, 163, 74, 0.7);
    transform: rotate(-4deg); overflow: hidden; transition: transform .18s ease;
}
.logo_word__q { display: block; transform: translateY(-1px); }
.logo_word:hover .logo_word__tile { transform: rotate(0deg) scale(1.05); }
.logo_word__text { font-family: 'Fredoka', 'Montserrat', sans-serif; font-weight: 600; font-size: 29px; letter-spacing: -0.5px; color: var(--q-ink); margin-left: -1px; }
.logo_word__accent { color: var(--q-accent-dark); }
body.dark .logo_word__text { color: var(--q-ink); }
body.dark .logo_word__accent { color: var(--q-accent); }
@media (max-width: 559px) { .logo_word__text { display: none; } }

.qmode { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--q-surface-2); border: 1px solid var(--q-border); flex-shrink: 0; }
.qmode__opt { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; padding: 6px 14px; border-radius: 999px; font-family: 'Montserrat', 'Nunito', sans-serif; font-size: 13.5px; font-weight: 800; color: var(--q-muted) !important; white-space: nowrap; }
.qmode__opt.is-active { background: var(--q-green); color: #fff !important; }
.qmode__select { display: none; }
@media (max-width: 559px) {
    .qmode { padding: 0; background: transparent; border: 0; }
    .qmode__opt { display: none; }
    .qmode__select { display: block; appearance: none; -webkit-appearance: none; border: 1px solid var(--q-border); background: var(--q-surface); color: var(--q-ink); font-family: 'Montserrat', 'Nunito', sans-serif; font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
}
.q-icons { display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--q-surface-2); border: 1px solid var(--q-border); border-radius: 999px; flex-shrink: 0; }
.q-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--q-ink); cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; transition: background-color .15s, color .15s; }
.q-icon:hover { background: var(--q-accent-soft); color: var(--q-accent-dark); }
.q-icon svg { width: 20px; height: 20px; }
#u_hint { color: #d97706; }
#u_hint:not(.is-on) { opacity: .45; }
@media (max-width: 420px) {
    .u-header { padding: 8px 6px 6px; gap: 4px; }
    .q-icons { gap: 0; padding: 2px; }
    .q-icon { width: 31px; height: 31px; }
    .q-icon svg { width: 18px; height: 18px; }
    .logo_word__tile { width: 32px; height: 32px; font-size: 22px; }
    .qmode__select { padding: 6px 10px; font-size: 12.5px; }
}
@media (hover: hover) {
    .q-tip:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 9px; border-radius: 8px; background: #161c2d; color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; z-index: 200; }
}
.u-modebar { max-width: 660px; margin: 0 auto; padding: 2px 14px 4px; text-align: center; font-size: 14.5px; color: var(--q-muted); }
.u-modebar b { color: var(--q-ink); font-weight: 900; }

/* ---------- Game ---------- */
#ugame-wrap { position: relative; }
.u-app { --t: 54px; --g: 6px; max-width: 540px; margin: 0 auto; padding: 0 8px 6px; min-height: 520px; display: flex; flex-direction: column; align-items: center; }
.u-skel { display: none; }
.u-app.is-loading .u-skel { display: flex; flex-direction: column; gap: 6px; margin-top: 46px; }
.u-app.is-loading > :not(.u-skel):not(noscript) { visibility: hidden; }
.u-skel__r { display: flex; gap: 6px; }
.u-skel__r i { width: 52px; height: 52px; border-radius: 9px; background: var(--q-cell); animation: u-pulse 1.2s ease-in-out infinite; }
@keyframes u-pulse { 50% { opacity: .55; } }
.u-noscript { text-align: center; color: var(--q-muted); }

.u-bar { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 6px 0 10px; font-size: 14px; color: var(--q-muted); min-height: 44px; }
.u-bar__title b { color: var(--q-ink); font-weight: 800; }
.u-bar__seq { font-weight: 800; color: var(--q-accent-dark); }
body.dark .u-bar__seq { color: var(--q-accent); }
.u-sizes { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--q-surface-2); border: 1px solid var(--q-border); }
.u-size { border: 0; background: transparent; color: var(--q-muted); font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.u-size.is-on { background: var(--q-green); color: #fff; }
.u-timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--q-ink); min-width: 52px; text-align: center; }
.u-timer.is-low { color: var(--q-red); }
body.u-hide-timer .u-timer { display: none; }

.u-board { display: flex; flex-direction: column; gap: var(--g); user-select: none; -webkit-user-select: none; }
.u-row { display: flex; align-items: center; gap: var(--g); }
.u-gut { width: 20px; flex-shrink: 0; display: flex; justify-content: center; }
.u-cell {
    position: relative; width: var(--t); height: var(--t); padding: 0; margin: 0;
    border: 2px solid transparent; border-radius: 9px; cursor: pointer;
    font-family: 'Montserrat', 'Nunito', sans-serif; font-weight: 800; font-size: calc(var(--t) * .5); line-height: 1;
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s;
    -webkit-tap-highlight-color: transparent;
}
.u-cell.is-c { background: var(--t-c); }
.u-cell.is-p { background: var(--t-p); }
.u-cell.is-a { background: var(--t-a); }
.u-cell:not(.has-l) { opacity: .62; }
.u-cell:not(.has-l)::before { content: ""; position: absolute; inset: 22%; border-radius: 5px; background: rgba(255, 255, 255, .28); }
body.dark .u-cell:not(.has-l) { opacity: .5; }
.u-cell.has-l { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.u-cell.is-sel { border-color: var(--q-ink); opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 3px rgba(22, 28, 45, .12); z-index: 1; }
body.dark .u-cell.is-sel { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.u-row.is-cur .u-cell:not(.is-sel) { opacity: 1; }
.u-cell.is-lock { cursor: default; }
.u-row.is-final .u-cell { cursor: default; }
.u-cell.is-hint::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .25); }
.u-cell.is-err { animation: u-shake .25s ease 1; }
.u-cell.is-err > span::after { content: ""; position: absolute; top: -2px; right: -2px; width: 0; height: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent var(--q-red) transparent transparent; border-top-right-radius: 8px; }
@keyframes u-shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.u-rowerr { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--q-red); color: #fff; font-weight: 900; font-size: 13px; cursor: pointer; padding: 0; line-height: 20px; }
.u-board.is-done .u-cell { cursor: default; opacity: 1; }
.u-board.is-builder .u-row:not(.is-final) .u-cell { opacity: 1; }
.u-board.is-builder .u-cell:not(.has-l)::before { inset: 30%; }

.u-msg { min-height: 42px; max-width: 520px; padding: 8px 10px 4px; text-align: center; font-size: 14.5px; line-height: 1.4; color: var(--q-muted); }
.u-msg .u-bad { color: var(--q-red); font-weight: 700; }
.u-msg .u-ok { color: var(--q-accent-dark); font-weight: 900; font-size: 16px; }
body.dark .u-msg .u-ok { color: var(--q-accent); }

.u-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 2px 0 12px; }
.u-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--q-border); background: var(--q-surface-2); color: var(--q-ink); border-radius: 999px; padding: 9px 16px; font-family: 'Montserrat', 'Nunito', sans-serif; font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .15s, filter .15s; }
.u-btn:hover { transform: translateY(-1px); }
.u-btn--main { background: var(--q-accent); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(22, 163, 74, .8); }
.u-btn--hint { background: #f59e0b; border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(217, 119, 6, .8); }
.u-btn--hint svg { width: 17px; height: 17px; }
.u-btn--ghost { background: transparent; }

.u-kbd { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.u-krow { display: flex; gap: 5px; justify-content: center; }
.u-key { flex: 1 1 0; min-width: 0; max-width: 46px; height: 54px; padding: 0; border: 0; border-radius: 8px; background: #dfe4ea; color: var(--q-ink); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.u-key:active { transform: translateY(1px); filter: brightness(.95); }
.u-key--wide { flex: 1.6 1 0; max-width: 72px; font-size: 13px; }
.u-key svg { width: 22px; height: 22px; }
body.dark .u-key { background: #3a404b; color: #e6e8ec; }
@media (max-width: 400px) { .u-key { height: 50px; font-size: 15px; } .u-krow { gap: 4px; } }

.u-ad { text-align: center; margin: 14px auto; max-width: 970px; }
.u-ad:empty { display: none; }

/* ---------- Modes nav ---------- */
.qmodes-nav { max-width: 760px; margin: 10px auto 0; padding: 0 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.qmodes-nav__label { font-size: 13px; font-weight: 800; color: var(--q-muted); margin-right: 2px; }
.qmodes-nav__chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--q-border); background: var(--q-surface); color: var(--q-ink) !important; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.qmodes-nav__chip:hover { border-color: var(--q-green); }
.qmodes-nav__chip.is-active { background: var(--q-green); border-color: transparent; color: #fff !important; }
body.dark .qmodes-nav__chip:not(.is-active) { background: #2d323b; color: #e6e8ec !important; border-color: #3a404b; }

/* ---------- Side rails (Ezoic 103/104) ---------- */
.qside { display: none; }
html[data-qside] .qside { display: block; position: absolute; top: 8px; bottom: 0; z-index: 5; width: 160px; }
html[data-qside="300"] .qside { width: 300px; }
html[data-qside] .qside--l { right: calc(50% + 300px); }
html[data-qside] .qside--r { left: calc(50% + 300px); }
html[data-qside] .qside__in { position: sticky; top: 12px; }
@media (max-width: 1279px) { html[data-qside] .qside { display: none; } }
@media (max-width: 1439px) { html[data-qside="300"] .qside { display: none; } }

/* ---------- Mini boards (art, win window, hint picker) ---------- */
.u-mini { display: inline-flex; flex-direction: column; gap: 4px; }
.u-mini__r { display: flex; gap: 4px; justify-content: center; }
.u-mini i { width: 16px; height: 16px; border-radius: 4px; background: var(--q-cell); display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.u-mini i.is-c, .mini_swatch.is-c, .u-ex i.is-c, .u-help__legend i.is-c { background: var(--t-c); }
.u-mini i.is-p, .mini_swatch.is-p, .u-ex i.is-p, .u-help__legend i.is-p { background: var(--t-p); }
.u-mini i.is-a, .mini_swatch.is-a, .u-ex i.is-a, .u-help__legend i.is-a { background: var(--t-a); }
.u-mini--art { gap: 6px; }
.u-mini--art .u-mini__r { gap: 6px; }
.u-mini--art i { width: 34px; height: 34px; border-radius: 7px; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 16px; position: relative; }
.u-mini--art i.is-err::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 12px 12px 0; border-color: transparent var(--q-red) transparent transparent; border-top-right-radius: 7px; }
.u-arrow { font-size: 30px; font-weight: 900; color: var(--q-accent-dark); margin-left: 14px; }
.u-bulb { display: inline-flex; width: 44px; height: 44px; margin-left: 16px; border-radius: 50%; background: #f59e0b; color: #fff; align-items: center; justify-content: center; }
.u-bulb svg { width: 24px; height: 24px; }

/* ---------- Steps grid / legend ---------- */
.steps_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
@media (max-width: 640px) { .steps_grid { grid-template-columns: 1fr; } }
.quordle_step { overflow: hidden; background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 16px; box-shadow: var(--q-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.quordle_step:hover { transform: translateY(-2px); box-shadow: var(--q-shadow-hover); }
.step_art { display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 22px 16px; background: var(--q-surface-2); border-bottom: 1px solid var(--q-border); }
.step_body { padding: 18px 20px 20px; }
.step_head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--q-ink); }
.step_number { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-size: 15px; font-weight: 900; border-radius: 50%; background: var(--q-accent); color: #fff; }
.step_body .u-text { margin: 0; }
.mini_legend { display: grid; gap: 8px; width: 100%; max-width: 260px; }
.mini_legend__row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; background: var(--q-surface); border: 1px solid var(--q-border); font-size: 13.5px; font-weight: 700; color: var(--q-ink); }
.mini_swatch { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }

/* ---------- Modes cards ---------- */
.u-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .u-modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .u-modes { grid-template-columns: 1fr; } }
.u-mode { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--q-surface); border: 1px solid var(--q-border); box-shadow: var(--q-shadow); transition: transform .18s, box-shadow .18s; }
.u-mode:hover { transform: translateY(-2px); box-shadow: var(--q-shadow-hover); }
.u-mode b { font-family: 'Montserrat', sans-serif; font-size: 16.5px; font-weight: 800; color: var(--q-ink); }
.u-mode span { font-size: 14px; color: var(--q-muted); line-height: 1.45; }
.u-mode--answer { background: var(--q-accent-soft); border-color: var(--q-accent-line); }

.u-tips { margin: 0; padding: 0; list-style: none; counter-reset: tip; display: grid; gap: 10px; }
.u-tips li { counter-increment: tip; position: relative; padding: 14px 18px 14px 56px; background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 14px; box-shadow: var(--q-shadow); color: var(--q-muted); line-height: 1.6; }
.u-tips li::before { content: counter(tip); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--q-accent); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.u-tips b { color: var(--q-ink); }

/* ---------- FAQ ---------- */
.faq_list { display: flex; flex-direction: column; gap: 12px; }
.faq_item { background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 16px; box-shadow: var(--q-shadow); overflow: hidden; }
.faq_item[open] { box-shadow: var(--q-shadow-hover); }
.faq_q { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; padding: 18px 22px; font-family: 'Montserrat', 'Nunito', sans-serif; font-size: 17px; font-weight: 700; color: var(--q-ink); }
.faq_q::-webkit-details-marker { display: none; }
.faq_ico { flex-shrink: 0; position: relative; width: 18px; height: 18px; }
.faq_ico::before, .faq_ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2.5px; border-radius: 2px; background: var(--q-accent-dark); transform: translate(-50%, -50%); }
.faq_ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s ease; }
.faq_item[open] .faq_ico::after { opacity: 0; }
body.dark .faq_ico::before, body.dark .faq_ico::after { background: var(--q-accent); }
.faq_a { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; color: var(--q-muted); }
.faq_a a { font-weight: 700; }

/* ---------- Other games ---------- */
.more_games { margin: 28px 0 10px; }
.spcb_head { font-size: 28px; font-weight: 800; color: var(--q-ink); position: relative; display: inline-block; padding-bottom: 12px; margin-top: 0; }
.spcb_head::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 60px; height: 4px; border-radius: 999px; background: var(--q-accent); transform: translateX(-50%); }
.frames_block { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 900px) { .frames_block { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .frames_block { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.we_but { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 84px; padding: 12px 16px; font-size: 13px; font-weight: 600; line-height: 1.35; border: 1px solid rgba(15, 23, 42, .06); border-radius: 14px; color: #55606f !important; background: var(--card, #cadaff); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .05); transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s; }
.we_but::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); pointer-events: none; }
.we_but:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(15, 23, 42, .10); }
.wemage { position: relative; z-index: 1; flex-shrink: 0; width: 40px; height: 40px; margin-right: 12px; border-radius: 10px; object-fit: contain; }
.we_d { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.we_d b { font-size: 16px; font-weight: 800; color: #14181f; }
.we_d span { color: #55606f; }
.we_new { position: absolute; top: 0; inset-inline-start: 0; z-index: 2; padding: 2px 7px; border-end-end-radius: 8px; background: #00ac4a; color: #fff; font-size: 9px; font-weight: 800; line-height: 1.4; letter-spacing: .05em; }
@media (max-width: 767px) { .we_but { min-height: 76px; padding: 10px 12px; } .wemage { width: 34px; height: 34px; margin-right: 10px; } .we_d b { font-size: 15px; } }

.fgpt{display:flex;align-items:center;gap:16px;width:calc(100% - 24px);max-width:560px;margin:28px auto 8px;padding:16px 18px;border-radius:20px;color:#eafff3!important;text-align:left;line-height:1.3;background:radial-gradient(120% 140% at 0% 0%,rgba(183,233,74,.2),transparent 55%),radial-gradient(120% 140% at 100% 100%,rgba(22,211,143,.22),transparent 55%),#0b120f;border:1px solid rgba(120,230,150,.28);box-shadow:0 10px 30px -12px rgba(22,211,143,.45);transition:transform .2s}
.fgpt:hover{transform:translateY(-2px)}
.fgpt__logo{flex:none;display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:16px;background:#000}
.fgpt__logo svg{display:block;width:46px;height:46px}
.fgpt__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fgpt__badge{align-self:flex-start;margin-bottom:2px;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#b7e94a;background:rgba(183,233,74,.12)}
.fgpt__title{font-size:22px;font-weight:900;color:#fff}
.fgpt__text{font-size:14px;color:#a9c4b6}
.fgpt__cta{flex:none;padding:10px 16px;border-radius:999px;font-size:14px;font-weight:800;white-space:nowrap;color:#062a1a;background:linear-gradient(90deg,#b7e94a,#16d38f)}
@media (max-width:520px){.fgpt{flex-wrap:wrap}.fgpt__cta{width:100%;text-align:center}}

/* ---------- Share ---------- */
.share_s { padding: 36px 0; }
.share_s .title { font-weight: 800; font-size: 26px; color: var(--q-ink); margin-top: 0; }
.para-desc { color: var(--q-muted); font-size: 17px; line-height: 1.65; max-width: 680px; }
.sh_wrap { margin-top: 22px; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 30px; margin-top: 28px; background: var(--q-surface-2); border-top: 1px solid var(--q-border); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 9px; }
.footer__mark { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--q-accent); color: #fff; font-family: 'Fredoka', 'Montserrat', sans-serif; font-weight: 600; font-size: 19px; }
.footer__name { font-family: 'Fredoka', 'Montserrat', sans-serif; font-weight: 600; font-size: 21px; color: var(--q-ink); }
.footer__name-accent { color: var(--q-accent-dark); }
body.dark .footer__name-accent { color: var(--q-accent); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.footer__nav a, .footer__nav a:visited { padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--q-ink) !important; }
.footer__nav a:hover { background: var(--q-accent-soft); color: var(--q-accent-dark) !important; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 9px; font-size: 12.5px; line-height: 1.5; color: var(--q-muted); }
.footer__dot { opacity: .5; }
@media (max-width: 480px) { .footer__dot { display: none; } }
.footer__langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; max-width: 760px; }
.footer__langs a, .footer__langs a:visited { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--q-muted) !important; }
.footer__langs a:hover { background: var(--q-accent-soft); color: var(--q-accent-dark) !important; }
.footer__langs a[aria-current="page"] { color: var(--q-ink) !important; font-weight: 800; box-shadow: inset 0 0 0 1px var(--q-border); }

/* ---------- Dialogs ---------- */
.qpop { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(10, 20, 12, 0.5); align-items: center; justify-content: center; padding: 16px; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.qpop.is-open { display: flex; }
.qpop__card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 26px 24px; background: var(--q-surface); color: var(--q-ink); border-radius: 22px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .5); text-align: center; }
.qpop__x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--q-surface-2); color: var(--q-muted); font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qpop__x:hover { background: var(--q-accent-soft); color: var(--q-accent-dark); }
.qpop__mark { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--q-accent); color: #fff; font-family: 'Fredoka', 'Montserrat', sans-serif; font-weight: 600; font-size: 30px; box-shadow: 0 12px 24px -10px rgba(22, 163, 74, .8); }
.qpop__title { font-size: 21px; font-weight: 800; margin: 0 30px 10px; }
.qpop__text { font-size: 15.5px; color: var(--q-muted); line-height: 1.55; margin-bottom: 18px; }
.qpop__text p { margin: 0 0 6px; }
.qpop__hint { display: none; font-size: 24px; font-weight: 800; color: var(--q-ink); margin-bottom: 18px; }
.qpop__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.qpop__btn { cursor: pointer; border: 0; padding: 12px 22px; border-radius: 999px; font-family: 'Montserrat', 'Nunito', sans-serif; font-size: 15.5px; font-weight: 800; transition: transform .15s; }
.qpop__btn:hover { transform: translateY(-2px); }
.qpop__btn:disabled { opacity: .6; cursor: default; transform: none; }
.qpop__btn--add { background: var(--q-accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(22, 163, 74, .8); }
.qpop__btn--close { background: var(--q-surface-2); color: var(--q-ink); border: 1px solid var(--q-border); }
.u-pop .qpop__card { text-align: left; }
.u-pop .qpop__title { text-align: center; }
.u-pop .qpop__text { text-align: center; }
.u-winpop .u-win__mini { margin: 4px auto 14px; }
.u-win__ad { margin-top: 16px; }
.u-win__ad:empty { display: none; }

.u-toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -140%); z-index: 10001; padding: 10px 18px; border-radius: 999px; background: #161c2d; color: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: transform .25s ease; max-width: calc(100% - 24px); text-align: center; }
.u-toast.is-on { transform: translate(-50%, 0); }

.u-errlist { margin: 0; padding-left: 18px; color: var(--q-muted); line-height: 1.55; font-size: 14.5px; }
.u-errlist li { margin-bottom: 6px; }
.u-errlist b { color: var(--q-ink); }

.u-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.u-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 14px; background: var(--q-surface-2); border: 1px solid var(--q-border); text-align: center; }
.u-stat b { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 900; color: var(--q-ink); }
.u-stat span { font-size: 13px; font-weight: 700; color: var(--q-muted); }

.u-set { display: flex; flex-direction: column; gap: 8px; }
.u-set__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--q-surface-2); border: 1px solid var(--q-border); cursor: pointer; position: relative; }
.u-set__row span { display: flex; flex-direction: column; gap: 2px; }
.u-set__row b { font-weight: 800; font-size: 15px; }
.u-set__row small { font-size: 12.5px; color: var(--q-muted); line-height: 1.4; }
.u-set__row input { position: absolute; opacity: 0; pointer-events: none; }
.u-switch { flex-shrink: 0; width: 44px; height: 26px; border-radius: 999px; background: #cbd2db; position: relative; transition: background .15s; }
.u-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.u-set__row input:checked + .u-switch { background: var(--q-green); }
.u-set__row input:checked + .u-switch::after { transform: translateX(18px); }
.u-set__row input:focus-visible + .u-switch { outline: 2px solid var(--q-accent-dark); outline-offset: 2px; }
.u-set__row.is-dis { opacity: .5; cursor: default; }
body.dark .u-switch { background: #4b5361; }
.u-set__links { text-align: center; font-weight: 800; font-size: 14px; margin: 14px 0 0; }
.u-set__langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; }
.u-set__langs a { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--q-muted) !important; border: 1px solid var(--q-border); }
.u-set__langs a.is-on { color: #fff !important; background: var(--q-green); border-color: transparent; }

.u-help p { color: var(--q-muted); line-height: 1.6; margin: 0 0 12px; font-size: 15px; }
.u-ex { display: flex; gap: 5px; justify-content: center; margin: 0 0 5px; }
.u-ex i { width: 38px; height: 38px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-style: normal; font-size: 18px; }
.u-ex:last-of-type { margin-bottom: 14px; }
.u-help__legend { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: 14.5px; color: var(--q-muted); }
.u-help__legend li { display: flex; align-items: center; gap: 10px; }
.u-help__legend i { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }

.u-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.u-cal__head b { font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: capitalize; }
.u-cal__nav { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--q-border); background: var(--q-surface-2); color: var(--q-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.u-cal__nav:disabled { opacity: .35; cursor: default; }
.u-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.u-cal__wd { text-align: center; font-size: 12px; font-weight: 800; color: var(--q-muted); padding-bottom: 2px; }
.u-cal__d { aspect-ratio: 1; border: 1px solid var(--q-border); border-radius: 10px; background: var(--q-surface-2); color: var(--q-ink); font-weight: 800; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.u-cal__d:hover { border-color: var(--q-green); }
.u-cal__d.is-done { background: var(--t-c); color: #fff; border-color: transparent; }
.u-cal__d.is-today { box-shadow: inset 0 0 0 2px var(--q-ink); }
.u-cal__d.is-cur { outline: 2px solid var(--t-p); outline-offset: 1px; }
.u-cal__d.is-off { opacity: .3; cursor: default; }
.u-cal__note { font-size: 13px; color: var(--q-muted); text-align: center; margin: 12px 0 0; }

.qhint-pick-label { font-weight: 800; margin: -6px 0 8px; text-align: center; }
.u-hint-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.u-hint-row { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 7px 10px; border: 2px solid var(--q-border); border-radius: 12px; background: var(--q-surface); cursor: pointer; color: var(--q-ink); }
.u-hint-row.is-picked { border-color: var(--q-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.u-hint-row__n { font-weight: 900; font-size: 13px; color: var(--q-muted); width: 16px; }
.u-hint-row__t { display: flex; gap: 4px; }
.u-hint-row__t i { width: 26px; height: 26px; border-radius: 6px; opacity: .55; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; font-size: 13px; color: #fff; }
.u-hint-row__t i.is-on { opacity: 1; }
.u-hint-row__t i.is-c { background: var(--t-c); }
.u-hint-row__t i.is-p { background: var(--t-p); }
.u-hint-row__t i.is-a { background: var(--t-a); }
.qhint-msg { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--q-muted); text-align: center; }

/* ---------- Legal / answer pages ---------- */
.u-page { max-width: 820px; margin: 0 auto; padding: 20px 15px 10px; }
.u-page h1 { font-family: 'Montserrat', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin: 10px 0 18px; }
.u-page h2 { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; margin: 26px 0 10px; }
.u-page p, .u-page li { color: var(--q-muted); line-height: 1.7; }
.u-ans { text-align: center; }
.u-ans + .u-ad, .u-ans { margin-top: 0; }
@media (max-width: 480px) { .u-ans.u-card { padding-left: 12px; padding-right: 12px; } }
.u-ans__h { margin-top: 0; }
.u-ans__wrap { margin: 16px 0 6px; }
.u-ans__board { display: inline-flex; flex-direction: column; gap: 6px; }
.u-ans__board .u-mini__r { gap: 6px; }
.u-ans__board i { width: min(46px, 12.5vw); height: min(46px, 12.5vw); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 21px; font-style: normal; }
.u-ans__board i.is-c { background: var(--t-c); }
.u-ans__board i.is-p { background: var(--t-p); }
.u-ans__board i.is-a { background: var(--t-a); }
.u-ans:not(.show-sol) .u-ans__l { visibility: hidden; }
.u-ans__hints { list-style: none; padding: 0; margin: 14px 0; color: var(--q-muted); line-height: 1.9; }
.u-ans__spoil { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--q-surface-2); color: var(--q-ink); font-weight: 800; letter-spacing: .06em; }
.u-ans:not(.show-hints) .u-ans__spoil { filter: blur(6px); user-select: none; }
.u-ans__acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.u-ans__acts a.u-btn { text-decoration: none; }
.u-ans__note { margin-top: 12px; font-size: 13.5px; }
.u-ans__past .faq_a .u-ans__board i { width: 32px; height: 32px; font-size: 15px; border-radius: 7px; }
.u-ans__past .faq_a p { margin: 10px 0 0; }

#ez-cookie-dialog-wrapper, .ez-main-cmp-wrapper { pointer-events: none !important; }
#ez-cookie-dialog, #ez-cookie-dialog *, .ez-cmp-content, .ez-cmp-content * { pointer-events: auto !important; }
@media (max-width: 768px) { #st-1, .st-sticky-share-buttons { display: none !important; } }
