 :root{--bg:#080b12;--surface:#0e131d;--surface-2:#151b28;--surface-3:#1c2436;--border:#232b3d;--text:#e8ebf1;--text-secondary:#98a2b8;--text-muted:#666f85;--accent:#4b8bf4;--accent-2:#7c5cff;--orange:#f8974a;--radius:14px;--radius-sm:9px;--amber:#ffb020;--container:1180px}
.codes-page{margin:0;min-height:100vh;background:#080b12;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2217.32%22%20height%3D%2230%22%20viewBox%3D%220%200%2017.32%2030%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%234b8bf4%22%20stroke-width%3D%221%22%20stroke-opacity%3D%220.14%22%3E%3Cpolygon%20points%3D%220,-10%208.66,-5%208.66,5%200,10%20-8.66,5%20-8.66,-5%22/%3E%3C/g%3E%3C/svg%3E"),radial-gradient(circle at 15% 0%,rgba(75,139,244,.10),transparent 40%),radial-gradient(circle at 85% 15%,rgba(124,92,255,.08),transparent 40%);background-repeat:repeat,no-repeat,no-repeat;background-size:17.32px 30px,auto,auto}.codes-page *{box-sizing:border-box}.codes-page a{color:inherit;text-decoration:none}.codes-page .codes-container{width:100%;max-width:1180px;margin:0 auto;padding:0 32px}.codes-page main.codes-container{padding-top:8px;padding-bottom:8px}
.codes-page .box{
  background:rgba(14,19,29,0.62);
  border:1px solid var(--border);
  border-radius:var(--radius);
}
.codes-page .crumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11.5px;color:var(--text-muted);}
.codes-page .crumb a{color:var(--text-secondary);}
.codes-page .crumb a:hover{color:var(--accent);}
.codes-page .crumb i{font-size:9px;opacity:.6;}
.codes-page .badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:11px;}
.codes-page .tb{
  display:inline-flex;align-items:center;gap:5px;
  font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  padding:4px 9px;border-radius:6px;
}
.codes-page .tb i{font-size:11px;}
.codes-page .tb-codes{background:rgba(255,176,32,0.22);border:1px solid rgba(255,176,32,0.45);color:#ffb020;}
.codes-page .tb-check{background:rgba(62,207,142,0.22);border:1px solid rgba(62,207,142,0.45);color:#3ecf8e;}
.codes-page .art-title{font-weight:700;line-height:1.18;color:#fff;margin:0 0 12px;letter-spacing:-.01em;}
.codes-page .tag-marquee{
  position:relative;overflow:hidden;margin:0 0 12px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
}
.codes-page .tag-marquee-track{display:flex;gap:7px;width:max-content;animation:codes-tag-scroll 46s linear infinite;}
.codes-page .tag-marquee:hover .tag-marquee-track{animation-play-state:paused;}
.codes-page .tpill{
  display:inline-flex;align-items:center;
  font-size:10.5px;font-weight:600;line-height:1.4;
  padding:3px 9px;border-radius:6px;white-space:nowrap;
  border:1px solid transparent;
  background:rgba(75,139,244,0.22);color:#4b8bf4;
}
.codes-page .tp-cyan{background:rgba(56,189,248,0.22);border-color:rgba(56,189,248,0.45);color:#38bdf8;}
.codes-page .tp-violet{background:rgba(124,92,255,0.24);border-color:rgba(124,92,255,0.48);color:#a78bfa;}
.codes-page .tp-green{background:rgba(62,207,142,0.22);border-color:rgba(62,207,142,0.45);color:#3ecf8e;}
.codes-page .tp-amber{background:rgba(255,176,32,0.22);border-color:rgba(255,176,32,0.45);color:#ffb020;}
.codes-page .tp-red{background:rgba(239,110,80,0.22);border-color:rgba(239,110,80,0.45);color:#ef6e50;}
.codes-page .tp-lime{background:rgba(158,222,74,0.22);border-color:rgba(158,222,74,0.45);color:#9ede4a;}
.codes-page .tp-pink{background:rgba(244,114,182,0.22);border-color:rgba(244,114,182,0.45);color:#f472b6;}
.codes-page .tp-rose{background:rgba(251,113,133,0.22);border-color:rgba(251,113,133,0.45);color:#fb7185;}
.codes-page .tp-blue{background:rgba(75,139,244,0.24);border-color:rgba(75,139,244,0.48);color:#6ea3f7;}
.codes-page .tp-sky{background:rgba(86,204,242,0.22);border-color:rgba(86,204,242,0.45);color:#56ccf2;}

/* Taxonomy v31: remaining Auto colours. Auto now uses the full 24-colour palette. */
.codes-page .tp-crimson{background:rgba(225,29,72,.22);border-color:rgba(225,29,72,.45);color:#e11d48}
.codes-page .tp-magenta{background:rgba(217,70,239,.22);border-color:rgba(217,70,239,.45);color:#d946ef}
.codes-page .tp-fuchsia{background:rgba(232,121,249,.22);border-color:rgba(232,121,249,.45);color:#e879f9}
.codes-page .tp-purple{background:rgba(168,85,247,.22);border-color:rgba(168,85,247,.45);color:#a855f7}
.codes-page .tp-indigo{background:rgba(99,102,241,.22);border-color:rgba(99,102,241,.45);color:#6366f1}
.codes-page .tp-teal{background:rgba(20,184,166,.22);border-color:rgba(20,184,166,.45);color:#14b8a6}
.codes-page .tp-emerald{background:rgba(16,185,129,.22);border-color:rgba(16,185,129,.45);color:#10b981}
.codes-page .tp-mint{background:rgba(110,231,183,.22);border-color:rgba(110,231,183,.45);color:#6ee7b7}
.codes-page .tp-yellow{background:rgba(250,204,21,.22);border-color:rgba(250,204,21,.45);color:#facc15}
.codes-page .tp-orange{background:rgba(251,146,60,.22);border-color:rgba(251,146,60,.45);color:#fb923c}
.codes-page .tp-coral{background:rgba(255,122,89,.22);border-color:rgba(255,122,89,.45);color:#ff7a59}
.codes-page .tp-brown{background:rgba(180,83,9,.22);border-color:rgba(180,83,9,.45);color:#b45309}
.codes-page .tp-slate{background:rgba(148,163,184,.22);border-color:rgba(148,163,184,.45);color:#94a3b8}
.codes-page .tp-steel{background:rgba(100,116,139,.22);border-color:rgba(100,116,139,.45);color:#64748b}
.codes-page .art-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11.5px;color:var(--text-muted);margin-bottom:12px;}
.codes-page .art-meta i{font-size:12px;opacity:.85;}
.codes-page .art-meta .sep{width:3px;height:3px;border-radius:50%;background:var(--border);}
.codes-page .plat-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:16px;}
.codes-page .ppill{
  font-size:10.5px;font-weight:600;padding:3px 9px;border-radius:6px;
  background:rgba(158,222,74,0.13);color:#bef264;
}
.codes-page .post-hero{position:relative;width:100%;border-radius:var(--radius);overflow:hidden;background:#141a28;}
.codes-page .post-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.codes-page .post-hero .hlabel{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:30px 16px 12px;
  background:linear-gradient(0deg,rgba(6,8,13,0.92),transparent);
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,0.8);
}
.codes-page .sec{margin-top:26px;scroll-margin-top:110px;}
.codes-page .sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:12px;}
.codes-page .sec-head h2{margin:0;font-weight:600;letter-spacing:-.01em;display:flex;align-items:center;gap:9px;}
.codes-page .sec-head .n{font-size:11px;color:var(--text-muted);font-weight:500;}
.codes-page .sec-ic{
  width:24px;height:24px;border-radius:7px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-size:11.5px;
}
.codes-page .ic-amber{background:rgba(255,176,32,0.14);color:var(--amber);}
.codes-page .ic-blue{background:rgba(75,139,244,0.14);color:var(--accent);}
.codes-page .ic-red{background:rgba(239,110,80,0.14);color:#ef6e50;}
.codes-page .ic-violet{background:rgba(124,92,255,0.16);color:#b9a6ff;}
.codes-page .ic-green{background:rgba(62,207,142,0.13);color:#3ecf8e;}
.codes-page .lead{margin:16px 0 0;line-height:1.72;color:var(--text-secondary);}
.codes-page .p{margin:0 0 11px;line-height:1.72;color:var(--text-secondary);}
.codes-page .p:last-child{margin-bottom:0;}
.codes-page .sec-intro{margin:-2px 0 13px;max-width:78ch;}
.codes-page .p b{color:var(--text);font-weight:600;}
.codes-page .ticket{display:flex;gap:20px;align-items:stretch;}
.codes-page .tk-count{flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;}
.codes-page .tk-num{font-size:38px;font-weight:800;line-height:1;color:var(--amber);}
.codes-page .tk-l{font-size:11.5px;color:var(--text-secondary);margin-top:5px;}
.codes-page .tk-v{font-size:10.5px;color:#3ecf8e;margin-top:4px;display:flex;align-items:center;gap:5px;}
.codes-page .tk-rate{display:flex;align-items:center;gap:7px;margin-top:7px;}
.codes-page .tk-rate .stars{display:inline-flex;gap:2px;color:var(--amber);font-size:11px;}
.codes-page .tk-rate .n{font-size:11px;font-weight:600;color:var(--text-secondary);}
.codes-page .tk-new{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;justify-content:center;}
.codes-page .tk-redeem{
  flex:0 0 auto;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  padding-left:18px;border-left:2px dashed var(--border);
  text-decoration:none;
}
.codes-page .tk-redeem .btn{
  display:inline-flex;align-items:center;gap:7px;
  font-size:12px;font-weight:700;letter-spacing:.03em;
  padding:9px 16px;border-radius:20px;
  background:rgba(255,176,32,0.22);border:1px solid rgba(255,176,32,0.5);color:#ffb020;
  transition:background .15s ease;
}
.codes-page .tk-redeem:hover .btn{background:rgba(255,176,32,0.34);}
.codes-page .tk-redeem .barcode{
  width:64px;height:26px;opacity:.5;
  background:repeating-linear-gradient(90deg,var(--text-secondary) 0 2px,transparent 2px 4px,
             var(--text-secondary) 4px 5px,transparent 5px 8px);
}
.codes-page .tk-redeem .hint{font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);}
.codes-page .tk-new .lbl{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);margin-bottom:8px;}
.codes-page .tk-row{display:flex;align-items:center;gap:9px;margin-bottom:8px;flex-wrap:nowrap;min-width:0;}
.codes-page .tk-row:last-child{margin-bottom:0;}
.codes-page .tk-row .when{font-size:10.5px;color:var(--text-muted);white-space:nowrap;}
.codes-page .tk-row .ver{
  font-size:10px;font-weight:600;padding:2px 8px;border-radius:6px;white-space:nowrap;
  background:rgba(255,176,32,0.22);border:1px solid rgba(255,176,32,0.45);color:#ffb020;
  min-width:0;overflow:hidden;text-overflow:ellipsis;   
}
.codes-page .code-pill span{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:left;
}
.codes-page .code-pill i{flex:0 0 auto;}
.codes-page .toc-list{display:grid;gap:8px 20px;align-items:start;}
.codes-page .toc-group{min-width:0;display:flex;flex-direction:column;gap:8px;}
.codes-page .toc-item{display:flex;align-items:flex-start;gap:9px;min-width:0;font-size:12.5px;color:var(--text-secondary);}
.codes-page .toc-item:hover{color:var(--accent);}
.codes-page .toc-n{flex:0 0 22px;min-width:22px;white-space:nowrap;padding-top:2px;font-family:ui-monospace,Menlo,monospace;font-size:10.5px;color:var(--accent);}
.codes-page .toc-label{min-width:0;overflow-wrap:break-word;}
.codes-page .box-flush{padding:0 !important;overflow:hidden;}
.codes-page .box-flush .tbl-scroll{margin:0;padding:0;}
.codes-page table.codes th:first-child,
.codes-page table.codes td:first-child{padding-left:16px;}
.codes-page table.codes th:last-child,
.codes-page table.codes td:last-child{padding-right:16px;}
.codes-page table.codes th{padding-top:12px;padding-bottom:11px;}
.codes-page .tbl-scroll{
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--surface-3) transparent;
}
.codes-page .tbl-scroll::-webkit-scrollbar{width:9px;height:9px;}
.codes-page .tbl-scroll::-webkit-scrollbar-track{background:rgba(8,11,18,0.35);border-radius:5px;}
.codes-page .tbl-scroll::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:5px;border:2px solid transparent;background-clip:padding-box;}
.codes-page .tbl-scroll::-webkit-scrollbar-thumb:hover{background:#38445e;background-clip:padding-box;}
.codes-page table.codes thead th{
  position:sticky;top:0;z-index:2;
  background:#141a26;
  border-bottom:1px solid var(--border);
}
.codes-page table.codes{width:100%;border-collapse:collapse;min-width:770px;table-layout:fixed;}
.codes-page table.codes th{
  text-align:left;font-size:10px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--text-muted);font-weight:700;padding:0 12px 10px;white-space:nowrap;
}
.codes-page table.codes td{
  padding:11px 12px;border-top:1px solid var(--border);
  font-size:12.5px;color:var(--text-secondary);line-height:1.55;
  
  height:64px;
  vertical-align:middle;
}
.codes-page table.codes tr:hover td{background:rgba(75,139,244,0.04);}
.codes-page .cell-date{white-space:nowrap;}
.codes-page .clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.codes-page .chipb{
  display:inline-block;font-size:10px;font-weight:600;padding:3px 8px;border-radius:6px;
  background:rgba(102,111,133,0.28);border:1px solid rgba(102,111,133,0.4);
  color:#b6c0d4;white-space:nowrap;
}
.codes-page .chipb.ok{background:rgba(62,207,142,0.22);border-color:rgba(62,207,142,0.45);color:#3ecf8e;}
.codes-page .chipb.no{background:rgba(239,110,80,0.22);border-color:rgba(239,110,80,0.45);color:#ef6e50;}
.codes-page .cell-info{font-size:11.5px;color:var(--text-muted);text-align:center;}
.codes-page .th-info{text-align:center;}
.codes-page .info-dot{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;cursor:help;
  border:1px solid transparent;
  background:rgba(102,111,133,0.18);color:var(--text-secondary);font-size:9px;
  outline:0;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.codes-page .info-dot:hover,
.codes-page .info-dot:focus-visible,
.codes-page .info-dot.is-open{
  background:rgba(75,139,244,0.2);
  border-color:rgba(75,139,244,.42);
  color:var(--accent);
  transform:translateY(-1px);
}

/* Floating code-note popover. It lives on <body>, outside the table scroller,
   so long notes are never clipped by the horizontal codes table. */
.code-info-popover{
  position:fixed;z-index:1200;left:0;top:0;
  width:max-content;max-width:min(330px,calc(100vw - 20px));
  padding:9px 11px;border:1px solid rgba(75,139,244,.38);border-radius:8px;
  background:#111a2a;color:#c8d3e6;
  box-shadow:0 12px 30px rgba(0,0,0,.42);
  font:500 11.5px/1.55 Inter,system-ui,sans-serif;text-align:left;
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(4px) scale(.985);transform-origin:center top;
  transition:opacity .14s ease,transform .14s ease,visibility 0s linear .14s;
}
.code-info-popover.is-open{
  opacity:1;visibility:visible;pointer-events:auto;
  transform:translateY(0) scale(1);
  transition:opacity .14s ease,transform .14s ease;
}
.codes-page details.expired{border:0;}
.codes-page details.expired > summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;gap:12px;
}
.codes-page details.expired > summary::-webkit-details-marker{display:none;}
.codes-page .ex-ic{
  width:32px;height:32px;border-radius:9px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-size:14px;
  background:rgba(102,111,133,0.16);color:var(--text-secondary);
}
.codes-page .ex-l{flex:1 1 auto;min-width:0;}
.codes-page .ex-l b{display:block;font-size:13px;font-weight:600;color:var(--text);}
.codes-page .ex-l span{font-size:11px;color:var(--text-muted);}
.codes-page .ex-n{font-size:17px;font-weight:700;color:var(--text-secondary);}
.codes-page details.expired > summary .chev{transition:transform .2s ease;color:var(--text-muted);font-size:13px;}
.codes-page details.expired[open] > summary .chev{transform:rotate(180deg);color:var(--accent);}
.codes-page details.expired[open] > summary{margin-bottom:14px;}
.codes-page .tbl-expired table.codes td{color:var(--text-muted);}
.codes-page .routes{display:flex;gap:6px;overflow-x:auto;padding-bottom:12px;margin-bottom:2px;}
.codes-page .routes::-webkit-scrollbar{display:none;}
.codes-page .route-tab{
  flex:0 0 auto;font-family:inherit;font-size:11.5px;font-weight:500;
  background:transparent;border:1px solid var(--border);color:var(--text-secondary);
  padding:6px 12px;border-radius:20px;cursor:pointer;white-space:nowrap;
}
.codes-page .route-tab.on{background:rgba(75,139,244,0.15);border-color:rgba(75,139,244,0.45);color:var(--accent);}
.codes-page .route-panel{display:none;}
.codes-page .route-panel.on{display:block;}
.codes-page .steps{position:relative;padding-left:20px;}
.codes-page .steps::before{content:"";position:absolute;left:4px;top:8px;bottom:8px;width:2px;border-radius:2px;background:linear-gradient(180deg,var(--accent),rgba(75,139,244,0.12));}
.codes-page .step{position:relative;padding-bottom:13px;font-size:12.5px;color:var(--text-secondary);line-height:1.6;}
.codes-page .step:last-child{padding-bottom:0;}
.codes-page .step::before{content:"";position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid var(--accent);}
.codes-page .step:last-child::before{background:var(--accent);}
.codes-page .vframe{
  position:relative;width:100%;aspect-ratio:16/9;border-radius:var(--radius-sm);
  overflow:hidden;background:linear-gradient(135deg,#1b2334,#10141f);
  display:flex;align-items:center;justify-content:center;
}
.codes-page .vframe .play{
  width:54px;height:54px;border-radius:50%;background:rgba(75,139,244,0.92);
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;
}
.codes-page .vmeta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 16px;font-size:11.5px;color:var(--text-secondary);}
.codes-page .vmeta a{color:var(--accent);}
.codes-page .shots-lbl{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);margin-bottom:9px;}
.codes-page .shots{display:flex;gap:10px;overflow-x:auto;}
.codes-page .shots::-webkit-scrollbar{display:none;}
.codes-page .shot{flex:0 0 auto;border-radius:10px;overflow:hidden;border:1px solid var(--border);cursor:zoom-in;background:#141a28;}
.codes-page .shot img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease;}
.codes-page .shot:hover img{transform:scale(1.06);}
/* FAQ — same typography and accordion motion as News / Guide */
.codes-page .faq-item{border-bottom:1px solid var(--border);}
.codes-page .faq-item:last-child{border-bottom:0;}
.codes-page .faq-q{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  width:100%;margin:0;padding:13px 0;
  border:0;background:transparent;color:var(--text);
  font-family:inherit;font-size:13.5px;font-weight:600;line-height:1.45;text-align:left;
  cursor:pointer;
}
.codes-page .faq-item:first-child .faq-q{padding-top:0;}
.codes-page .faq-q i{
  flex:0 0 auto;margin-top:2px;color:var(--text-muted);
  transition:transform .2s ease,color .2s ease;
}
.codes-page .faq-a{
  max-height:0;overflow:hidden;
  color:var(--text-secondary);
  font-size:12.5px;line-height:1.7;
  transition:max-height .22s ease;
}
.codes-page .faq-a p{margin:0;padding:0 28px 14px 0;}
.codes-page .faq-item.is-open .faq-q i{transform:rotate(180deg);color:var(--accent);}
.codes-page .faq-item.is-open .faq-a{max-height:420px;}
.codes-page .src-row{display:flex;align-items:flex-start;gap:10px;padding:8px 0;font-size:12.5px;}
.codes-page .src-row:first-child{padding-top:0;}
.codes-page .src-row:last-child{padding-bottom:0;}
.codes-page .src-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:0 0 auto;margin-top:6px;}
.codes-page .src-row a{color:var(--text-secondary);line-height:1.5;}
.codes-page .src-row a:hover{color:var(--accent);text-decoration:underline;}
.codes-page .rc-top{display:flex;gap:22px;flex-wrap:wrap;align-items:center;margin-bottom:14px;}
.codes-page .rc-score{text-align:center;flex:0 0 96px;}
.codes-page .rc-avg{font-size:32px;font-weight:800;line-height:1;}
.codes-page .rc-stars{color:var(--amber);font-size:13px;letter-spacing:2px;margin-top:6px;}
.codes-page .rc-count{font-size:10.5px;color:var(--text-muted);margin-top:5px;}
.codes-page .rc-bars{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:6px;}
.codes-page .rc-bar-row{display:flex;align-items:center;gap:9px;font-size:10.5px;color:var(--text-muted);}
.codes-page .rc-bar{flex:1 1 auto;height:6px;border-radius:4px;background:var(--surface-3);overflow:hidden;}
.codes-page .rc-fill{height:100%;background:linear-gradient(90deg,var(--amber),var(--orange));}
.codes-page .rc-rate{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:14px;}
.codes-page .rc-rate .l{font-size:12.5px;font-weight:600;}
.codes-page .rc-stars-in{display:flex;gap:5px;font-size:18px;color:var(--text-muted);cursor:pointer;}
.codes-page .rc-stars-in i.on{color:var(--amber);}
.codes-page .rc-hint{font-size:10.5px;color:var(--text-muted);}
.codes-page .gbtn{
  display:inline-flex;align-items:center;gap:8px;background:#fff;color:#1f1f1f;
  font-size:12px;font-weight:600;border:0;border-radius:8px;padding:9px 14px;cursor:pointer;font-family:inherit;
}
.codes-page .rc-ta{
  width:100%;min-height:76px;resize:vertical;margin-top:12px;
  background:var(--surface-3);border:1px solid var(--border);border-radius:10px;
  padding:10px 12px;color:var(--text);font-family:inherit;font-size:12.5px;
}
.codes-page .rc-ta::placeholder{color:var(--text-muted);}
.codes-page .rc-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;}
.codes-page .rc-char{font-size:10.5px;color:var(--text-muted);}
.codes-page .rc-send{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 16px;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;}
.codes-page .rc-empty{font-size:12px;color:var(--text-muted);text-align:center;padding:14px 0 2px;}
.codes-page .rel-scroll{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--surface-3) transparent;}
.codes-page .rel-scroll::-webkit-scrollbar{width:9px;}
.codes-page .rel-scroll::-webkit-scrollbar-track{background:rgba(8,11,18,0.35);border-radius:5px;}
.codes-page .rel-scroll::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:5px;border:2px solid transparent;background-clip:padding-box;}
.codes-page .rel-scroll::-webkit-scrollbar-thumb:hover{background:#38445e;background-clip:padding-box;}
.codes-page .rel-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);}
.codes-page .rel-row:first-child{padding-top:0;}
.codes-page .rel-row:last-child{border-bottom:none;padding-bottom:0;}
.codes-page .rel-thumb{width:52px;height:52px;border-radius:9px;flex:0 0 52px;overflow:hidden;background:linear-gradient(135deg,#232b40,#171c2a);}
.codes-page .rel-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.codes-page .rel-t{flex:1 1 auto;min-width:0;font-size:12.5px;font-weight:500;line-height:1.4;}
.codes-page .rel-row:hover .rel-t{color:var(--accent);}
.codes-page .rel-row > i{color:var(--text-muted);font-size:13px;}
.codes-page .sb-scroll{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--surface-3) transparent;}
.codes-page .sb-scroll::-webkit-scrollbar{width:8px;}
.codes-page .sb-scroll::-webkit-scrollbar-track{background:rgba(8,11,18,0.35);border-radius:4px;}
.codes-page .sb-scroll::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:4px;border:2px solid transparent;background-clip:padding-box;}
.codes-page .sb-scroll::-webkit-scrollbar-thumb:hover{background:#38445e;background-clip:padding-box;}
.codes-page .sb-scroll{max-height:216px;}
.codes-page .sb-scroll.is-tags{max-height:112px;}
.codes-page .sb-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  color:var(--text-muted);margin-bottom:10px;
}
.codes-page .sb-head a{color:var(--accent);font-size:10.5px;letter-spacing:0;text-transform:none;font-weight:500;}
.codes-page .sb-author{display:flex;align-items:center;gap:12px;}
.codes-page .sb-av{
  width:42px;height:42px;border-radius:50%;flex:0 0 42px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:15px;
}
.codes-page .sb-n{font-size:13px;font-weight:600;}
.codes-page .sb-r{font-size:10.5px;color:var(--text-muted);margin-top:2px;}
.codes-page .sb-game{display:flex;align-items:center;gap:12px;}
.codes-page .sb-game-th{
  width:52px;height:52px;flex:0 0 52px;border-radius:10px;
  background:linear-gradient(135deg,#2a3350,#171c2a);
  background-size:cover;background-position:center;
}
.codes-page .sb-game-b{min-width:0;display:flex;flex-direction:column;gap:3px;}
.codes-page .sb-game-n{font-size:13px;font-weight:600;color:var(--text);}
.codes-page .sb-game:hover .sb-game-n{color:var(--accent);}
.codes-page .sb-game-g{font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.codes-page .sb-link{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid var(--border);font-size:12px;color:var(--text-secondary);}
.codes-page .sb-link:last-child{border-bottom:none;padding-bottom:0;}
.codes-page .sb-link:first-child{padding-top:0;}
.codes-page .sb-link:hover{color:var(--accent);}
.codes-page .sb-link i{font-size:12px;color:var(--text-muted);}
.codes-page .sb-rel{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);}
.codes-page .sb-rel:first-child{padding-top:0;}
.codes-page .sb-rel:last-child{border-bottom:none;padding-bottom:0;}
.codes-page .sb-rel-th{width:44px;height:44px;border-radius:8px;flex:0 0 44px;overflow:hidden;background:linear-gradient(135deg,#232b40,#171c2a);}
.codes-page .sb-rel-th img{width:100%;height:100%;object-fit:cover;display:block;}
.codes-page .sb-rel-t{font-size:11.5px;font-weight:500;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.codes-page .sb-rel:hover .sb-rel-t{color:var(--accent);}
.codes-page .sb-tags{display:flex;flex-wrap:wrap;gap:6px;}
.codes-page .ad{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:26px;}
.codes-page .ad .lbl{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);}
.codes-page .ad .frame{
  display:flex;align-items:center;justify-content:center;max-width:100%;
  border:1px dashed var(--border);border-radius:var(--radius-sm);
  color:var(--text-muted);font-size:11px;
  background:repeating-linear-gradient(45deg,rgba(35,43,61,.45) 0 8px,rgba(21,27,40,.45) 8px 16px);
}
.codes-page .lb{position:fixed;inset:0;z-index:200;background:rgba(4,6,11,0.92);display:none;align-items:center;justify-content:center;padding:30px;}
.codes-page .lb.on{display:flex;}
.codes-page .lb img{max-width:min(1000px,92vw);max-height:82vh;border-radius:12px;border:1px solid var(--border);}
.codes-page .lb .x{position:absolute;top:22px;right:24px;width:38px;height:38px;border-radius:50%;background:var(--surface-2);border:1px solid var(--border);color:var(--text);font-size:16px;cursor:pointer;}
@media(min-width:861px){.codes-page .box{padding:20px 22px;}
.codes-page .post-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:22px;
  align-items:start;
  padding-top:6px;
}
.codes-page .main-col{min-width:0;}
.codes-page .sidebar{position:sticky;top:92px;display:flex;flex-direction:column;gap:20px;}
.codes-page .crumb{margin:14px 0 12px;}
.codes-page .art-title{font-size:30px;}
.codes-page .post-hero{aspect-ratio:16/7;}
.codes-page .sec-head h2{font-size:17px;}
.codes-page .lead{font-size:14px;}
.codes-page .p{font-size:13.5px;}
.codes-page .tk-redeem{flex:0 0 148px;}
.codes-page .code-pill.tk-pill,
.codes-page table.codes .code-pill{
  width:180px;
  flex:0 0 180px;
  min-width:0;
  padding:6px 10px;
  gap:8px;
  justify-content:space-between;
}
.codes-page .code-pill.tk-pill span,
.codes-page table.codes .code-pill span{font-size:12px;}
.codes-page .toc-list{grid-template-columns:1fr 1fr;}
.codes-page .tbl-scroll{max-height:236px;overflow-x:hidden;}
.codes-page table.codes{min-width:0;width:100%;}
.codes-page table.codes col:nth-child(2){width:auto;}
.codes-page .shot{width:210px;height:118px;}
.codes-page .rel-scroll{max-height:296px;}
.codes-page .ad--m{display:none;}}
@media(max-width:860px){.codes-page .box{padding:12px;}
.codes-page .crumb{margin:2px 2px 10px;font-size:10.5px;white-space:nowrap;overflow-x:auto;flex-wrap:nowrap;}
.codes-page .crumb::-webkit-scrollbar{display:none;}
.codes-page .art-title{font-size:20px;line-height:1.25;}
.codes-page .post-hero{aspect-ratio:16/10;}
.codes-page .sec-head h2{font-size:13.5px;}
.codes-page .lead{font-size:12.5px;}
.codes-page .p{font-size:12.5px;}
.codes-page .sec-intro{margin:-2px 2px 11px;}
.codes-page .ticket{flex-wrap:wrap;gap:14px;}
.codes-page .tk-redeem{flex:1 1 auto;padding-left:14px;}
.codes-page .tk-new{flex:1 1 100%;order:3;}
.codes-page .tk-redeem .btn{font-size:11px;padding:8px 13px;}
.codes-page .tk-row .when{font-size:10px;}
.codes-page .tk-row .ver{font-size:9.5px;padding:2px 7px;}
.codes-page .code-pill.tk-pill,
.codes-page table.codes .code-pill{
  width:152px;
  flex:0 0 152px;
  min-width:0;
  padding:5px 9px;
  gap:7px;
  justify-content:space-between;
}
.codes-page .code-pill.tk-pill span,
.codes-page table.codes .code-pill span{font-size:11px;}
.codes-page .toc-list{grid-template-columns:1fr;}
.codes-page .tbl-scroll{max-height:212px;}
.codes-page table.codes td{height:58px;font-size:11.5px;}
.codes-page .shot{width:168px;height:95px;}
.codes-page .faq-q{font-size:12.5px;}
.codes-page .rel-scroll{max-height:280px;}
.codes-page .ad--d{display:none;}
.codes-page a{color:inherit;text-decoration:none;}
.codes-page a:hover{text-decoration:none;}
.codes-page .src-row a:hover{text-decoration:underline;}
.codes-page .crumb a:hover{text-decoration:underline;}
.codes-page .post-wrap{padding:12px 12px 0;}
.codes-page .sec{margin-top:20px;}
.codes-page .sidebar{display:flex;flex-direction:column;gap:20px;margin-top:22px;}}
@keyframes codes-tag-scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
.codes-page .profile-video-frame{position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#080b12;border:1px solid var(--border)}.codes-page .profile-video-frame iframe,.codes-page .profile-video-frame video{width:100%;height:100%;border:0;display:block}.codes-page .profile-video-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;font-size:11px;color:var(--text-muted)}.codes-page .profile-video-source{color:var(--accent)}.codes-page .profile-media-subhead{margin:16px 0 8px;font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted)}.codes-page .profile-shot-scroller{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}.codes-page .profile-shot-scroller::-webkit-scrollbar{display:none}.codes-page .profile-shot-card,.codes-page .profile-shot-feature{display:block;flex:0 0 220px;width:220px;height:124px;border-radius:10px;overflow:hidden;border:1px solid var(--border)}.codes-page .profile-shot-card img,.codes-page .profile-shot-feature img{width:100%;height:100%;object-fit:cover;display:block}.codes-page .profile-lightbox{position:fixed;inset:0;z-index:2500;background:rgba(4,6,11,.92);display:none;align-items:center;justify-content:center;padding:30px}.codes-page .profile-lightbox.is-open{display:flex}.codes-page .profile-lightbox-inner{display:flex;align-items:center;gap:12px;max-width:100%}.codes-page .profile-lightbox-figure{position:relative}.codes-page .profile-lightbox-img{max-width:min(1000px,82vw);max-height:82vh;border-radius:12px;border:1px solid var(--border)}.codes-page .profile-lightbox-close,.codes-page .profile-lightbox-nav{border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer}.codes-page .profile-lightbox-close{position:absolute;right:8px;top:8px;width:36px;height:36px;border-radius:50%}.codes-page .profile-lightbox-nav{width:38px;height:38px;border-radius:50%}
.codes-page .p-list{margin:0;padding-left:20px;color:var(--text-secondary);font-size:13.5px;line-height:1.72}.codes-page .p-quote{margin:0;padding:10px 12px;border-left:3px solid var(--accent);color:var(--text-secondary)}.codes-page .info-table{width:100%;border-collapse:collapse}.codes-page .info-table td,.codes-page .info-table th{padding:9px 10px;border-bottom:1px solid var(--border);font-size:12px;text-align:left}
.codes-page .rc-signin-row,.codes-page .rc-user-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}.codes-page .rc-signin-note,.codes-page .rc-user-name{font-size:10.5px;color:var(--text-muted)}.codes-page .rc-signout-btn,.codes-page .rc-loadmore-btn{border:1px solid var(--border);border-radius:7px;background:var(--surface-2);color:var(--text-secondary);padding:6px 10px;font:inherit;font-size:10.5px}.codes-page .rc-comment-list{margin-top:10px}.codes-page .rc-comment-item{display:flex;gap:10px;padding:10px 0;border-top:1px solid var(--border)}.codes-page .rc-comment-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;flex:0 0 34px}.codes-page .rc-comment-avatar img{width:100%;height:100%;object-fit:cover}.codes-page .rc-comment-body{min-width:0;flex:1}.codes-page .rc-comment-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.codes-page .rc-comment-name{font-size:11.5px;font-weight:600}.codes-page .rc-comment-time{font-size:9.5px;color:var(--text-muted)}.codes-page .rc-comment-text{margin-top:5px;font-size:11.5px;line-height:1.55;color:var(--text-secondary)}.codes-page .rc-comment-stars{color:var(--amber);font-size:9px}.codes-page .rc-error{margin-top:8px;color:#ef6e50;font-size:11px}
.codes-page .sb-av img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.codes-page .tag-loop{display:contents}.codes-page .route-tab.active{color:var(--accent);border-color:var(--accent)}.codes-page .route-panel{display:none}.codes-page .route-panel.active{display:block}.codes-page .route-guide .routes{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;margin-bottom:12px;scrollbar-width:none}.codes-page .route-tab{white-space:nowrap;border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);border-radius:8px;padding:7px 10px;font:inherit;font-size:11px}.codes-page .steps{display:flex;flex-direction:column}.codes-page .step{position:relative;padding:8px 0 8px 25px;color:var(--text-secondary);font-size:12px;line-height:1.55}.codes-page .step::before{content:"";position:absolute;left:5px;top:14px;width:7px;height:7px;border-radius:50%;background:var(--accent)}.codes-page .step:not(:last-child)::after{content:"";position:absolute;left:8px;top:21px;bottom:-3px;width:1px;background:var(--border)}
.codes-page .site-footer{margin-top:56px;border-top:1px solid var(--border)}.codes-page .footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1fr;gap:32px;padding-top:40px;padding-bottom:28px}.codes-page .footer-brand{display:flex;align-items:center;gap:9px}.codes-page .footer-brand .mark{width:25px;height:25px;border-radius:7px}.codes-page .footer-brand .name{font-size:14.5px;font-weight:700}.codes-page .footer-desc{margin-top:10px;color:var(--text-muted);font-size:12.5px;line-height:1.6}.codes-page .footer-col{display:flex;flex-direction:column;gap:8px}.codes-page .footer-col h4{margin:0 0 3px;font-size:12px}.codes-page .footer-col a{font-size:12.5px;color:var(--text-secondary)}.codes-page .footer-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:18px;padding-bottom:16px;border-top:1px solid var(--border);color:var(--text-muted);font-size:10.5px}.codes-page .footer-disclaimer{max-width:620px;text-align:right}
@media(max-width:860px){.codes-page .codes-container{max-width:100%;padding-left:12px;padding-right:12px}.codes-page main.codes-container{padding-top:8px}.codes-page .post-grid{display:block}.codes-page .profile-shot-card,.codes-page .profile-shot-feature{flex-basis:190px;width:190px;height:107px}.codes-page .footer-grid{grid-template-columns:1fr 1fr;gap:20px 16px;padding-top:24px}.codes-page .footer-grid>div:first-child{grid-column:1/-1}.codes-page .footer-bottom{flex-direction:column}.codes-page .footer-disclaimer{text-align:left}.codes-page .site-footer{margin-bottom:70px}}@media(max-width:420px){.codes-page .codes-container{padding-left:10px;padding-right:10px}}

/* ==========================================================================
   CODES MOCKUP v3 · screenshot-visible corrections
   ========================================================================== */

@keyframes code-pill-march{
  to{background-position:8px 0,-8px 100%,0 -8px,100% 8px;}
}

/* Exact mockup code pill. */
.codes-page .code-pill{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  box-sizing:border-box!important;
  margin:0!important;
  background-color:rgba(75,139,244,.10)!important;
  background-image:
    linear-gradient(90deg,var(--accent) 50%,transparent 50%),
    linear-gradient(90deg,var(--accent) 50%,transparent 50%),
    linear-gradient(0deg,var(--accent) 50%,transparent 50%),
    linear-gradient(0deg,var(--accent) 50%,transparent 50%)!important;
  background-repeat:repeat-x,repeat-x,repeat-y,repeat-y!important;
  background-size:8px 1px,8px 1px,1px 8px,1px 8px!important;
  background-position:0 0,0 100%,0 0,100% 0!important;
  animation:code-pill-march .7s infinite linear!important;
  border:0!important;
  border-radius:7px!important;
  color:var(--amber)!important;
  cursor:pointer!important;
  font-family:inherit!important;
  transition:background-color .15s ease!important;
  box-shadow:none!important;
}
.codes-page .code-pill:hover{background-color:rgba(75,139,244,.16)!important;}
.codes-page .code-pill span{
  color:var(--amber)!important;
  font-family:ui-monospace,Menlo,Consolas,monospace!important;
  font-weight:600!important;
}
.codes-page .code-pill i{color:var(--amber)!important;font-size:12px!important;}
@media(prefers-reduced-motion:reduce){
  .codes-page .code-pill{animation:none!important;}
}

/* Mockup thumbnail blocks; broken URLs never draw a broken-image icon. */
.codes-page .sb-game-th{
  display:block!important;
  width:52px!important;
  height:52px!important;
  flex:0 0 52px!important;
  border-radius:10px!important;
  background-color:#171c2a!important;
  background-image:linear-gradient(135deg,#2a3350,#171c2a);
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}
.codes-page .sb-rel-th{
  display:block!important;
  width:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  border-radius:8px!important;
  overflow:hidden!important;
  background-color:#171c2a!important;
  background-image:linear-gradient(135deg,#232b40,#171c2a);
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}

/* Actual Codes mockup lightbox: one image + close only. */
.codes-page .lb{
  position:fixed!important;
  inset:0!important;
  z-index:2500!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:30px!important;
  background:rgba(4,6,11,.92)!important;
}
.codes-page .lb.on{display:flex!important;}
.codes-page .lb img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:min(1000px,92vw)!important;
  max-height:82vh!important;
  border:1px solid var(--border)!important;
  border-radius:12px!important;
  object-fit:contain!important;
}
.codes-page .lb .x{
  position:absolute!important;
  top:22px!important;
  right:24px!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:38px!important;
  height:38px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--border)!important;
  border-radius:50%!important;
  background:var(--surface-2)!important;
  color:var(--text)!important;
  font-size:16px!important;
  cursor:pointer!important;
}

/* Mobile: one full-width real column, including sidebar. */
@media(max-width:860px){
  .codes-page{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  .codes-page .codes-container,
  .codes-page main.codes-container,
  .codes-page .post-grid,
  .codes-page .main-col,
  .codes-page .sidebar,
  .codes-page .sidebar > div,
  .codes-page .sidebar .box,
  .codes-page .sidebar .sb-scroll{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .codes-page .sidebar{
    position:static!important;
    top:auto!important;
    margin:22px 0 0!important;
    padding:0!important;
  }
  .codes-page .sidebar .box{
    margin-left:0!important;
    margin-right:0!important;
  }
  .codes-page .sb-game{
    width:100%!important;
    min-width:0!important;
  }
  .codes-page .sb-game-b{
    min-width:0!important;
    flex:1 1 auto!important;
  }
  .codes-page .sidebar .sb-scroll.is-tags{
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin!important;
  }
  .codes-page .lb{padding:16px!important;}
  .codes-page .lb img{
    max-width:calc(100vw - 32px)!important;
    max-height:78vh!important;
    border-radius:10px!important;
  }
  .codes-page .lb .x{
    top:14px!important;
    right:14px!important;
    width:36px!important;
    height:36px!important;
  }
}

/* ==========================================================================
   CODES v4 · FAQ / SOURCES INTRO OUTSIDE BOX + CLOSED DEFAULT
   ========================================================================== */

.codes-page .sec#faq > .sec-intro,
.codes-page .sec[id$="-codes-faq"] > .sec-intro,
.codes-page .sec#sources > .sec-intro{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:78ch!important;
  margin:-2px 0 13px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.codes-page .sec#faq > .sec-intro .p,
.codes-page .sec[id$="-codes-faq"] > .sec-intro .p,
.codes-page .sec#sources > .sec-intro .p{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--text-secondary)!important;
  font-size:13.5px!important;
  line-height:1.72!important;
}

/* FAQ starts closed; codes.js owns the is-open state. */

@media(max-width:860px){
  .codes-page .sec#faq > .sec-intro,
  .codes-page .sec[id$="-codes-faq"] > .sec-intro,
  .codes-page .sec#sources > .sec-intro{
    max-width:none!important;
    margin:-1px 2px 11px!important;
  }
  .codes-page .sec#faq > .sec-intro .p,
  .codes-page .sec[id$="-codes-faq"] > .sec-intro .p,
  .codes-page .sec#sources > .sec-intro .p{
    font-size:12.5px!important;
    line-height:1.65!important;
  }
}

/* ==========================================================================
   CODES v5 · MEDIA INTRO OUTSIDE + SHARED SCREENSHOT SWIPE
   ========================================================================== */

.codes-page .sec .post-media-intro{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:78ch!important;
  margin:-2px 0 12px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.codes-page .sec .post-media-intro .p{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--text-secondary)!important;
  font-size:13.5px!important;
  line-height:1.72!important;
}

.codes-page .profile-shot-scroller{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  display:flex!important;
  gap:10px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-x:contain!important;
  scroll-snap-type:x proximity!important;
  scroll-padding-inline:0!important;
  scrollbar-width:none!important;
  touch-action:pan-x pan-y!important;
  cursor:grab!important;
  user-select:none!important;
}
.codes-page .profile-shot-scroller::-webkit-scrollbar{display:none!important;}
.codes-page .profile-shot-scroller.is-dragging{cursor:grabbing!important;}
.codes-page .profile-shot-card{
  flex:0 0 210px!important;
  width:210px!important;
  height:118px!important;
  scroll-snap-align:start!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
}
.codes-page .profile-shot-card img{
  pointer-events:none!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
}

@media(max-width:860px){
  .codes-page .sec .post-media-intro{
    max-width:none!important;
    margin:-1px 2px 10px!important;
  }
  .codes-page .sec .post-media-intro .p{
    font-size:12.5px!important;
    line-height:1.65!important;
  }
  .codes-page .profile-shot-card{
    flex-basis:168px!important;
    width:168px!important;
    height:95px!important;
  }
}

/* ==========================================================================
   CODES v6 · MOBILE SUMMARY SYMMETRY
   Desktop summary is unchanged.
   ========================================================================== */

@media(max-width:860px){

  /* Stop treating the desktop flex ticket as a wrapping row.
     Mobile has two equal top cells + one full-width newest-codes row. */
  .codes-page .box.ticket{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:0!important;
    row-gap:0!important;
    align-items:stretch!important;
    width:100%!important;
    min-width:0!important;
    padding:12px!important;
  }

  .codes-page .tk-count{
    grid-column:1!important;
    grid-row:1!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:112px!important;
    margin:0!important;
    padding:3px 12px 12px 0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
  }

  .codes-page .tk-redeem{
    grid-column:2!important;
    grid-row:1!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:112px!important;
    margin:0!important;
    padding:3px 0 12px 12px!important;
    border-left:1px dashed var(--border)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
  }

  .codes-page .tk-num{
    font-size:36px!important;
    line-height:1!important;
  }
  .codes-page .tk-l{
    margin-top:5px!important;
    font-size:11px!important;
  }
  .codes-page .tk-v{
    margin-top:4px!important;
    font-size:10px!important;
  }
  .codes-page .tk-rate{
    margin-top:7px!important;
    gap:5px!important;
  }
  .codes-page .tk-rate .stars{
    gap:1px!important;
    font-size:10.5px!important;
  }
  .codes-page .tk-rate .n{
    font-size:10px!important;
  }

  .codes-page .tk-redeem .btn{
    padding:8px 13px!important;
    font-size:10.5px!important;
    white-space:nowrap!important;
  }
  .codes-page .tk-redeem .barcode{
    width:58px!important;
    height:24px!important;
  }
  .codes-page .tk-redeem .hint{
    font-size:8.5px!important;
    white-space:nowrap!important;
  }

  /* Newest codes always starts as one clean full-width row under the
     perfectly balanced top half. */
  .codes-page .tk-new{
    grid-column:1 / -1!important;
    grid-row:2!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:12px 0 0!important;
    border-top:1px solid var(--border)!important;
    display:block!important;
  }

  .codes-page .tk-new .lbl{
    margin:0 0 8px!important;
    font-size:9px!important;
    line-height:1.3!important;
  }

  /* Controlled columns stop Version/Event text from randomly squeezing
     the code button or pushing the date off-axis. */
  .codes-page .tk-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 66px minmax(92px,104px)!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    margin:0 0 7px!important;
  }
  .codes-page .tk-row:last-child{
    margin-bottom:0!important;
  }

  .codes-page .code-pill.tk-pill{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:24px!important;
    flex:none!important;
    padding:4px 8px!important;
    gap:5px!important;
  }
  .codes-page .code-pill.tk-pill span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:9.5px!important;
  }
  .codes-page .code-pill.tk-pill i{
    font-size:10px!important;
  }

  .codes-page .tk-row .when{
    width:66px!important;
    min-width:66px!important;
    font-size:8.5px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    text-align:center!important;
  }

  .codes-page .tk-row .ver{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:104px!important;
    padding:3px 6px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:8.5px!important;
    line-height:1.25!important;
    text-align:center!important;
  }
}

/* Very narrow phones keep the same symmetry; only the code metadata columns
   tighten slightly instead of collapsing the ticket. */
@media(max-width:380px){
  .codes-page .box.ticket{
    padding:10px!important;
  }
  .codes-page .tk-count{
    padding-right:9px!important;
  }
  .codes-page .tk-redeem{
    padding-left:9px!important;
  }
  .codes-page .tk-row{
    grid-template-columns:minmax(0,1fr) 60px 88px!important;
    gap:5px!important;
  }
  .codes-page .tk-row .when{
    width:60px!important;
    min-width:60px!important;
    font-size:8px!important;
  }
  .codes-page .tk-row .ver{
    max-width:88px!important;
    font-size:8px!important;
  }
}


/* v19: shared article Note callout. */
.codes-page .p-quote{
  position:relative!important;
  margin:12px 0 14px!important;
  padding:11px 14px 11px 39px!important;
  border:1px solid rgba(75,139,244,.22)!important;
  border-left:1px solid rgba(75,139,244,.22)!important;
  border-radius:8px!important;
  background:rgba(75,139,244,.055)!important;
  color:var(--text-secondary)!important;
  font-size:12.5px!important;
  line-height:1.65!important;
  font-weight:400!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.codes-page .p-quote::before{
  content:"i";
  position:absolute;
  left:13px;
  top:12px;
  width:17px;
  height:17px;
  display:grid;
  place-items:center;
  border:1px solid rgba(75,139,244,.34);
  border-radius:50%;
  background:rgba(75,139,244,.12);
  color:var(--accent);
  font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.codes-page .p-quote strong{
  color:var(--text)!important;
  font-weight:500!important;
}


/* COSM-GAME semantic inline styling from the shared article editor. */
.codes-page .cg-cyan{color:#38BDF8!important;}
.codes-page .cg-green{color:#34D399!important;}
.codes-page .cg-amber{color:#FBBF24!important;}
.codes-page .cg-red{color:#F87171!important;}
.codes-page .cg-violet{color:#A78BFA!important;}
.codes-page .cg-lime{color:#A3E635!important;}
.codes-page .cg-text{color:#EAF0FF!important;}
.codes-page .cg-muted{color:#9AA7BD!important;}
.codes-page .cg-sm{font-size:.88em!important;}
.codes-page .cg-lg{font-size:1.13em!important;}
.codes-page .cg-xl{font-size:1.30em!important;font-weight:600!important;}

/* v25 · shared trailer/media: intro on field, no generic dark parent box. */
.codes-page #trailer-screenshots-and-media > .post-media-intro{
  width:100%!important;
  max-width:none!important;
  margin:-2px 0 14px!important;
}
/* Also cleans already-generated pages that still contain the old .box wrapper. */
.codes-page #trailer-screenshots-and-media > .box{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.codes-page #trailer-screenshots-and-media .profile-media-primary,
.codes-page #trailer-screenshots-and-media .profile-media-secondary,
.codes-page #trailer-screenshots-and-media .profile-video-frame,
.codes-page #trailer-screenshots-and-media .profile-shot-scroller{
  width:100%!important;
  max-width:100%!important;
}

/* ========================================================================== 
   v34 · FULL-WIDTH ARTICLE PARAGRAPHS + CALMER TITLE TAXONOMY
   ========================================================================== */
/* Long taxonomy rows covered more pixels in the old fixed 46s loop and could
   look hurried. Keep the same continuous marquee and hover-pause behavior,
   but make one cycle substantially calmer. */
.codes-page .tag-marquee-track{
  animation-duration:90s!important;
}

/* Narrative copy should align with the full article column. Older 78ch caps
   made media/FAQ/source intros look as if the paragraph were cut in half. */
.codes-page .lead,
.codes-page .p,
.codes-page .sec-intro,
.codes-page .sec .post-media-intro{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
}

/* ========================================================================== 
   v39 · CALMER POST TAXONOMY MARQUEE
   ========================================================================== */
.codes-page .tag-marquee-track{
  animation-duration:120s!important;
}
