/* MyTCGPrice global stylesheet
   CSS extracted from base.html and converted from Jinja conditions
   to page classes: .home-page, .quote-page and .game-page.
*/

/* ==============================
   Home page
   ============================== */
body.home-page {
    --bg:#070812;
    --panel:rgba(17,20,36,.82);
    --line:rgba(255,255,255,.13);
    --text:#f7f7fb;
    --muted:#aeb4c7;
    --yellow:#ffd166;
    --violet:#7c5cff;
    --cyan:#00d4ff;
    --green:#41f0a0;
}

* {
    box-sizing:border-box;
}

body.home-page {
    margin:0;
    min-height:100vh;
    color:var(--text);
    font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
    background:radial-gradient(circle at 15% 10%,rgba(124,92,255,.34),transparent 30%),radial-gradient(circle at 85% 20%,rgba(0,212,255,.20),transparent 30%),radial-gradient(circle at 50% 100%,rgba(255,209,102,.14),transparent 34%),var(--bg);
}

body.home-page:before {
    content:"";
    position:fixed;
    inset:0;
    background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size:56px 56px;
    mask-image:linear-gradient(to bottom,#000,transparent 85%);
    pointer-events:none;
}

body.home-page .page {
    position:relative;
    z-index:1;
    max-width:1220px;
    margin:auto;
    padding:28px 18px 60px;
}


body .brand-logo {
    width:38px;
    height:38px;
    object-fit:contain;
    display:block;
    flex:0 0 auto;
    filter:drop-shadow(0 0 14px rgba(124,92,255,.38));
}

body.home-page .nav {
    position:relative;
    z-index:10000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:12px 14px;
    border:1px solid var(--line);
    background:rgba(7,8,18,.62);
    backdrop-filter:blur(18px);
    border-radius:999px;
}

body.home-page .brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:none;
}

body.home-page .mark {
    width:36px;
    height:36px;
    border-radius:50%;
    background:conic-gradient(from 120deg,var(--yellow),var(--violet),var(--cyan),var(--yellow));
    box-shadow:0 0 28px rgba(124,92,255,.5);
}

body.home-page .nav a {
    color:var(--muted);
    text-decoration:none;
    padding:9px 12px;
    border-radius:999px;
}

body.home-page .nav a:hover {
    background:rgba(255,255,255,.08);
    color:#fff;
}

body.home-page .hero {
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:26px;
    align-items:center;
    padding:70px 0 46px;
}

body.home-page .badge {
    display:inline-flex;
    padding:8px 12px;
    border:1px solid rgba(255,209,102,.3);
    background:rgba(255,209,102,.08);
    border-radius:999px;
    color:#ffe6a6;
    font-weight:800;
    font-size:13px;
}

body.home-page h1 {
    font-size:clamp(46px,8vw,92px);
    line-height:.88;
    margin:18px 0;
    letter-spacing:-.07em;
}

body.home-page .grad {
    background:linear-gradient(110deg,#fff,#ffe5a3 36%,#95f0ff 70%,#c7b6ff);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

body.home-page .lead {
    color:var(--muted);
    font-size:clamp(17px,2vw,22px);
    line-height:1.55;
    max-width:680px;
}

body.home-page .btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border-radius:999px;
    text-decoration:none;
    font-weight:900;
    margin-right:10px;
}

body.home-page .primary {
    background:#fff;
    color:#0b0d18;
}

body.home-page .ghost {
    border:1px solid var(--line);
    background:rgba(255,255,255,.07);
    color:#fff;
}

body.home-page .visual {
    align-self:center;
}

body.home-page .panel {
    display:grid;
    gap:12px;
    padding:0;
    background:transparent;
    border:0;
    box-shadow:none;
}

body.home-page .row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:18px 20px;
    border:1px solid var(--line);
    border-radius:20px;
    background:rgba(255,255,255,.055);
    backdrop-filter:blur(12px);
}

body.home-page .row span {
    color:var(--muted);
    font-weight:800;
    text-transform:none;
    letter-spacing:.08em;
    font-size:12px;
}

body.home-page .row strong {
    color:var(--green);
    font-size:18px;
    text-align:right;
}

body.home-page .head {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin:28px 0 18px;
}

body.home-page .head h2 {
    font-size:clamp(30px,4vw,54px);
    letter-spacing:-.04em;
    margin:0;
}

body.home-page .head p {
    color:var(--muted);
    max-width:520px;
}

