/* QuordleGame.org look on top of style.css / game-ui.css:
   dark header band with the blue QUORDLE logo (as on the site since 2022),
   blue UI accent, the classic light-gray tiles. */
:root { --qg-band: #161c2d; --qg-band-2: #0f1422; --qg-band-ink: #e6e9f2; --qg-band-muted: #a9b3c7; }

/* Top band: games strip + header */
.gamestrip { background: var(--qg-band-2); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.gamestrip__link { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); color: var(--qg-band-ink) !important; }
.gamestrip__link:hover, body.dark .gamestrip__link:hover { background: rgba(90, 130, 255, .22); color: #fff !important; }

.App-header {
    background: var(--qg-band);
    box-shadow: 0 0 0 100vmax var(--qg-band);
    clip-path: inset(0 -100vmax);
    margin-bottom: 10px !important;
}
.logo_qg { display: inline-flex; align-items: center; flex-shrink: 0; }
.App-header .logo_img, body.dark .App-header .logo_img { height: 26px; filter: brightness(1.55) saturate(1.1); }
@media (max-width: 400px) { .App-header .logo_img, body.dark .App-header .logo_img { height: 20px; } }

.App-header > div { background: rgba(255, 255, 255, .07) !important; border-color: rgba(255, 255, 255, .12) !important; }
.App-header .App-icon-container, .App-header .q-icon, html body .App-header .q-icon { color: var(--qg-band-ink) !important; }
.App-header .App-icon-container:hover, html body .App-header .q-icon:hover,
html body .App-header .qlang.is-open .qlang__btn { background: rgba(90, 130, 255, .25) !important; color: #fff !important; }
.App-header .page-icon svg { color: var(--qg-band-ink) !important; }
html body .App-header .qmode { background: rgba(255, 255, 255, .07) !important; border-color: rgba(255, 255, 255, .12) !important; }
html body .App-header .qmode__opt { color: var(--qg-band-muted); }
html body .App-header .qmode__opt:hover { color: #fff; }
html body .App-header .qmode__opt.is-active { background: var(--q-accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(26, 80, 233, .8); }
html body .App-header .qmode--single .qmode__label { color: var(--qg-band-ink); }
@media (max-width: 559px) {
    html body .App-header .qmode__select { background: #232a3d; color: #fff; border-color: rgba(255, 255, 255, .16); }
}

/* Hints button under the mode chips */
.qhints-cta { display: flex; justify-content: center; padding: 10px 16px 4px; }
.qhints-cta__btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #1a50e9, #2f6bff); color: #fff !important;
    font-family: Nunito, system-ui, sans-serif; font-weight: 900; font-size: 1.02rem;
    border-radius: 999px; padding: 11px 22px; text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(26, 80, 233, .28); transition: transform .15s, box-shadow .15s;
}
.qhints-cta__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(26, 80, 233, .38); }
.qhints-cta__btn svg { width: 20px; height: 20px; flex: none; }

/* Content sections */
.qg-sec { padding: 26px 0; }
.qg-narrow { max-width: 860px !important; }
.qg-wide { max-width: 1120px !important; }
.qg-intro { padding-top: 34px; }
.qg-sec h1, .qg-sec h2, .qg-sec h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 512px) { .qg-intro .quordle-h1 { font-size: 28px !important; } }
.qg-intro .quordle-h2 { max-width: 760px; margin: 14px auto 0; font-size: 1.15rem !important; line-height: 1.65; color: var(--q-muted); }
.qg-lead { max-width: 760px; margin: 0 auto 22px; color: var(--q-muted); }

.qg-tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .qg-tips { grid-template-columns: 1fr; } }
.qg-tipcard {
    text-align: left; padding: 20px 22px 8px; border-radius: 18px;
    background: var(--q-surface); border: 1px solid var(--q-border); box-shadow: var(--q-shadow);
    border-top: 4px solid var(--q-accent);
}
.qg-tipcard__h { font-size: 18px !important; font-weight: 800 !important; margin: 0 0 8px; color: var(--q-ink); }

.qg-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; }
.qg-mode {
    display: flex; flex-direction: column; gap: 4px; text-align: left;
    padding: 16px 18px; border-radius: 16px; text-decoration: none !important;
    background: var(--q-surface); border: 1px solid var(--q-border); box-shadow: var(--q-shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.qg-mode b { font-size: 16.5px; font-weight: 800; color: var(--q-ink); }
.qg-mode span { font-size: 14px; color: var(--q-muted); line-height: 1.45; }
.qg-mode:hover { transform: translateY(-3px); border-color: var(--q-accent-line); box-shadow: var(--q-shadow-hover); }
.qg-mode::before {
    content: ""; width: 34px; height: 6px; border-radius: 999px; margin-bottom: 6px;
    background: linear-gradient(90deg, #6eb66c 0 25%, #e9c601 25% 50%, #a2a2a2 50% 75%, var(--q-accent) 75%);
}

.qg-tip { margin-top: 18px; padding: 16px 20px 6px; border-radius: 16px; background: var(--q-accent-soft); border: 1px solid var(--q-accent-line); }
.qg-tip__h { font-size: 17px !important; font-weight: 800 !important; margin: 0 0 6px; color: var(--q-ink); }

.qg-tips--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .qg-tips--3 { grid-template-columns: 1fr; } }
.qg-mode--unlimited { border-color: var(--q-accent-line); background: linear-gradient(180deg, var(--q-accent-soft), var(--q-surface) 70%); }

/* FreeGPT promo (the same card is used on our other sites, see _tools/freegpt_promo.html) */
.fgpt {
    display: flex; align-items: center; gap: 16px; box-sizing: border-box;
    width: calc(100% - 24px); max-width: 560px; margin: 28px auto 8px; padding: 16px 18px;
    border-radius: 20px; text-decoration: none !important; color: #eafff3 !important; text-align: left;
    font-family: inherit; 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), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .2s, box-shadow .2s;
}
.fgpt:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(22, 211, 143, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
.fgpt__logo {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.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; } }

/* Language grid (flags) */
.qlangs { padding: 10px 0 20px; }
.qlangs__grid { max-width: 1100px; }
.wordle_but {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 12px; text-decoration: none !important;
    font-size: 13.5px; font-weight: 700; letter-spacing: .4px; text-align: left;
    color: var(--q-ink) !important; background: var(--q-surface); border: 1px solid var(--q-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .15s ease, border-color .15s ease;
}
.wordle_but:hover { transform: translateY(-2px); border-color: var(--q-accent-line); }
.wordle_but.is-current { border-color: var(--q-accent); background: var(--q-accent-soft); }
.frames_block > a { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) {
    .frames_block .wordle_but { padding: 10px; gap: 8px; font-size: 12px; letter-spacing: 0; }
    .logo_qg { min-width: 0; }
    .logo_qg .logo_img { width: 100%; max-width: 104px; height: auto; }
}
@media (max-width: 340px) {
    html body .App-header .q-icon, html body .App-header .App-icon-container { width: 28px !important; height: 28px !important; padding: 5px; }
    .logo_qg .logo_img { max-width: 90px; }
}
.wordle_but .flag { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; margin: 0; float: none; flex-shrink: 0; }

/* Sticky share bar on wide screens (elements/share.php) */
.sh_float { display: none; }
@media (min-width: 1280px) {
    .sh_float {
        position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 40;
        display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 8px;
        background: var(--qg-band); border: 1px solid rgba(255, 255, 255, .08); border-left: 0;
        border-radius: 0 16px 16px 0; box-shadow: 0 12px 30px -14px rgba(15, 20, 34, .7);
    }
    .sh_float .sh_btn { width: 40px; height: 40px; box-shadow: none; }
    .sh_float .sh_btn svg { width: 19px; height: 19px; }
    .sh_float .sh_btn:hover { transform: translateX(3px) scale(1.06); box-shadow: none; }
    .sh_float .sh_btn--x { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
    .sh_float__n { font: 800 13px/1 Montserrat, Nunito, sans-serif; color: var(--qg-band-ink); }
    .sh_float__n:empty { display: none; }
}

/* Footer */
.footer__brand .logo_img { height: 24px; }
.footer__label { align-self: center; font-size: 13px; font-weight: 700; color: var(--q-muted); }
.footer__legal a { color: var(--q-muted) !important; }
.footer__legal a:hover { color: var(--q-accent) !important; }
