/* =========================================================
   dadishunblocked.com — independent stylesheet
   Design system: soft charcoal + leafy green, Poppins,
   rounded cards, puzzle-indie curator vibe.
   ========================================================= */

:root {
    --ink: #1e1f24;
    --ink-2: #262830;
    --ink-3: #2f313c;
    --line: #3a3c47;
    --leaf: #6dd19a;
    --leaf-soft: #a6e6c1;
    --carrot: #ff8a5b;
    --paper: #ececf1;
    --paper-dim: #b4b6c2;
    --paper-quiet: #7f818d;
    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 22px;
    --shade: 0 8px 28px rgba(0,0,0,0.35);
    --pad: clamp(16px, 3vw, 28px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--ink);
    color: var(--paper);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--leaf); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--leaf-soft); }

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--leaf-soft); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: #d4d5de; }

.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- TOP BAR ---------- */
.top-bar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(30, 31, 36, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    gap: 18px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem; color: var(--paper);
}
.brand:hover { color: var(--paper); }
.brand-leaf {
    width: 34px; height: 34px;
    background: var(--leaf);
    border-radius: 10px;
    display: block;
    object-fit: cover;
    overflow: hidden;
    font-size: 18px;        /* fallback if element is a span with emoji */
    line-height: 34px;
    text-align: center;
}
.brand span.green { color: var(--leaf); }
.menu {
    display: flex; gap: 22px; align-items: center;
}
.menu a {
    color: var(--paper-dim);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 2px;
    position: relative;
}
.menu a:hover, .menu a.here { color: var(--paper); }
.menu a.here::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--leaf);
    border-radius: 2px;
}
.burger {
    display: none;
    background: none; border: none; color: var(--paper);
    font-size: 1.6rem; cursor: pointer;
}

/* ---------- INTRO / HERO ---------- */
.intro {
    padding: 50px 0 30px;
    text-align: center;
}
.intro .eyebrow {
    display: inline-block;
    background: rgba(109, 209, 154, 0.12);
    color: var(--leaf);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 18px;
}
.intro p.lead {
    max-width: 640px; margin: 0 auto 8px;
    font-size: 1.05rem; color: var(--paper-dim);
}

/* ---------- PLAY SHELL ---------- */
.play-shell {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shade);
    margin: 20px 0 40px;
}
.play-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 85vh;
    min-height: 420px;
    background: #0c0d10;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .play-box { aspect-ratio: 4 / 3; min-height: 380px; }
}

/* ---------- DADISH-ONLY: mirrors gameriz arcade-three .game-iframe-container.
   Fixed min-height container, iframe fills 100%, canvas letterboxes into
   dark-blue background so SPACE button etc. are never cut off. ---------- */
.play-shell.fit-dadish {
    max-width: 960px;            /* shrunk from 1200 so title fits above the fold */
    margin-left: auto;
    margin-right: auto;
}
.play-shell.fit-dadish .play-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 820;    /* same ratio as the 1200x820 size that showed SPACE fully */
    min-height: 460px;           /* mobile floor only */
    overflow: hidden;
    display: block;
    padding: 0;
    background: #0e1936;         /* dark-blue letterbox */
    border-radius: 18px;
}
.play-shell.fit-dadish .play-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    z-index: 10;
    background: #0e1936;
}
@media (max-width: 700px) {
    .play-shell.fit-dadish { max-width: 100%; }
}

/* ---------- FULLSCREEN: hide title bar, let iframe fill the viewport.
   Each vendor prefix MUST be in its own rule — a browser that doesn't
   recognise one prefix drops the whole comma-separated rule. ---------- */
.play-shell:fullscreen .play-info { display: none !important; }
.play-shell:-webkit-full-screen .play-info { display: none !important; }
.play-shell:-moz-full-screen .play-info { display: none !important; }
.play-shell:-ms-fullscreen .play-info { display: none !important; }