body.home-page .games {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

body.home-page .game {
    position:relative;
    min-height:180px;
    overflow:hidden;
    border-radius:22px;
    text-decoration:none;
    border:1px solid var(--line);
    background:linear-gradient(135deg,#111827,#050816);
    box-shadow:0 14px 40px rgba(0,0,0,.22);
    transition:.25s;
}

body.home-page .game:hover {
    transform:translateY(-8px);
    border-color:rgba(255,255,255,.28);
}

body.home-page .game:before {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(7,8,18,.98),rgba(7,8,18,.20) 54%,transparent);
    z-index:1;
}

body.home-page .bg {
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 20% 15%,var(--glow1,rgba(255,209,102,.38)),transparent 32%),
        radial-gradient(circle at 78% 20%,var(--glow2,rgba(0,212,255,.32)),transparent 34%),
        linear-gradient(135deg,#111827,#050816);
    background-size:cover;
    background-position:center;
    transition:.3s;
}

body.home-page .bg.logo-bg::after {
    content:"";
    position:absolute;
    top:30px;
    left:50%;
    width:230px;
    height:90px;
    transform:translateX(-50%);
    background-image:var(--logo);
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
    opacity:.88;
    filter:drop-shadow(0 16px 24px rgba(0,0,0,.38));
    transition:.3s;
}

body.home-page .game:hover .bg {
    transform:scale(1.06);
}

body.home-page .game:hover .bg.logo-bg::after {
    opacity:1;
    transform:translateX(-50%) scale(1.04);
}

body.home-page .content {
    position:absolute;
    z-index:2;
    inset:auto 16px 16px;
}

body.home-page .content small {
    color:var(--violet);
    font-weight:950;
    text-transform:none;
    letter-spacing:.1em;
}

body.home-page .content h3 {
    font-size:20px;
    margin:6px 0;
    line-height:1.05;
    color:#fff;
}

body.home-page .content p {
    color:var(--muted);
    font-size:12px;
    line-height:1.35;
}

body.home-page .tool-section {
    margin-top:34px;
}

body.home-page .tool-grid {
    display:grid;
    grid-template-columns:minmax(260px,420px);
    gap:16px;
}

body.home-page .tool-grid .game {
    min-height:180px;
}

body.home-page .features {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-top:28px;
}

body.home-page .feature {
    padding:22px;
    border-radius:26px;
    background:var(--panel);
    border:1px solid var(--line);
}

body.home-page .feature strong {
    font-size:20px;
}

body.home-page .feature p {
    color:var(--muted);
}

@media(max-width:1100px) {
    body.home-page .games {
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:980px) {
    body.home-page .hero {
        grid-template-columns:1fr;
    }

    body.home-page .games {
        grid-template-columns:repeat(2,1fr);
    }

    body.home-page .features {
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:700px) {
    body.home-page .features {
        grid-template-columns:1fr;
    }
}

@media(max-width:620px) {
    body.home-page .nav {
		border-radius:24px;
		align-items:center;
		flex-direction:column;
		gap:10px;
	}

    body.home-page .games {
        grid-template-columns:1fr;
    }

    body.home-page .game {
        min-height:165px;
    }

    body.home-page .head {
        display:block;
    }
}

body.home-page .nav-links {
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
}

body.home-page .nav a,
body.home-page .games-menu summary {
    color:var(--muted);
    text-decoration:none;
    padding:9px 12px;
    border-radius:999px;
    cursor:pointer;
    list-style:none;
    font-weight:900;
    text-transform:none;
    letter-spacing:.08em;
    font-size:13px;
}

body.home-page .games-menu summary::-webkit-details-marker {
    display:none;
}

body.home-page .nav a:hover,
body.home-page .games-menu summary:hover,
body.home-page .nav a.active,
body.home-page .games-menu[open] summary {
    background:rgba(255,255,255,.08);
    color:#fff;
}

body.home-page .games-menu {
    position:relative;
}

body.home-page .games-menu-panel {
    display:none;
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    min-width:230px;
    padding:8px;
    border:1px solid var(--line);
    background:rgba(7,8,18,.94);
    backdrop-filter:blur(18px);
    border-radius:20px;
    box-shadow:0 24px 70px rgba(0,0,0,.38);
    z-index:10001;
}

body.home-page .games-menu:hover .games-menu-panel,
body.home-page .games-menu[open] .games-menu-panel {
    display:grid;
    gap:4px;
}

body.home-page .games-menu-panel a {
    display:block;
    border-radius:14px;
    padding:11px 12px;
}

body.home-page .games-menu-panel a small {
    display:block;
    color:var(--muted);
    font-size:11px;
    margin-top:2px;
}

@media(max-width:640px) {
    body.home-page .nav-links {
        width:100%;
    }

    body.home-page .games-menu {
        width:100%;
    }

    body.home-page .games-menu-panel {
        position:static;
        margin-top:8px;
        width:100%;
    }
}

body.home-page .lang-switch {
    display:flex;
    gap:6px;
    align-items:center;
}

body.home-page .lang-switch a {
    font-size:13px;
    font-weight:900;
    letter-spacing:.04em;
    padding:8px 10px;
}

body.home-page .lang-switch a.active {
    background:rgba(124,92,255,.18);
    color:#fff;
    border:1px solid rgba(124,92,255,.35);
}

@media(max-width:760px) {
    body.home-page .lang-switch {
        width:100%;
        justify-content:center;
    }
}

/* ==============================
   Quote / legal / contact pages
   ============================== */
body.quote-page {
    --bg:#070812;
    --panel:rgba(17,20,36,.84);
    --panel2:rgba(255,255,255,.06);
    --line:rgba(255,255,255,.13);
    --text:#f7f7fb;
    --muted:#aeb4c7;
    --yellow:#ffd166;
    --violet:#7c5cff;
    --cyan:#00d4ff;
    --green:#41f0a0;
    --red:#ff5f7a;
}

* {
    box-sizing:border-box;
}

body.quote-page {
    margin:0;
    min-height:100vh;
    color:var(--text);
    font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
    background:radial-gradient(circle at 15% 10%,rgba(124,92,255,.34),transparent 30%),radial-gradient(circle at 85% 20%,rgba(0,212,255,.20),transparent 30%),radial-gradient(circle at 50% 100%,rgba(255,209,102,.14),transparent 34%),var(--bg);
}

body.quote-page:before {
    content:"";
    position:fixed;
    inset:0;
    background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size:56px 56px;
    mask-image:linear-gradient(to bottom,#000,transparent 85%);
    pointer-events:none;
}

body.quote-page .page {
    position:relative;
    z-index:1;
    max-width:1220px;
    margin:auto;
    padding:28px 18px 70px;
}

body.quote-page .nav {
    position:relative;
    z-index:10000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:12px 14px;
    border:1px solid var(--line);
    background:rgba(7,8,18,.62);
    backdrop-filter:blur(18px);
    border-radius:999px;
}

body.quote-page .brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:none;
}

body.quote-page .mark {
    width:36px;
    height:36px;
    border-radius:50%;
    background:conic-gradient(from 120deg,var(--yellow),var(--violet),var(--cyan),var(--yellow));
    box-shadow:0 0 28px rgba(124,92,255,.5);
}

body.quote-page .nav a {
    color:var(--muted);
    text-decoration:none;
    padding:9px 12px;
    border-radius:999px;
}

body.quote-page .nav a:hover,
body.quote-page .nav a.active {
    background:rgba(255,255,255,.08);
    color:#fff;
}

body.quote-page .hero {
    padding:58px 0 28px;
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:24px;
    align-items:end;
}

body.quote-page .badge {
    display:inline-flex;
    padding:8px 12px;
    border:1px solid rgba(255,209,102,.3);
    background:rgba(255,209,102,.08);
    border-radius:999px;
    color:#ffe6a6;
    font-weight:800;
    font-size:13px;
}

body.quote-page h1 {
    font-size:clamp(42px,7vw,78px);
    line-height:.92;
    margin:18px 0;
    letter-spacing:-.06em;
}

body.quote-page .grad {
    background:linear-gradient(110deg,#fff,#ffe5a3 36%,#95f0ff 70%,#c7b6ff);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

body.quote-page .lead {
    color:var(--muted);
    font-size:clamp(17px,2vw,21px);
    line-height:1.55;
    max-width:780px;
}

body.quote-page .formula-card,
body.quote-page .card {
    border:1px solid var(--line);
    background:var(--panel);
    backdrop-filter:blur(18px);
    border-radius:30px;
    box-shadow:0 24px 80px rgba(0,0,0,.28);
}

body.quote-page .formula-card {
    padding:24px;
}

body.quote-page .formula-card strong {
    color:var(--green);
    font-size:22px;
}

body.quote-page .formula {
    margin-top:14px;
    padding:16px;
    border-radius:20px;
    background:rgba(255,255,255,.07);
    font-weight:900;
    line-height:1.6;
}

body.quote-page .grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:20px;
}

body.quote-page .card {
    padding:24px;
}

body.quote-page .card h2 {
    font-size:30px;
    margin:0 0 14px;
    letter-spacing:-.03em;
}

body.quote-page .muted {
    color:var(--muted);
    line-height:1.55;
}

body.quote-page .table-wrap {
    overflow:auto;
    border-radius:22px;
    border:1px solid var(--line);
}

body.quote-page table {
    width:100%;
    border-collapse:collapse;
    min-width:860px;
    background:rgba(255,255,255,.035);
}

body.quote-page th,
body.quote-page td {
    padding:14px 16px;
    text-align:left;
    border-bottom:1px solid rgba(255,255,255,.09);
    vertical-align:top;
}

body.quote-page th {
    color:#ffe6a6;
    background:rgba(255,209,102,.08);
    font-size:13px;
    text-transform:none;
    letter-spacing:.08em;
}

body.quote-page td {
    color:#eef0fb;
}

body.quote-page td:nth-child(3) {
    color:var(--muted);
    line-height:1.45;
}

body.quote-page td:last-child {
    font-weight:900;
    color:var(--green);
}

body.quote-page .calculator {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

body.quote-page .field {
    display:flex;
    flex-direction:column;
    gap:8px;
}

body.quote-page .field.full {
    grid-column:1/-1;
}

body.quote-page label {
    color:#d8dcff;
    font-weight:800;
    font-size:14px;
}

body.quote-page select,
body.quote-page input {
    width:100%;
    padding:14px 14px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(0,0,0,.38);
    color:#fff;
    outline:none;
    font-size:16px;
}

body.quote-page select:focus,
body.quote-page input:focus {
    border-color:rgba(0,212,255,.65);
    box-shadow:0 0 0 4px rgba(0,212,255,.12);
}

body.quote-page button {
    border:0;
    border-radius:999px;
    min-height:52px;
    padding:0 22px;
    background:#fff;
    color:#0b0d18;
    font-weight:950;
    cursor:pointer;
    font-size:16px;
}

body.quote-page button:hover {
    transform:translateY(-1px);
}

body.quote-page .result {
    margin-top:18px;
    padding:22px;
    border-radius:24px;
    background:linear-gradient(135deg,rgba(65,240,160,.16),rgba(0,212,255,.10));
    border:1px solid rgba(65,240,160,.28);
    display:none;
}

body.quote-page .result .value {
    font-size:clamp(36px,5vw,58px);
    font-weight:1000;
    letter-spacing:-.05em;
    color:var(--green);
}

body.quote-page .details {
    color:var(--muted);
    line-height:1.55;
    margin-top:8px;
}

body.quote-page .pill-list {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}

body.quote-page .pill {
    padding:10px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.07);
    border:1px solid var(--line);
    color:#d8dcff;
    font-size:14px;
}

body.quote-page .error {
    display:none;
    margin-top:12px;
    color:#ffd1d8;
    background:rgba(255,95,122,.12);
    border:1px solid rgba(255,95,122,.25);
    padding:12px;
    border-radius:16px;
}

@media(max-width:980px) {
    body.quote-page .hero,
    body.quote-page .grid {
        grid-template-columns:1fr;
    }

    body.quote-page .calculator {
        grid-template-columns:1fr;
    }
}

@media(max-width:620px) {
    body.quote-page .nav {
		border-radius:24px;
		align-items:center;
		flex-direction:column;
		gap:10px;
	}

    body.quote-page .page {
        padding-inline:14px;
    }
}

body.quote-page .nav-links {
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
}

body.quote-page .nav a,
body.quote-page .games-menu summary {
    color:var(--muted);
    text-decoration:none;
    padding:9px 12px;
    border-radius:999px;
    cursor:pointer;
    list-style:none;
    font-weight:900;
    text-transform:none;
    letter-spacing:.08em;
    font-size:13px;
}

body.quote-page .games-menu summary::-webkit-details-marker {
    display:none;
}

body.quote-page .nav a:hover,
body.quote-page .games-menu summary:hover,
body.quote-page .nav a.active,
body.quote-page .games-menu[open] summary {
    background:rgba(255,255,255,.08);
    color:#fff;
}

body.quote-page .games-menu {
    position:relative;
}

body.quote-page .games-menu-panel {
    display:none;
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    min-width:230px;
    padding:8px;
    border:1px solid var(--line);
    background:rgba(7,8,18,.94);
    backdrop-filter:blur(18px);
    border-radius:20px;
    box-shadow:0 24px 70px rgba(0,0,0,.38);
    z-index:10001;
}

body.quote-page .games-menu:hover .games-menu-panel,
body.quote-page .games-menu[open] .games-menu-panel {
    display:grid;
    gap:4px;
}

body.quote-page .games-menu-panel a {
    display:block;
    border-radius:14px;
    padding:11px 12px;
}

body.quote-page .games-menu-panel a small {
    display:block;
    color:var(--muted);
    font-size:11px;
    margin-top:2px;
}

@media(max-width:640px) {
    body.quote-page .nav-links {
        width:100%;
    }

    body.quote-page .games-menu {
        width:100%;
    }
}

body.quote-page .lang-switch {
    display:flex;
    gap:6px;
    align-items:center;
}

body.quote-page .lang-switch a {
    font-size:13px;
    font-weight:900;
    letter-spacing:.04em;
    padding:8px 10px;
}

body.quote-page .lang-switch a.active {
    background:rgba(124,92,255,.18);
    color:#fff;
    border:1px solid rgba(124,92,255,.35);
}

@media(max-width:760px) {
    body.quote-page .lang-switch {
        width:100%;
        justify-content:center;
    }
}

/* ==============================
   Game pages
   ============================== */
body.game-page {
    --bg:#070812;
    --panel:rgba(17,20,36,.84);
    --line:rgba(255,255,255,.13);
    --text:#f7f7fb;
    --muted:#aeb4c7;
    --accent:#ffd166;
    --violet:#7c5cff;
    --cyan:#00d4ff;
    --green:#41f0a0;
    --red:#ff5b74;
}

* {
    box-sizing:border-box;
}

body.game-page {
    margin:0;
    min-height:100vh;
    color:var(--text);
    font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
    background:radial-gradient(circle at 12% 10%,color-mix(in srgb,var(--accent) 28%,transparent),transparent 30%),radial-gradient(circle at 90% 18%,rgba(124,92,255,.26),transparent 30%),#070812;
}

body.game-page:before {
    content:"";
    position:fixed;
    inset:0;
    background:linear-gradient(to bottom,rgba(7,8,18,.12),rgba(7,8,18,.94)),radial-gradient(circle at 20% 18%,color-mix(in srgb,var(--accent) 30%,transparent),transparent 30%),radial-gradient(circle at 82% 14%,rgba(124,92,255,.24),transparent 30%),linear-gradient(135deg,#111827,#050816);
    opacity:.48;
    z-index:-2;
}

body.game-page .page {
    max-width:1220px;
    margin:auto;
    padding:28px 18px 60px;
}

body.game-page .nav {
    position:relative;
    z-index:10000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:12px 14px;
    border:1px solid var(--line);
    background:rgba(7,8,18,.68);
    backdrop-filter:blur(18px);
    border-radius:999px;
}

body.game-page .brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:none;
    text-decoration:none;
}

body.game-page .mark {
    width:36px;
    height:36px;
    border-radius:50%;
    background:conic-gradient(from 120deg,var(--accent),var(--violet),var(--cyan),var(--accent));
    box-shadow:0 0 28px color-mix(in srgb,var(--accent) 45%,transparent);
}

body.game-page .nav a {
    color:var(--muted);
    text-decoration:none;
    padding:9px 12px;
    border-radius:999px;
}

body.game-page .nav a:hover {
    background:rgba(255,255,255,.08);
    color:#fff;
}

body.game-page .hero {
    display:grid;
    grid-template-columns:1fr;
    gap:22px;
    align-items:stretch;
    padding:42px 0 24px;
}

body.game-page .hero-main {
    padding:0 4px 8px;
    min-height:auto;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    overflow:visible;
}

body.game-page .search-panel {
    border:1px solid var(--line);
    background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
    backdrop-filter:blur(18px);
    border-radius:34px;
    box-shadow:0 28px 90px rgba(0,0,0,.34);
}

body.game-page .badge {
    display:inline-flex;
    width:max-content;
    padding:8px 12px;
    border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);
    background:color-mix(in srgb,var(--accent) 12%,transparent);
    border-radius:999px;
    color:#fff2c7;
    font-weight:900;
    font-size:13px;
}

body.game-page h1 {
    font-size:clamp(42px,6vw,76px);
    line-height:.9;
    letter-spacing:-.06em;
    margin:18px 0 14px;
}

body.game-page .lead {
    color:var(--muted);
    font-size:17px;
    line-height:1.5;
    max-width:980px;
    margin:0;
}

body.game-page .search-panel {
    padding:24px 28px;
}

body.game-page .search-panel h2 {
    margin:0 0 12px;
    font-size:24px;
}

body.game-page .search-panel p {
    margin:0 0 18px;
    color:var(--muted);
    line-height:1.5;
}

body.game-page form {
    display:grid;
    gap:12px;
}

body.game-page .search-panel form select,
body.game-page .search-panel form input {
    max-width:none;
}

body.game-page #top-buttons {
    align-items:center;
}

body.game-page select,
body.game-page input {
    width:100%;
    padding:14px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(0,0,0,.42);
    color:white;
    outline:none;
    font-size:15px;
}

body.game-page select:focus,
body.game-page input:focus {
    border-color:color-mix(in srgb,var(--accent) 65%,white);
    box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent);
}

body.game-page button {
    min-height:48px;
    border:0;
    border-radius:999px;
    cursor:pointer;
    background:linear-gradient(110deg,var(--accent),var(--violet));
    color:#070812;
    font-weight:950;
    font-size:15px;
    box-shadow:0 18px 45px color-mix(in srgb,var(--accent) 24%,transparent);
}

body.game-page .hint {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:16px;
}

body.game-page .pill {
    padding:8px 10px;
    border:1px solid var(--line);
    border-radius:999px;
    color:var(--muted);
    background:rgba(255,255,255,.05);
    font-size:12px;
}

body.game-page .head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin:34px 0 16px;
}

body.game-page .head h2 {
    font-size:clamp(28px,4vw,48px);
    letter-spacing:-.04em;
    margin:0;
}

body.game-page .head p {
    color:var(--muted);
    margin:0;
    max-width:520px;
    line-height:1.5;
}

body.game-page .error {
    text-align:center;
    color:#fff;
    background:rgba(255,91,116,.16);
    border:1px solid rgba(255,91,116,.35);
    padding:16px;
    border-radius:18px;
    font-weight:900;
}

body.game-page .grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

body.game-page .card {
    display:grid;
    grid-template-columns:190px 1fr;
    gap:18px;
    border:1px solid var(--line);
    background:var(--panel);
    backdrop-filter:blur(18px);
    border-radius:28px;
    padding:14px;
    box-shadow:0 24px 70px rgba(0,0,0,.24);
    overflow:hidden;
}

body.game-page .card img {
    width:100%;
    border-radius:18px;
    object-fit:contain;
    background:rgba(0,0,0,.28);
    box-shadow:0 12px 32px rgba(0,0,0,.28);
}

body.game-page .info {
    min-width:0;
    display:flex;
    flex-direction:column;
}

body.game-page .tag {
    width:max-content;
    max-width:100%;
    padding:6px 10px;
    border-radius:999px;
    background:color-mix(in srgb,var(--accent) 18%,transparent);
    border:1px solid color-mix(in srgb,var(--accent) 36%,transparent);
    color:#fff2c7;
    font-size:12px;
    font-weight:950;
    margin-bottom:10px;
}