.play-shell.fit-dadish:fullscreen { max-width: none; background: #0e1936; }
.play-shell.fit-dadish:-webkit-full-screen { max-width: none; background: #0e1936; }
.play-shell.fit-dadish:-moz-full-screen { max-width: none; background: #0e1936; }
.play-shell.fit-dadish:-ms-fullscreen { max-width: none; background: #0e1936; }

.play-shell.fit-dadish:fullscreen .play-box {
    aspect-ratio: auto; width: 100vw; height: 100vh; min-height: 100vh; border-radius: 0;
}
.play-shell.fit-dadish:-webkit-full-screen .play-box {
    aspect-ratio: auto; width: 100vw; height: 100vh; min-height: 100vh; border-radius: 0;
}
.play-shell.fit-dadish:-moz-full-screen .play-box {
    aspect-ratio: auto; width: 100vw; height: 100vh; min-height: 100vh; border-radius: 0;
}
.play-shell.fit-dadish:-ms-fullscreen .play-box {
    aspect-ratio: auto; width: 100vw; height: 100vh; min-height: 100vh; border-radius: 0;
}

.play-shell.fit-dadish:fullscreen .play-box iframe { width: 100vw; height: 100vh; }
.play-shell.fit-dadish:-webkit-full-screen .play-box iframe { width: 100vw; height: 100vh; }
.play-shell.fit-dadish:-moz-full-screen .play-box iframe { width: 100vw; height: 100vh; }
.play-shell.fit-dadish:-ms-fullscreen .play-box iframe { width: 100vw; height: 100vh; }

/* exit-fullscreen pill — only visible when shell is in fullscreen */
.exit-fs-btn {
    display: none;
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 9999;
    background: rgba(14, 25, 54, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 9px 14px;
    border-radius: 10px;
    font: 600 0.9rem "Poppins", system-ui, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    gap: 6px;
    align-items: center;
    line-height: 1;
    user-select: none;
}
.exit-fs-btn:hover { background: rgba(14, 25, 54, 0.97); }
.play-shell:fullscreen .exit-fs-btn { display: inline-flex !important; }
.play-shell:-webkit-full-screen .exit-fs-btn { display: inline-flex !important; }
.play-shell:-moz-full-screen .exit-fs-btn { display: inline-flex !important; }
.play-shell:-ms-fullscreen .exit-fs-btn { display: inline-flex !important; }

/* keep the floating corner logo on dadish, sitting on top of letterbox */
.play-shell.fit-dadish .corner-logo {
    display: block;
    z-index: 20;
    top: auto;
    right: 14px;
    bottom: 14px;
    width: clamp(70px, 8vw, 110px);
    opacity: 0.9;
}

/* ---------- CORNER BRAND LOGO ---------- */
.corner-logo {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 15;
    width: clamp(72px, 9vw, 120px);
    height: auto;
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 2px 7px rgba(0,0,0,0.7));
}
@media (max-width: 560px) {
    .corner-logo { width: 60px; right: 7px; top: 7px; opacity: 0.8; }
}
.play-box iframe {
    width: 100%; height: 100%;
    border: 0; display: block;
    background: #0c0d10;
}
.play-info {
    padding: 18px var(--pad);
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.play-info h1 { font-size: 1.3rem; margin: 0; }
.play-tags {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 4px;
}
.play-tags span {
    font-size: 0.78rem;
    background: var(--ink-3);
    color: var(--paper-dim);
    padding: 3px 10px;
    border-radius: 999px;
}
.fs-btn {
    background: var(--leaf); color: #0f1a14;
    border: 0; padding: 9px 18px;
    border-radius: 10px; font-weight: 600;
    cursor: pointer; font-size: 0.9rem;
    transition: transform 0.15s ease, background 0.15s ease;
    font-family: inherit;
}
.fs-btn:hover { background: var(--leaf-soft); transform: translateY(-1px); }

/* ---------- CARDS GRID (for related / series) ---------- */
.series-block { padding: 10px 0 60px; }
.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.card {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--leaf); }
.card-pic {
    aspect-ratio: 16/10;
    background: #0c0d10;
    display: grid; place-items: center;
    font-size: 2.5rem;
}
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px; }
.card h3 { margin: 0 0 4px; color: var(--paper); font-size: 1rem; }
.card p { margin: 0; font-size: 0.85rem; color: var(--paper-quiet); }

/* ---------- WRITE-UP / COPY BLOCK ---------- */
.writeup {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: clamp(22px, 4vw, 40px);
    margin: 20px 0 40px;
}
.writeup h2 { color: var(--leaf-soft); margin-top: 0; }
.writeup h2:not(:first-child) { margin-top: 1.5em; }
.writeup ul { padding-left: 1.1em; }
.writeup ul li { margin-bottom: 0.5em; color: #d4d5de; }
.writeup strong { color: var(--paper); }

/* ---------- FAQ ---------- */
.faq {
    display: grid; gap: 10px;
    margin-top: 14px;
}
.faq details {
    background: var(--ink-3);
    border-radius: var(--radius-s);
    padding: 12px 16px;
    border: 1px solid var(--line);
    cursor: pointer;
}
.faq summary {
    list-style: none;
    font-weight: 600; color: var(--paper);
    position: relative; padding-right: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 0; top: 0;
    color: var(--leaf); font-weight: 400; font-size: 1.2rem;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; color: var(--paper-dim); font-size: 0.95rem; }

/* ---------- CRUMBS ---------- */
.crumbs {
    font-size: 0.85rem; color: var(--paper-quiet);
    padding: 18px 0 0;
}
.crumbs a { color: var(--paper-dim); }
.crumbs a:hover { color: var(--leaf); }
.crumbs .slash { margin: 0 6px; opacity: 0.4; }

/* ---------- CONTACT FORM ---------- */
.note-form {
    display: grid; gap: 14px;
    max-width: 520px;
}
.note-form label {
    font-size: 0.85rem; color: var(--paper-dim);
    display: block; margin-bottom: 4px;
}
.note-form input,
.note-form textarea {
    width: 100%;
    background: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 10px 12px;
    color: var(--paper);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease;
}
.note-form input:focus,
.note-form textarea:focus {
    outline: none;
    border-color: var(--leaf);
}
.note-form textarea { min-height: 120px; resize: vertical; }
.send-btn {
    background: var(--leaf);
    color: #0f1a14;
    border: 0;
    padding: 11px 22px;
    border-radius: var(--radius-s);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    justify-self: start;
    transition: background 0.15s ease;
}
.send-btn:hover { background: var(--leaf-soft); }
#noteStatus { font-size: 0.9rem; margin-top: 4px; }

/* ---------- BOTTOM BAR ---------- */
.bottom-bar {
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    padding: 34px 0 22px;
    margin-top: 30px;
    color: var(--paper-dim);
    font-size: 0.9rem;
}
.bot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 26px;
    margin-bottom: 22px;
}
.bot-grid h4 { color: var(--paper); font-size: 0.9rem; margin: 0 0 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.bot-grid ul { list-style: none; padding: 0; margin: 0; }
.bot-grid ul li { margin-bottom: 6px; }
.bot-grid ul a { color: var(--paper-dim); font-size: 0.88rem; }
.bot-grid ul a:hover { color: var(--leaf); }
.bot-line {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--paper-quiet);
}

/* ---------- 404 / ERROR ---------- */
.err-screen {
    min-height: 60vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 40px 0;
}
.err-screen .big-num {
    font-size: clamp(5rem, 15vw, 9rem);
    color: var(--leaf);
    line-height: 1;
    margin: 0;
    font-weight: 800;
}
.err-screen p { max-width: 440px; }

/* ---------- GAMERIZ SPLASH OVERLAY ---------- */
.gameriz-splash {
    position: absolute; inset: 0;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    z-index: 20; opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.gameriz-splash img {
    width: min(70%, 640px); height: auto; max-height: 70%;
    object-fit: contain;
    animation: splashEnter 0.5s ease both;
}
.gameriz-splash.fading { opacity: 0; }
@keyframes splashEnter {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
    .menu { display: none; }
    .menu.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink-2);
        border-bottom: 1px solid var(--line);
        padding: 16px var(--pad);
        gap: 14px;
    }
    .burger { display: block; }
    .bot-grid { grid-template-columns: 1fr; gap: 22px; }
    .play-info { flex-direction: column; align-items: flex-start; }
    .gameriz-splash img { width: 86%; }
}