body.game-page .name {
    font-size:23px;
    line-height:1.05;
    font-weight:950;
    letter-spacing:-.03em;
    margin-bottom:10px;
}

body.game-page .meta {
    color:var(--muted);
    margin:4px 0;
    font-size:14px;
}

body.game-page .prices {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:12px 0;
}

body.game-page .price {
    padding:10px 12px;
    border-radius:16px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    font-weight:950;
}

body.game-page .usd {
    color:#8bc7ff;
}

body.game-page .eur {
    color:var(--green);
}

body.game-page .buttons {
    margin-top:auto;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

body.game-page .btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 13px;
    color:white;
    text-decoration:none;
    border-radius:999px;
    font-weight:900;
    font-size:13px;
    border:1px solid rgba(255,255,255,.12);
}

body.game-page .cardmarket {
    background:linear-gradient(110deg,#0077ff,#6a5cff);
}

body.game-page .tcgplayer {
    background:linear-gradient(110deg,#ff3b3b,#ff7a59);
}

body.game-page .ebay {
    background:linear-gradient(110deg,#86b817,#5cae3f,#3a8f2f);
    color:#ffffff;
}

body.game-page .empty {
    padding:28px;
    text-align:center;
    color:var(--muted);
    border:1px dashed rgba(255,255,255,.18);
    border-radius:24px;
    background:rgba(255,255,255,.04);
}

@media(max-width:980px) {
    body.game-page .hero {
        grid-template-columns:1fr;
    }

    body.game-page .grid {
        grid-template-columns:1fr;
    }
}

@media(max-width:640px) {
    body.game-page .nav {
        border-radius:24px;
        align-items:flex-start;
        flex-direction:column;
    }

    body.game-page .hero-main {
        padding:0 2px 6px;
    }

    body.game-page .card {
        grid-template-columns:1fr;
    }

    body.game-page .card img {
        max-width:220px;
        justify-self:center;
    }

    body.game-page .head {
        display:block;
    }
}

body.game-page .nav-links {
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
}

body.game-page .nav a,
body.game-page .games-menu summary {
    color:var(--muted);
    text-decoration:none;
    padding:9px 12px;
    border-radius:999px;
    cursor:pointer;
    list-style:none;
    font-weight:900;
    text-transform:none;
    letter-spacing:.08em;
    font-size:13px;
}

body.game-page .games-menu summary::-webkit-details-marker {
    display:none;
}

body.game-page .nav a:hover,
body.game-page .games-menu summary:hover,
body.game-page .nav a.active,
body.game-page .games-menu[open] summary {
    background:rgba(255,255,255,.08);
    color:#fff;
}

body.game-page .games-menu {
    position:relative;
}

body.game-page .games-menu-panel {
    display:none;
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    min-width:230px;
    padding:8px;
    border:1px solid var(--line);
    background:rgba(7,8,18,.94);
    backdrop-filter:blur(18px);
    border-radius:20px;
    box-shadow:0 24px 70px rgba(0,0,0,.38);
    z-index:10001;
}

body.game-page .games-menu:hover .games-menu-panel,
body.game-page .games-menu[open] .games-menu-panel {
    display:grid;
    gap:4px;
}

body.game-page .games-menu-panel a {
    display:block;
    border-radius:14px;
    padding:11px 12px;
}

body.game-page .games-menu-panel a small {
    display:block;
    color:var(--muted);
    font-size:11px;
    margin-top:2px;
}

@media(max-width:640px) {
    body.game-page .nav-links {
        width:100%;
    }

    body.game-page .games-menu {
        width:100%;
    }

    body.game-page .games-menu-panel {
        position:static;
        margin-top:8px;
        width:100%;
    }
}

body.game-page .lang-switch {
    display:flex;
    gap:6px;
    align-items:center;
}

body.game-page .lang-switch a {
    font-size:13px;
    font-weight:900;
    letter-spacing:.04em;
    padding:8px 10px;
}

body.game-page .lang-switch a.active {
    background:rgba(124,92,255,.18);
    color:#fff;
    border:1px solid rgba(124,92,255,.35);
}

@media(max-width:760px) {
    body.game-page .lang-switch {
        width:100%;
        justify-content:center;
    }
}

body.game-page .sku-table {
    width:100%;
    border-collapse:collapse;
    margin:12px 0 14px;
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
    font-size:13px;
}

body.game-page .sku-table th,
body.game-page .sku-table td {
    padding:9px 8px;
    border-bottom:1px solid rgba(255,255,255,.08);
    text-align:left;
}

body.game-page .sku-table th {
    color:#fff;
    background:rgba(255,255,255,.07);
    font-size:11px;
    text-transform:none;
    letter-spacing:.08em;
}

body.game-page .sku-table td {
    color:var(--muted);
}

body.game-page .sku-table tr:last-child td {
    border-bottom:0;
}


body.game-page .mini-price-table th,
body.game-page .mini-price-table td {
    width:50%;
}

body.game-page .sku-title {
    margin:14px 0 6px;
    color:#fff;
    font-weight:900;
    font-size:13px;
    text-transform:none;
    letter-spacing:.08em;
}

/* ==============================
   Shared layout, footer and helpers
   ============================== */
/* Layout global : pousse le footer en bas des pages courtes */
html{
    min-height:100%;
}
body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}
.page{
    width:100%;
    flex:1;
}

.footer{
    margin-top:40px;
    padding:18px 20px 12px;
    border-top:1px solid var(--line);
    background:rgba(255,255,255,.03);
}

.footer-inner{
    max-width:1220px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.footer-brand strong{
    font-size:14px;
}

.footer-brand p{
    color:var(--muted);
    max-width:340px;
    line-height:1.4;
    font-size:12px;
    margin:4px 0 0;
}

.footer-links{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.footer-links a{
    color:var(--muted);
    text-decoration:none;
    font-size:13px;
}

.footer-links a:hover{
    color:#fff;
}

.footer-bottom{
    margin-top:14px;
    text-align:center;
    color:var(--muted);
    font-size:11px;
}

.contact-box{
    margin-top:20px;
    padding:18px;
    border-radius:20px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.05);
}

.contact-box a{
    color:var(--cyan);
    text-decoration:none;
    font-weight:700;
}

textarea{
    width:100%;
    padding:14px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(0,0,0,.42);
    color:white;
    outline:none;
    resize:vertical;
    font-size:15px;
    font-family:inherit;
}

textarea:focus{
    border-color:rgba(0,212,255,.65);
    box-shadow:0 0 0 4px rgba(0,212,255,.12);
}


/* Navigation mobile compacte */
@media (max-width: 640px){
    body .nav{
        border-radius:24px;
        align-items:center;
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:center;
        gap:8px;
    }

    body .brand{
        width:100%;
        justify-content:center;
        margin-bottom:4px;
        letter-spacing:.04em;
    }

    body .mark{
        width:28px;
        height:28px;
    }

    body .brand-logo{
        width:30px;
        height:30px;
    }

    body .nav-links{
        width:100%;
        justify-content:center;
        gap:6px;
    }

    body .games-menu{
        width:auto;
    }

    body .games-menu-panel{
        position:absolute;
        top:calc(100% + 10px);
        right:50%;
        transform:translateX(50%);
        width:min(280px, calc(100vw - 36px));
        min-width:0;
    }

    body .lang-switch{
        width:100%;
        justify-content:center;
        margin-top:2px;
    }

    body .nav a,
    body .games-menu summary{
        font-size:12px;
        padding:8px 10px;
        letter-spacing:.04em;
    }
}

@media (max-width: 420px){
    body .nav a,
    body .games-menu summary{
        font-size:11px;
        padding:7px 8px;
    }
}
@media(max-width:640px){
    body .nav-links{
        width:100%;
        display:flex;
        flex-direction:row;
        justify-content:center;
        align-items:center;
        flex-wrap:nowrap;
        gap:8px;
    }

    body .nav-links > a,
    body .games-menu{
        width:auto !important;
        flex:0 0 auto !important;
    }

    body .games-menu summary{
        width:auto !important;
        display:inline-flex;
    }
}

@media(max-width:640px){

    body .games-menu{
        position:relative;
    }

    body .games-menu-panel{
        position:absolute !important;
        top:calc(100% + 10px);
        left:50%;
        transform:translateX(-50%);
        width:max-content;
        min-width:230px;

        z-index:99999;

        background:rgba(7,8,18,.98);
        backdrop-filter:blur(18px);

        border:1px solid var(--line);
        border-radius:20px;

        box-shadow:0 24px 70px rgba(0,0,0,.45);
    }
}
.pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pagination-status {
  font-weight: 700;
  opacity: .85;
}
.pagination-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 15, .68);
  backdrop-filter: blur(6px);
}

.page-loader.show {
  display: flex;
}

.page-loader-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12, 14, 30, .96);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  font-weight: 800;
}

.page-loader-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: var(--accent);
  animation: page-loader-spin .8s linear infinite;
}

@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}

.results-section { scroll-margin-top: 24px; }

/* ==============================
   Games dropdown cards
   ============================== */
body.home-page .games-menu-panel,
body.quote-page .games-menu-panel,
body.game-page .games-menu-panel {
    min-width:min(560px,calc(100vw - 32px));
    padding:10px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}

body.home-page .games-menu:hover .games-menu-panel,
body.home-page .games-menu[open] .games-menu-panel,
body.quote-page .games-menu:hover .games-menu-panel,
body.quote-page .games-menu[open] .games-menu-panel,
body.game-page .games-menu:hover .games-menu-panel,
body.game-page .games-menu[open] .games-menu-panel {
    display:grid;
}

body.home-page .games-menu-panel a.game-menu-card,
body.quote-page .games-menu-panel a.game-menu-card,
body.game-page .games-menu-panel a.game-menu-card {
    position:relative;
    display:grid;
    grid-template-columns:76px 1fr;
    align-items:center;
    gap:12px;
    min-height:84px;
    overflow:hidden;
    padding:12px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.10);
    background:
        radial-gradient(circle at 16% 12%,var(--glow1,rgba(255,209,102,.30)),transparent 42%),
        radial-gradient(circle at 92% 10%,var(--glow2,rgba(0,212,255,.22)),transparent 46%),
        linear-gradient(135deg,rgba(17,24,39,.96),rgba(5,8,22,.96));
    box-shadow:0 14px 34px rgba(0,0,0,.18);
    transition:transform .22s ease,border-color .22s ease,background .22s ease;
}

body.home-page .games-menu-panel a.game-menu-card:hover,
body.quote-page .games-menu-panel a.game-menu-card:hover,
body.game-page .games-menu-panel a.game-menu-card:hover,
body.home-page .games-menu-panel a.game-menu-card.active,
body.quote-page .games-menu-panel a.game-menu-card.active,
body.game-page .games-menu-panel a.game-menu-card.active {
    transform:translateY(-2px);
    border-color:rgba(255,255,255,.28);
    background:
        radial-gradient(circle at 16% 12%,var(--glow1,rgba(255,209,102,.42)),transparent 42%),
        radial-gradient(circle at 92% 10%,var(--glow2,rgba(0,212,255,.30)),transparent 46%),
        linear-gradient(135deg,rgba(20,28,48,.98),rgba(7,10,26,.98));
}

body.home-page .game-menu-logo,
body.quote-page .game-menu-logo,
body.game-page .game-menu-logo {
    display:block;
    width:76px;
    height:58px;
    background-image:var(--logo);
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
    filter:drop-shadow(0 10px 16px rgba(0,0,0,.38));
}

body.home-page .game-menu-copy,
body.quote-page .game-menu-copy,
body.game-page .game-menu-copy {
    position:relative;
    z-index:1;
    min-width:0;
}

body.home-page .games-menu-panel a.game-menu-card .game-menu-copy small,
body.quote-page .games-menu-panel a.game-menu-card .game-menu-copy small,
body.game-page .games-menu-panel a.game-menu-card .game-menu-copy small {
    display:block;
    color:var(--muted);
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    margin:0 0 4px;
}

body.home-page .game-menu-copy strong,
body.quote-page .game-menu-copy strong,
body.game-page .game-menu-copy strong {
    display:block;
    color:#fff;
    font-size:12px;
    line-height:1.08;
    letter-spacing:.06em;
}

@media(max-width:640px) {
    body.home-page .games-menu-panel,
    body.quote-page .games-menu-panel,
    body.game-page .games-menu-panel {
        position:static;
        width:100%;
        min-width:0;
        margin-top:8px;
        grid-template-columns:1fr;
    }

    body.home-page .games-menu-panel a.game-menu-card,
    body.quote-page .games-menu-panel a.game-menu-card,
    body.game-page .games-menu-panel a.game-menu-card {
        grid-template-columns:70px 1fr;
        min-height:78px;
    }

    body.home-page .game-menu-logo,
    body.quote-page .game-menu-logo,
    body.game-page .game-menu-logo {
        width:70px;
        height:52px;
    }
}

/* ==============================
   Games dropdown responsive fix
   ============================== */
body .games-menu{
    position:relative;
}

body.home-page .games-menu-panel,
body.quote-page .games-menu-panel,
body.game-page .games-menu-panel{
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    width:min(640px, calc(100vw - 32px)) !important;
    min-width:0 !important;
    max-width:calc(100vw - 32px) !important;
    box-sizing:border-box;
    padding:12px !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
}

body.home-page .games-menu-panel a.game-menu-card,
body.quote-page .games-menu-panel a.game-menu-card,
body.game-page .games-menu-panel a.game-menu-card{
    box-sizing:border-box;
    min-width:0;
}

@media (min-width:641px){
    body.home-page .games-menu-panel,
    body.quote-page .games-menu-panel,
    body.game-page .games-menu-panel{
        top:calc(100% + 12px) !important;
    }
}

@media (max-width:640px){
    body .nav{
        overflow:visible !important;
    }

    body .nav-links{
        width:100% !important;
        display:flex !important;
        flex-wrap:wrap !important;
        justify-content:center !important;
        align-items:center !important;
        gap:8px !important;
    }

    body .games-menu{
        width:100% !important;
        flex:1 1 100% !important;
        order:3;
    }

    body .games-menu summary{
        width:max-content !important;
        max-width:100% !important;
        margin:0 auto !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    body.home-page .games-menu-panel,
    body.quote-page .games-menu-panel,
    body.game-page .games-menu-panel{
        position:static !important;
        left:auto !important;
        right:auto !important;
        transform:none !important;
        width:100% !important;
        max-width:100% !important;
        margin:10px auto 0 !important;
        grid-template-columns:1fr !important;
        max-height:calc(100vh - 190px);
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
    }

    body.home-page .games-menu-panel a.game-menu-card,
    body.quote-page .games-menu-panel a.game-menu-card,
    body.game-page .games-menu-panel a.game-menu-card{
        grid-template-columns:64px minmax(0, 1fr) !important;
        min-height:72px !important;
        padding:10px !important;
        gap:10px !important;
    }

    body.home-page .game-menu-logo,
    body.quote-page .game-menu-logo,
    body.game-page .game-menu-logo{
        width:64px !important;
        height:48px !important;
    }

    body.home-page .game-menu-copy strong,
    body.quote-page .game-menu-copy strong,
    body.game-page .game-menu-copy strong{
        font-size:11px !important;
        line-height:1.15 !important;
        overflow-wrap:anywhere;
    }
}

@media (max-width:380px){
    body.home-page .games-menu-panel a.game-menu-card,
    body.quote-page .games-menu-panel a.game-menu-card,
    body.game-page .games-menu-panel a.game-menu-card{
        grid-template-columns:56px minmax(0, 1fr) !important;
    }

    body.home-page .game-menu-logo,
    body.quote-page .game-menu-logo,
    body.game-page .game-menu-logo{
        width:56px !important;
        height:44px !important;
    }
}


/* Game page logo in hero */
body.game-page .game-title-row {
    display:flex;
    align-items:center;
    gap:18px;
    margin:18px 0 14px;
}

body.game-page .game-title-row h1 {
    margin:0;
}

body.game-page .game-page-logo {
    width:clamp(76px, 9vw, 118px);
    max-height:76px;
    object-fit:contain;
    flex:0 0 auto;
    padding:10px 12px;
    border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);
    border-radius:24px;
    background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
    box-shadow:0 18px 50px rgba(0,0,0,.25), 0 0 34px color-mix(in srgb,var(--accent) 18%,transparent);
}

@media (max-width: 720px) {
    body.game-page .game-title-row {
        gap:12px;
        align-items:center;
        margin:16px 0 12px;
    }

    body.game-page .game-page-logo {
        width:64px;
        max-height:56px;
        padding:8px 10px;
        border-radius:18px;
    }

    body.game-page .game-title-row h1 {
        font-size:clamp(34px, 10vw, 52px);
        letter-spacing:-.055em;
    }
}

@media (max-width: 430px) {
    body.game-page .game-title-row {
        align-items:flex-start;
        flex-direction:column;
    }

    body.game-page .game-page-logo {
        width:82px;
        max-height:62px;
    }
}

/* =====================================================
   SHARE YOUR HIT
   ===================================================== */
.pull-open-btn,
.pull-share-submit {
    background: linear-gradient(135deg, #ff8a00, #ff2d75);
    color: #fff;
    border: 0;
}

.pull-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pull-modal.show {
    display: flex;
}

.pull-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, .74);
    backdrop-filter: blur(12px);
}

.pull-modal-card {
    position: relative;
    width: min(720px, 100%);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(21, 26, 48, .98), rgba(7, 12, 28, .98));
    box-shadow: 0 30px 100px rgba(0,0,0,.45);
    padding: 24px;
    color: #fff;
}

.pull-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: rgba(255,255,255,.08);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

.pull-modal-preview {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
}

.pull-card-glow,
.pull-post-image-wrap {
    position: relative;
    border-radius: 20px;
    isolation: isolate;
}

.pull-card-glow::before,
.pull-post-image-wrap::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255,203,5,.62), rgba(255,45,117,.24), transparent 68%);
    filter: blur(14px);
    z-index: -1;
    animation: pullGlowPulse 2.8s ease-in-out infinite;
}

.pull-card-glow img,
.pull-post-image {
    width: 100%;
    display: block;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.4);
    animation: pullFloat 4s ease-in-out infinite;
}

.pull-modal-preview h2,
.pull-post-card h2 {
    margin: 0 0 8px;
}

#pull-modal-set,
#pull-modal-price {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.76);
}

.pull-form {
    display: grid;
    gap: 14px;
}

.pull-form label,
.admin-login-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.pull-form input,
.pull-form select,
.admin-login-form input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.07);
    color: #fff;
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
}

.pull-form select option {
    color: #111;
}

.pull-form-actions,
.pull-sort-tabs,
.pull-actions-row,
.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn.secondary {
    background: rgba(255,255,255,.08);
}

.share-hero {
    margin-bottom: 22px;
}

.pull-feed-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.pull-sort-tabs .active {
    box-shadow: 0 0 0 2px rgba(255,255,255,.22) inset;
}

.pull-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.pull-post-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.pull-post-mood {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    margin-bottom: 10px;
    font-weight: 800;
}

.pull-post-line,
.pull-value {
    margin: 8px 0;
}

.like-btn {
    min-width: 86px;
}

.pull-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
}

.pull-reactions > span {
    width: 100%;
    font-weight: 800;
    opacity: .8;
}

.pull-reactions button,
.pull-reaction-counts span {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: inherit;
    border-radius: 999px;
    padding: 8px 10px;
    cursor: pointer;
}

.pull-reaction-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    opacity: .8;
}

.admin-login-form {
    max-width: 420px;
    display: grid;
    gap: 14px;
}

.admin-post-list {
    display: grid;
    gap: 14px;
}

.admin-post-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
}

.admin-post-card img {
    width: 70px;
    border-radius: 10px;
}

.admin-post-card.is-hidden {
    opacity: .55;
}

.btn.danger {
    background: #ff3b3b;
    color: white;
}

@keyframes pullGlowPulse {
    0%, 100% { opacity: .62; transform: scale(.98); }
    50% { opacity: 1; transform: scale(1.03); }
}

@keyframes pullFloat {
    0%, 100% { transform: translateY(0) rotate(-.35deg); }
    50% { transform: translateY(-5px) rotate(.35deg); }
}

@media (max-width: 720px) {
    .pull-modal-preview,
    .pull-post-card,
    .admin-post-card {
        grid-template-columns: 1fr;
    }

    .pull-card-glow {
        max-width: 170px;
        margin: 0 auto;
    }

    .pull-post-image-wrap {
        max-width: 160px;
    }

    .pull-feed-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =====================================================
   SHARE YOUR HIT - UX refinements
   ===================================================== */
body.home-page .hero-luck {
    margin: -8px 0 16px;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 950;
    letter-spacing: -.035em;
    color: #ffe6a6;
    text-shadow: 0 0 26px rgba(255, 209, 102, .22);
}

.pull-open-btn,
.pull-share-submit {
    background: linear-gradient(135deg, #ff8a00, #ff2d75);
    color: #fff;
    border: 0;
}

.pull-post-image-wrap.pull-image-zoom-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    text-align: inherit;
}

.pull-post-image-wrap.pull-image-zoom-trigger:hover .pull-post-image,
.pull-post-image-wrap.pull-image-zoom-trigger:focus-visible .pull-post-image {
    transform: translateY(-5px) scale(1.035) rotate(.35deg);
}

.pull-post-headline {
    margin: 0 0 12px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.25;
    font-weight: 850;
    color: #fff;
}

.pull-pseudo {
    font-size: 1.22em;
    letter-spacing: -.02em;
    color: #ffe6a6;
    text-shadow: 0 0 22px rgba(255, 209, 102, .28);
}

.like-btn,
.pull-reactions button,
.pull-reaction-counts span {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    color: rgba(255, 255, 255, .92) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.like-btn:hover,
.pull-reactions button:hover {
    background: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .28) !important;
    transform: translateY(-1px);
}

.like-btn {
    min-width: 78px;
    padding-inline: 13px;
}

.pull-reactions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.pull-reactions .reaction-emoji {
    font-size: 1.38em;
    line-height: 1;
}

.pull-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pull-image-lightbox.show {
    display: flex;
}

.pull-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 8, 18, .82);
    backdrop-filter: blur(14px);
    cursor: zoom-out;
}

.pull-lightbox-card {
    position: relative;
    width: min(420px, 86vw);
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(145deg, rgba(21, 26, 48, .96), rgba(7, 12, 28, .96));
    box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

.pull-lightbox-glow img {
    max-height: 76vh;
    object-fit: contain;
}

@media (max-width: 720px) {
    .pull-post-headline {
        font-size: 18px;
    }

    .pull-lightbox-card {
        width: min(360px, 90vw);
        padding: 18px;
    }
}

/* Pull button moved under the card image in game search/listing cards */
body.game-page .card-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

body.game-page .card-media > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.game-page .card-media .pull-open-btn {
    width: auto;
    max-width: 100%;
    align-self: center;
    justify-content: center;
    text-align: center;
    margin-top: 2px;
    padding-left: 18px;
    padding-right: 18px;
    box-shadow: 0 14px 30px rgba(255, 75, 90, .20);
}

@media (max-width: 720px) {
    body.game-page .card-media {
        align-items: center;
    }

    body.game-page .card-media .pull-open-btn {
        width: fit-content;
        min-width: 0;
        max-width: calc(100% - 24px);
        white-space: nowrap;
        font-size: 13px;
        padding: 11px 16px;
    }
}


/* Community card display cleanup: no halo/glow around shared cards or zoomed cards */
.pull-card-glow::before,
.pull-card-preview::before,
.pull-post-image-wrap::before,
.pull-lightbox-glow::before {
    content: none !important;
    display: none !important;
    background: none !important;
    filter: none !important;
    animation: none !important;
}

.pull-card-glow,
.pull-card-preview,
.pull-post-image-wrap,
.pull-lightbox-card {
    background: transparent !important;
    box-shadow: none !important;
}

.pull-lightbox-backdrop {
    background: transparent !important;
    backdrop-filter: none !important;
}

.pull-image-lightbox {
    background: transparent !important;
}

.pull-lightbox-card {
    width: min(420px, 86vw);
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.pull-lightbox-image {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 16px;
    animation: pullFloat 4s ease-in-out infinite;
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
}

.pull-card-rarity {
    margin-top: -2px;
    color: rgba(255,255,255,.78);
}

/* Community page compact feed layout */
.pull-feed-section {
    margin-top: 0;
}

.pull-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pull-post-card {
    grid-template-columns: 104px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    align-items: start;
}

.pull-post-image-wrap {
    max-width: 104px;
}

.pull-post-image {
    border-radius: 13px;
}

.pull-post-body {
    min-width: 0;
}

.pull-post-headline {
    margin-bottom: 8px;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.22;
}

.pull-pseudo {
    font-size: 1.34em;
}

.pull-location {
    color: #6ee7ff;
    font-weight: 900;
    text-shadow: 0 0 18px rgba(110, 231, 255, .32);
}

.pull-post-mood {
    padding: 5px 8px;
    margin-bottom: 7px;
    font-size: 12px;
}

.pull-post-card h2 {
    margin-bottom: 7px;
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.12;
}

.pull-card-rarity-badge {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff3a3, #ff6bd5 44%, #7dd3ff 72%, #b6ff8f);
    color: #111827;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .02em;
    box-shadow: 0 0 18px rgba(255, 107, 213, .34), 0 0 24px rgba(125, 211, 255, .22);
}

.pull-post-card .meta,
.pull-value {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.28;
}

.pull-actions-row {
    gap: 6px;
    margin-top: 7px;
}

.like-btn {
    min-width: 58px;
    padding: 7px 10px !important;
    font-size: 12px;
    border-radius: 999px;
}

.pull-reactions {
    gap: 6px;
    margin-top: 9px;
}

.pull-reactions > span {
    font-size: 12px;
}

.pull-reactions button,
.pull-reaction-counts span {
    padding: 6px 8px !important;
    font-size: 12px;
}

.pull-reactions .reaction-emoji {
    font-size: 1.18em;
}

.pull-reaction-counts {
    gap: 5px;
    margin-top: 7px;
}

@media (max-width: 900px) {
    .pull-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pull-post-card {
        grid-template-columns: 88px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .pull-post-image-wrap {
        max-width: 88px;
    }

    .pull-post-headline {
        font-size: 14px;
    }

    .pull-pseudo {
        font-size: 1.28em;
    }

    .pull-post-card h2 {
        font-size: 16px;
    }

    .pull-card-rarity-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .pull-reactions button span:not(.reaction-emoji) {
        display: none;
    }
}

/* Community feed: separated large card image + compact details block */
.pull-feed-grid {
    grid-template-columns: repeat(2, minmax(520px, 1fr));
    align-items: start;
}

.pull-post-card-separated {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.pull-post-card-pane {
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.pull-post-image-pane {
    border-radius: 24px;
    padding: 14px;
    align-self: start;
}

.pull-post-card-separated .pull-post-image-wrap {
    max-width: 190px;
    width: 100%;
    display: block;
}

.pull-post-card-separated .pull-post-image {
    width: 100%;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(0,0,0,.28);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.pull-post-card-separated .pull-post-body {
    border-radius: 24px;
    padding: 14px;
}

@media (max-width: 1120px) {
    .pull-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pull-post-card-separated {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pull-post-image-pane {
        display: flex;
        justify-content: center;
        padding: 14px;
    }

    .pull-post-card-separated .pull-post-image-wrap {
        max-width: 220px;
    }

    .pull-post-card-separated .pull-post-body {
        padding: 12px;
    }
}

/* Community feed v2: vertical shared pull layout */
.pull-feed-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    align-items: start;
}

.pull-post-card-separated {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.pull-post-shareline-pane,
.pull-post-image-pane,
.pull-post-card-separated .pull-post-body {
    width: min(100%, 420px);
}

.pull-post-shareline-pane {
    border-radius: 22px;
    padding: 12px 14px;
    text-align: center;
}

.pull-post-shareline-pane .pull-post-headline {
    margin: 0;
}

.pull-post-image-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.pull-post-card-separated .pull-post-image-wrap {
    width: 190px;
    max-width: 190px;
    display: block;
}

.pull-post-card-separated .pull-post-image {
    width: 100%;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(0,0,0,.28);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.pull-post-card-separated .pull-post-body {
    border-radius: 24px;
    padding: 14px;
}

@media (max-width: 1120px) {
    .pull-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pull-post-shareline-pane,
    .pull-post-image-pane,
    .pull-post-card-separated .pull-post-body {
        width: min(100%, 360px);
    }

    .pull-post-card-separated .pull-post-image-wrap {
        width: min(220px, 78vw);
        max-width: 220px;
    }

    .pull-post-shareline-pane {
        padding: 10px 12px;
    }

    .pull-post-card-separated .pull-post-body {
        padding: 12px;
    }
}

/* Community feed v3: card outside, centered above one compact details block */
.pull-post-card-separated {
    align-items: center;
}

.pull-post-card-separated .pull-post-image-pane,
.pull-post-card-separated .pull-post-body {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
}

.pull-post-card-separated .pull-post-image-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
}

.pull-post-card-separated .pull-post-image-wrap {
    width: 220px;
    max-width: 220px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: default;
    pointer-events: none;
    text-align: center;
}

.pull-post-card-separated .pull-post-image {
    width: 100%;
    display: block;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(0,0,0,.28);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.pull-post-card-separated .pull-post-body {
    text-align: center;
}

.pull-post-card-separated .pull-post-headline {
    margin: 0 0 12px;
    text-align: center;
}

.pull-card-rarity-inline {
    vertical-align: middle;
    margin: 0 3px;
    animation: pullFloat 4s ease-in-out infinite;
    will-change: transform;
}

.pull-post-card-separated .pull-actions-row,
.pull-post-card-separated .pull-reactions,
.pull-post-card-separated .pull-reaction-counts {
    justify-content: center;
}

.pull-post-image-wrap.pull-image-zoom-trigger,
.pull-post-image-wrap.pull-image-zoom-trigger:hover,
.pull-post-image-wrap.pull-image-zoom-trigger:focus-visible {
    cursor: default;
}

.pull-post-image-wrap.pull-image-zoom-trigger:hover .pull-post-image,
.pull-post-image-wrap.pull-image-zoom-trigger:focus-visible .pull-post-image {
    transform: none;
}

.pull-image-lightbox {
    display: none !important;
}

@media (max-width: 640px) {
    .pull-post-card-separated .pull-post-image-pane,
    .pull-post-card-separated .pull-post-body {
        width: min(100%, 360px);
    }

    .pull-post-card-separated .pull-post-image-wrap {
        width: min(220px, 78vw);
        max-width: 220px;
    }
}


/* Community feed v4: animated pseudo, gold value badge, anchored reactions */
.pull-post-card-separated {
    scroll-margin-top: 24px;
}

.pull-animated-name {
    display: inline-flex;
    width: fit-content;
    margin: 0 3px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff3a3, #ff6bd5 44%, #7dd3ff 72%, #b6ff8f);
    color: #111827;
    font-weight: 950;
    box-shadow: 0 0 18px rgba(255, 107, 213, .34), 0 0 24px rgba(125, 211, 255, .22);
    animation: pullFloat 4s ease-in-out infinite;
    will-change: transform;
}

.pull-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pull-value-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7b0 0%, #ffd166 28%, #f59e0b 55%, #fff1a8 78%, #b7791f 100%);
    color: #1f1300;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .02em;
    box-shadow: 0 0 18px rgba(255, 209, 102, .38), 0 0 28px rgba(245, 158, 11, .24);
    animation: pullFloat 4s ease-in-out infinite;
    will-change: transform;
}

.pull-post-card-separated .pull-post-image-pane,
.pull-post-card-separated .pull-post-body {
    width: min(100%, 420px);
}

.pull-post-card-separated .pull-post-image-wrap {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .pull-value-badge {
        font-size: 12px;
        padding: 5px 9px;
    }
}

/* Community feed v5: refined separate gradients for pseudo and rarity */
.pull-animated-name {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 32%, #64748b 68%, #e0f2fe 100%);
    color: #0f172a;
    box-shadow: 0 0 14px rgba(147, 197, 253, .24), 0 0 20px rgba(100, 116, 139, .16);
}

.pull-card-rarity-badge,
.pull-card-rarity-inline {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ad 18%, #f472b6 42%, #a78bfa 62%, #22d3ee 80%, #ffffff 100%);
    color: #1f1147;
    box-shadow: 0 0 18px rgba(244, 114, 182, .36), 0 0 28px rgba(34, 211, 238, .26), inset 0 0 10px rgba(255, 255, 255, .5);
}

/* =====================================================
   HOME - Pull sharing call-to-action
   ===================================================== */
body.home-page .home-pull-section {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:20px;
    border:1px solid rgba(255,138,0,.34);
    border-radius:22px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,209,102,.18), transparent 36%),
        radial-gradient(circle at 85% 30%, rgba(255,45,117,.18), transparent 34%),
        rgba(255,255,255,.06);
    box-shadow:0 18px 42px rgba(0,0,0,.18);
    backdrop-filter:blur(12px);
}

body.home-page .home-pull-section p {
    margin:6px 0 7px;
    color:#fff;
    font-size:16px;
    line-height:1.4;
    font-weight:800;
}

body.home-page .home-pull-section small {
    display:block;
    color:var(--muted);
    line-height:1.35;
}

body.home-page .home-pull-kicker {
    display:inline-flex;
    color:#ffe6a6;
    font-size:12px;
    font-weight:950;
    letter-spacing:.1em;
    text-transform:uppercase;
}

body.home-page .home-pull-cta-button {
    flex:0 0 auto;
    margin:0;
    background:linear-gradient(135deg, #ff8a00, #ff2d75);
    color:#fff;
    border:0;
    box-shadow:0 12px 30px rgba(255,45,117,.22);
    white-space:nowrap;
}

body.home-page .home-pull-cta-button:hover {
    transform:translateY(-2px);
    box-shadow:0 16px 38px rgba(255,45,117,.30);
}

@media(max-width:620px) {
    body.home-page .home-pull-section {
        align-items:flex-start;
        flex-direction:column;
    }

    body.home-page .home-pull-cta-button {
        width:100%;
    }
}


#game-title-anchor {
    scroll-margin-top: 24px;
}

/* Quote calculator V2 layout */
body.quote-page .quote-calculator-section {
    display:flex;
    justify-content:center;
    margin-top:24px;
}

body.quote-page .quote-calculator-card {
    width:min(100%, 760px);
}

body.quote-page .quote-info-grid {
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
    margin-top:22px;
}

body.quote-page .liquidity-table {
    min-width:680px;
}

body.quote-page .liquidity-table td:nth-child(2) {
    font-weight:900;
    color:#ffe6a6;
}

body.quote-page .liquidity-table td:nth-child(3) {
    color:var(--muted);
}

body.quote-page .quote-calculator-card .pill-list {
    justify-content:center;
}

@media(max-width:620px) {
    body.quote-page .quote-calculator-card,
    body.quote-page .quote-info-grid .card {
        padding:18px;
        border-radius:24px;
    }

    body.quote-page .formula {
        font-size:14px;
    }

    body.quote-page .liquidity-table {
        min-width:620px;
    }
}

/* Dedicated card pages + clickable search cards */
body.game-page .card-image-link {
    display: block;
    text-decoration: none;
}

body.game-page .card-image-link img {
    display: block;
    width: 100%;
    border-radius: 16px;
    transition: transform .18s ease, filter .18s ease;
}

body.game-page .card-image-link:hover img {
    transform: translateY(-2px) scale(1.015);
    filter: brightness(1.08);
}

body.game-page .card-name-link {
    color: inherit;
    text-decoration: none;
}

body.game-page .card-name-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.card-detail-hero {
    padding: 32px 0 60px;
}

.card-detail-heading {
    max-width: 980px;
    margin: 0 auto 24px;
    text-align: center;
}

.card-detail-heading h1 {
    margin: 14px 0 10px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: .95;
}

.back-link {
    display: inline-flex;
    margin-bottom: 16px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-weight: 800;
}

.back-link:hover {
    color: var(--accent);
}

.card-detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 1050px;
    margin: 0 auto;
}

.card-detail-image-wrap,
.card-detail-panel {
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,.26);
}

.card-detail-image-wrap {
    padding: 18px;
    display: flex;
    justify-content: center;
}

.card-detail-image {
    width: 100%;
    max-width: 320px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,.36);
}

.card-detail-panel {
    padding: 24px;
}

.card-detail-panel h2 {
    margin: 12px 0 14px;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.card-detail-buttons {
    margin-top: 18px;
}

@media (max-width: 820px) {
    .card-detail-layout {
        grid-template-columns: 1fr;
    }

    .card-detail-image-wrap {
        max-width: 380px;
        width: 100%;
        margin: 0 auto;
    }

    .card-detail-panel {
        padding: 18px;
    }
}
