.codes-availability-note{font-size:13px;line-height:1.7;color:var(--muted,#a0a7b4);margin:0 0 16px}
.mobile-claim-dialog{width:min(480px,calc(100% - 32px));max-height:80vh;overflow:auto;padding:24px;border:1px solid #ffffff24;border-radius:16px;background:#20232b;color:#f2f3f7;box-shadow:0 24px 80px #0008}.mobile-claim-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.mobile-claim-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.mobile-claim-header h2{margin:0;font-size:20px}.mobile-claim-header button svg{display:block;flex-shrink:0}.mobile-claim-header button{display:grid;place-items:center;box-sizing:border-box;padding:0;line-height:1;flex-shrink:0;width:34px;height:34px;border:1px solid #ffffff24;border-radius:8px;background:#ffffff08;color:inherit;font-size:24px;cursor:pointer}.mobile-claim-links{display:flex;flex-direction:column;gap:12px}.mobile-claim-links .code-launch{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;padding:14px;text-align:center;overflow-wrap:anywhere}
.public-update-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:16px 0;border:1px solid #e8a34c66;border-radius:8px;background:#282016;color:#ffe0b5;font-size:14px}.public-update-notice button{font:inherit;cursor:pointer;background:#e8a34c;color:#17120c;border:0;border-radius:6px;padding:8px 12px;flex-shrink:0}@media(max-width:480px){.public-update-notice{align-items:flex-start;flex-direction:column}}
/* Separate adjacent active and hovered dropdown items. */
.navbar .nav-dropdown-panel>a+a{margin-top:4px}

.navbar .menu-svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.navbar .nav-links>a,.navbar .nav-links .nav-dropdown>summary,.navbar .nav-links .nav-dropdown-panel>a{display:flex;align-items:center;gap:8px}.navbar .nav-links a>span,.navbar .nav-links summary>span{text-box:trim-both cap alphabetic}

.navbar .nav-profile .nav-dropdown-panel a{display:flex;align-items:center;gap:10px;min-height:42px;padding:10px 12px;line-height:1.5}
.nav-profile .nav-dropdown-panel a>svg{display:block;width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-profile .nav-dropdown-panel a>span{text-box:trim-both cap alphabetic}

.nav-profile .nav-dropdown-panel a.nav-logout{margin-top:5px;border-top:1px solid #ffffff12;border-radius:0 0 4px 4px;color:#f099a2}
.nav-profile .nav-dropdown-panel a.nav-logout:hover{color:#ffbac1;background:#e76d7d12}
/* Dropdown motion and item feedback. */
.navbar .nav-dropdown>.nav-dropdown-panel{transform-origin:top center}
.navbar .nav-dropdown-panel a{border-radius:5px;transition:background-color .16s ease,color .16s ease}
.navbar .nav-dropdown-panel a:hover,.navbar .nav-dropdown-panel a:focus-visible{background:#ffffff0b;color:#fff;text-decoration:none}
@media(prefers-reduced-motion:no-preference){
  .navbar .nav-language>summary::after{transition:transform .2s ease,margin .2s ease}
  .navbar .nav-dropdown[open]>.nav-dropdown-panel{animation:nav-dropdown-appear .2s cubic-bezier(.2,.7,.3,1) both}
  @keyframes nav-dropdown-appear{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
}
@media(prefers-reduced-motion:reduce){.navbar .nav-dropdown-panel a{transition:none}}
/* Compact language and account controls on narrow navigation bars. */
.nav-language .language-code{font-size:12px;font-weight:600;white-space:nowrap;text-box:trim-both cap alphabetic}
.navbar .nav-language>summary::after{content:'';display:block;width:5px;height:5px;margin:0 0 3px 2px;border:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex-shrink:0}
.navbar .nav-language[open]>summary::after{transform:rotate(225deg);margin:3px 0 0 2px}
.nav-language .nav-dropdown-panel a{display:flex;align-items:center;min-height:42px;padding:10px 12px;line-height:1.5;text-box:trim-both cap alphabetic}
@media(width < 1000px){
  .navbar .nav-inner{padding-inline:10px;column-gap:6px}
  .navbar .brand{min-width:0;overflow:hidden}
  .navbar .nav-inner .brand .navbar-logo{max-width:100%;height:auto;max-height:38px;object-fit:contain}
  .navbar .brand>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .navbar .nav-actions{gap:2px;flex-shrink:0}
  .navbar .nav-language>summary{min-height:40px;padding:8px 5px;gap:4px;white-space:nowrap}
  .navbar .nav-language>summary>svg{display:none}
  .navbar .nav-actions .nav-login>span{display:none}
  .navbar .nav-actions .nav-login::after{display:none}
  .navbar .nav-profile>summary.nav-login,.navbar .nav-actions>.nav-login{width:40px;min-height:40px;padding:10px;gap:0}
  .navbar .nav-language>.nav-dropdown-panel{position:absolute;top:calc(100% + 8px);left:auto;right:0;min-width:170px;margin:0;padding:8px;background:#202530;border:1px solid #353b48;border-radius:6px;box-shadow:0 8px 20px #0005}
}

@media (500px <= width <= 1000px){
  .navbar .nav-actions .nav-login>span{display:inline;white-space:nowrap;text-box:trim-both cap alphabetic}
  .navbar .nav-profile>summary.nav-login,.navbar .nav-actions>.nav-login{width:auto;min-height:40px;padding:8px 10px;gap:8px;font-size: 12px;}
}

.nav-language{font-size:12px}.nav-language>summary{display:flex;align-items:center;gap:6px;color:#b3bdce;min-height:40px}.nav-language>.nav-dropdown-panel{right:0;left:auto;z-index:50}.nav-language .nav-dropdown-panel a[aria-current=true]{color:#ffca45;background:#ffffff08;border-radius:5px}


/* Standalone error pages also work when the database is unavailable. */
.error-page{position:relative;isolation:isolate;display:grid;place-items:center;min-height:100vh;min-height:100dvh;padding:32px 20px;overflow:hidden;background:radial-gradient(ellipse at 50% 15%,#263044 0,transparent 65%),#0f1116}
.error-card{position:relative;z-index:1;width:min(620px,100%);padding:52px 36px;text-align:center;border:1px solid #ffffff15;border-radius:24px;background:linear-gradient(145deg,#202532ed,#141820f2);box-shadow:0 28px 90px #0005}
.error-mark{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 24px;border-radius:22px;background:#ffca4510;border:1px solid #ffca4525}.error-mark svg{width:42px;height:42px}
.error-code{margin:0 0 16px;font-size:clamp(36px,8vw,62px);line-height:1.1;font-weight:700;letter-spacing:.09em;color:#ffca45}
.error-card h1{margin:0 0 14px;font-size:clamp(22px,4vw,30px);color:#f2f4fa;line-height:1.5}.error-message{max-width:420px;margin:0 auto;color:#a7afbf;font-size:14px;line-height:1.9}
.error-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:30px}.error-actions a,.error-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 24px;border-radius:9px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none}.error-primary{color:#201a0b;background:#ffca45;border:1px solid #ffca45}.error-secondary{color:#d4dbe7;background:#ffffff05;border:1px solid #ffffff22}.error-primary:hover{background:#ffda78;text-decoration:none}.error-secondary:hover{background:#ffffff0c}.error-actions :focus-visible{outline:2px solid #ffca45;outline-offset:4px}
.error-help{margin:30px 0 0;font-size:12px;color:#788398}.error-orbit{position:absolute;z-index:0;width:420px;height:420px;border:1px solid #ffffff08;border-radius:50%;pointer-events:none}.error-orbit-one{top:-180px;right:-100px}.error-orbit-two{bottom:-250px;left:-140px;width:620px;height:620px}
@media(max-width:480px){.error-card{padding:36px 22px;border-radius:18px}.error-actions{flex-direction:column}.error-page{padding:20px 14px}}


:root {
  --bg: #0f1116;
  --panel: #14161d;
  --panel-2: #1c1f29;
  --text: #e6e8ee;
  --muted: #8b90a0;
  --accent: #f57c2b;
  --free: #2fb35b;
  --rare: #3b82f6;
  --unlocked: #a855f7;
  --radius: 8px;
}

* { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: "Noto Sans Thai", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
body > main.container { flex: 1 0 auto; width: 100%; }
body > .navbar, body > .footer { flex-shrink: 0; }

body:has(.login-dialog[open]) { overflow: hidden; }
.login-dialog { width: min(400px, calc(100vw - 32px)); padding: 32px 24px 24px; border: 0; border-radius: 12px; background: #fff; color: #1f1f1f; box-shadow: 0 24px 80px #0006; }
.login-dialog::backdrop { background: #090d16b3; }
.login-dialog h2 { margin: 0 0 6px; font-size: 22px; }
.login-dialog > p { margin: 0 0 24px; font-size: 13px; color: #686d75; }
.login-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: #5b6067; cursor: pointer; }
.login-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.login-close:hover { background: #f0f1f3; }
.login-providers { display: grid; grid-template-columns: minmax(12px, 1fr) 24px max-content minmax(12px, 1fr); column-gap: 12px; row-gap: 14px; }
.provider-button { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; min-height: 44px; padding: 10px 0; border: 1px solid #747775; border-radius: 8px; color: #1f1f1f; background: #fff; font-size: 14px; font-weight: 500; }
.provider-button img { grid-column: 2; justify-self: center; object-fit: contain; }
.provider-button span { grid-column: 3; min-width: 0; text-align: left; }
.provider-button:hover { background: #f5f6f7; text-decoration: none; }
.provider-button:focus-visible, .login-close:focus-visible { outline: 2px solid #4285f4; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .login-dialog[open] { animation: login-appear .18s ease-out; } @keyframes login-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } }

.brand .navbar-logo { display: block; width: auto; height: 52px; max-width: min(280px, 45vw); object-fit: contain; flex-shrink: 0; }
@media (max-width: 650px) { .brand .navbar-logo { height: 44px; max-width: 45vw; } }

.card-cover .expiry-overlay { position: absolute; inset: 0 0 4px; border-radius: 7px 7px 0 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; background: rgba(12,17,27,.78); color: #f3f4f6; text-align: center; backdrop-filter: blur(2px); }
.expiry-overlay svg { width: 30px; height: 30px; fill: none; stroke: #d4dae3; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.expiry-overlay strong { font-size: 14px; font-weight: 600; }
.expiry-overlay small { font-size: 11px; color: #b8c0ce; }
.card.is-expired .card-cover > img { filter: saturate(.35); }
.card .claim-btn.expired-action, .expired-action { background: #303540; border-color: #454d5c; color: #b8c0ce; cursor: default; }

.profile-panel { max-width: 640px; padding: 24px; border: 1px solid #303541; border-radius: 10px; background: #191d28; overflow-wrap: anywhere; }
.profile-panel p { color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.profile-page{max-width:920px;margin:30px auto 64px;padding:0 20px}.profile-heading{margin-bottom:24px}.profile-heading h1{margin:5px 0;font-size:30px}.profile-eyebrow{margin:0;color:#8c9bb2;font-size:11px;font-weight:700;letter-spacing:.18em}.profile-lead{margin:0;color:var(--muted);font-size:14px}.profile-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.8fr);gap:18px;align-items:stretch}.profile-panel.profile-identity{max-width:none;padding:26px;background:linear-gradient(145deg,#1c2230,#171a23);border-color:#30394a;border-radius:14px;box-shadow:0 14px 34px #0003}.profile-user-heading{display:flex;flex-direction:column;gap:7px;margin:0 0 22px}.profile-user-heading h2{margin:0;font-size:22px;line-height:1.3}.profile-status{display:flex;align-items:center;gap:7px;color:#aeb9c9;font-size:12px}.profile-status i{width:7px;height:7px;border-radius:50%;background:#43ce91;box-shadow:0 0 10px #43ce9170}.profile-avatar{float:right;display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:linear-gradient(145deg,#33425b,#222b3a);color:#dce8ff;font-size:24px;font-weight:700}.profile-details{display:grid;gap:10px}.profile-detail{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #ffffff0b;border-radius:9px;background:#ffffff04}.profile-detail-icon{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:9px;background:#ffffff0a;color:#c3d0e3;font-weight:700}.profile-detail>div{display:grid;gap:3px;min-width:0}.profile-detail small{color:var(--muted);font-size:11px}.profile-detail strong{overflow-wrap:anywhere;font-size:13px;font-weight:500}.profile-actions{margin-top:20px}.profile-actions .btn{min-height:40px;display:inline-flex;align-items:center;gap:12px}.profile-bookmark-count{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:#fff2;color:inherit;font-size:11px}.profile-logout{color:#e5a0a8}.profile-side-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:24px;border:1px solid #30394a;border-radius:14px;background:radial-gradient(ellipse at top right,#293347 0,transparent 68%),#171a23}.profile-side-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#ffca4518;color:#ffcf62;font-size:20px}.profile-side-card h2{margin:17px 0 7px;font-size:17px}.profile-side-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}.profile-side-card>a{margin-top:18px;color:#ffcf62;font-size:13px;font-weight:600;text-decoration:none}.profile-side-card>a span{margin-left:5px}

.toast-region { position: fixed; right: 16px; z-index: 30; width: max-content; max-width: calc(100vw - 32px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.bookmark-toast { width: max-content; max-width: min(440px, calc(100vw - 32px)); min-width: 0; pointer-events: auto; overflow: hidden; border: 1px solid #454b55; border-radius: 7px; background: #22272e; color: #e2e5ea; box-shadow: 0 8px 28px #0005; font-size: 13px; }
.toast-header { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid #41464f; color: #bfc5ce; }
.toast-header svg { width: 20px; height: 20px; padding: 3px; flex-shrink: 0; border-radius: 5px; background: #087ff5; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.toast-error .toast-header svg { background: #bb4c55; }
.toast-header strong { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.toast-header small { margin-left: auto; font-size: 11px; white-space: nowrap; }
.toast-close { display: grid; place-items: center; align-self: center; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; color: #bfc5ce; line-height: 1; cursor: pointer; }
.toast-header .toast-close svg { display: block; width: 18px; height: 18px; padding: 0; border-radius: 0; background: transparent; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.toast-close:hover { color: #fff; }
.toast-close:focus-visible { outline: 2px solid #adc0df; border-radius: 3px; }
.toast-body { padding: 14px 12px 16px; line-height: 1.6; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) { .bookmark-toast { animation: toast-appear .18s ease-out; } @keyframes toast-appear { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } } }

.codes-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;padding:24px 0 40px;align-items:start}.codes-main{min-width:0;background:#101214;border:0;border-radius:12px;padding-bottom:24px;box-shadow:0 12px 36px #0005,0 3px 10px #0003}.codes-main .codes-hero{border-radius:12px 12px 0 0}.codes-hero{position:relative;isolation:isolate;overflow:hidden;min-height:230px}.codes-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.18;z-index:-2}.codes-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#101214,transparent);z-index:-1}.codes-hero-content{padding:26px}.codes-breadcrumb{font-size:11px;color:#929dab;margin-bottom:24px}.codes-eyebrow{text-transform:uppercase;color:#82c7ec;letter-spacing:1.5px;font-size:11px;font-weight:700}.codes-hero h1{font-size:clamp(23px,3vw,34px);line-height:1.35;margin:8px 0 14px;color:#f4f6fa;overflow-wrap:anywhere}.codes-summary{font-size:12px;color:#929dab}.codes-summary strong{color:#5bd79a}.codes-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.codes-hero-actions .btn,.code-row .btn{font-size:12px;min-height:34px}.codes-section{padding:10px 24px 18px;scroll-margin-top:90px}.codes-section h2{font-size:20px;color:#e9edf5;margin:12px 0 16px}.code-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:16px;align-items:center;margin:8px 0;padding:14px 16px;border:1px solid #2c3039;background:linear-gradient(90deg,#1b303d,#181b22)}.code-row code{font-weight:700;color:#e6edf3;overflow-wrap:anywhere}.code-row>span{font-size:13px;color:#bac4cf}.code-copy{display:inline-flex;align-items:center;gap:7px;background:#178bbd;color:#fff;border:1px solid #2b9aca}.code-copy svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.redeem-steps{display:grid;min-width:0;grid-template-columns:minmax(0,1fr);gap:10px;list-style:none;padding:0;margin:0}.redeem-steps li{display:flex;min-width:0;align-items:center;gap:12px;padding:14px;background:#181c23;border:1px solid #2b3039}.redeem-steps li>span{display:grid;place-items:center;flex-shrink:0;width:23px;height:23px;border-radius:3px;background:#188cbf;color:#fff;font-size:12px;font-weight:700;line-height:1;text-box:trim-both cap alphabetic}.redeem-steps p{flex:1;min-width:0;overflow-wrap:anywhere;margin:0;font-size:13px;color:#b6c0ce;text-box:trim-both cap alphabetic}.codes-description{white-space:pre-wrap;color:#a8b5c5;font-size:14px;overflow-wrap:anywhere}.codes-expired{margin:8px 24px;border:1px solid #2c3039;scroll-margin-top:90px}.codes-expired summary{padding:14px;cursor:pointer;font-size:17px;font-weight:600}.codes-expired summary span{color:#7f8a99;margin-left:8px}.codes-expired .code-row{margin:8px;opacity:.65;background:#1a1e26}.codes-sidebar{position:static;background:#171c25;border:0;border-radius:12px;overflow:hidden;box-shadow:0 12px 32px #0005,0 3px 10px #0003}.codes-sidebar>img{width:100%;aspect-ratio:16/9;object-fit:cover}.codes-sidebar-inner{padding:18px}.codes-sidebar h2{font-size:19px;line-height:1.4;color:#ecf0f6}.codes-sidebar dl{font-size:12px}.codes-sidebar dl>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #292d37;padding:12px 0}.codes-sidebar dt{color:#8995a6}.codes-sidebar dd{margin:0;font-weight:600}.codes-sidebar h3{font-size:11px;letter-spacing:1px;color:#7cc9eb}.codes-sidebar nav a{display:block;padding:12px 0;border-bottom:1px solid #292d37;font-size:12px;color:#aebac9}.codes-sidebar nav a::before{content:' ';display:inline-block;width:6px;height:6px;margin-right:9px;background:#268ab1}@media(max-width:850px){.codes-layout{grid-template-columns:1fr}.codes-sidebar{position:static}.codes-sidebar>img{display:none}}@media(max-width:550px){.codes-hero-content{padding:18px}.codes-section{padding:8px 16px 14px}.redeem-steps{grid-template-columns:minmax(0,1fr)}.code-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.code-row>span{grid-column:1;grid-row:2}.code-row>.btn,.code-row>.code-expired-label{grid-column:2;grid-row:1/3}.codes-expired{margin:8px 16px}}

.codes-sidebar{background:#101214;border-radius:0;box-shadow:0 10px 28px #0006}.codes-sidebar-cover{position:relative;isolation:isolate;min-height:126px;aspect-ratio:2/1;display:flex;align-items:flex-end;padding:16px 13px 10px;overflow:hidden}.codes-sidebar-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.codes-sidebar-cover::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#10121426 0%,#10121466 35%,#101214eb 82%,#101214 100%)}.codes-sidebar .codes-sidebar-cover h2{font-family: 'Fredoka', 'Noto Sans Thai', Tahoma, sans-serif;margin:0;color:#fff;font-size:21px;font-weight:800;line-height:1.25;text-shadow:0 2px 4px #000;overflow-wrap:anywhere}.codes-sidebar-inner{padding:0 13px 14px}.codes-sidebar dl{margin:0 0 12px;font-size:12px}.codes-sidebar dl>div{padding:12px 0;border-bottom-color:#ffffff12;align-items:center}.codes-sidebar dt{color:#929498;font-weight:500}.codes-sidebar dd{color:#f2f3f4;font-weight:500;text-align:right}.codes-sidebar h3{margin:12px 0 4px;font-size:11px;letter-spacing:1.2px;font-weight:700}.codes-sidebar nav a{padding:12px 4px;color:#a1a4aa;border-bottom-color:#ffffff12;line-height:1.5}.codes-sidebar nav a:hover{color:#e2f4ff;text-decoration:none;background:#ffffff04}

.codes-hero-content{display:grid;grid-template-columns:minmax(0,1fr) 190px;column-gap:24px;align-content:start}.codes-hero-content>.codes-breadcrumb{grid-column:1/-1}.codes-hero-content>.codes-eyebrow,.codes-hero-content>h1,.codes-hero-content>.codes-summary{grid-column:1}.codes-hero-content>.codes-eyebrow{grid-row:2;margin:0 0 8px}.codes-hero-content>h1{grid-row:3;margin:0 0 14px}.codes-hero-content>.codes-summary{grid-row:4;margin:0}.codes-hero-content>.codes-hero-actions{grid-column:2;grid-row:2/5;display:flex;flex-direction:column;gap:9px;margin:0;align-self:center}.codes-hero-actions>.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;padding:10px 14px;border-radius:7px;font-weight:600;line-height:1.5;text-align:center;box-shadow:0 3px 10px #0002}.codes-hero-actions>.code-launch{background:#238bca;border:1px solid #389bd7;color:#fff}.codes-hero-actions>.code-launch:hover{background:#2a9bdc;text-decoration:none}.codes-hero-actions>.bookmark-btn.active{background:#3c3926;border-color:#877c45;color:#e2d58f}@media(max-width:600px){.codes-hero-content{grid-template-columns:minmax(0,1fr)}.codes-hero-content>.codes-hero-actions{grid-column:1;grid-row:5;margin-top:20px;width:min(100%,240px);justify-self:end}.codes-hero-content>h1{font-size:26px}}

.codes-hero-content{grid-template-columns:minmax(0,1fr) 200px;gap:24px 28px;padding:24px 28px 30px;min-height:230px;box-sizing:border-box;align-content:center}.codes-hero-content>.codes-breadcrumb{margin:0;font-size:11px}.codes-hero-text{grid-column:1;grid-row:2;align-self:center;min-width:0}.codes-hero-text .codes-eyebrow{margin:0;font-size:10px;letter-spacing:1.8px}.codes-hero-text h1{font-family:'Fredoka','Noto Sans Thai',Tahoma,sans-serif;font-weight:700;margin:0;font-size:clamp(24px,2.7vw,32px);line-height:1.25;letter-spacing:-.5px}.codes-hero-text .codes-summary{margin:0;font-size:11px;line-height:1.9;color:#a2afbe}.codes-hero-content>.codes-hero-actions{grid-column:2;grid-row:2;align-self:center;gap:8px;padding:12px;background:#10172080;border:1px solid #ffffff09;border-radius:10px;box-shadow:none}.codes-hero-actions>.btn{min-height:36px;padding:8px 10px;font-size:11px;font-weight:500;border-radius:6px;box-shadow:none;transition:background .15s}.codes-hero-actions>.code-launch{order:0;background:#243647;border:1px solid #385166;color:#e0edf8}.codes-hero-actions>.code-launch:hover{background:#30485d}.codes-hero-actions>.code-copy-all{order:1;background:#238650;border:1px solid #31965f;color:#f0fff5}.codes-hero-actions>.code-copy-all:hover{background:#2c965c}.codes-hero-actions>.bookmark-btn{order:2;background:#ffffff05;border:1px solid #ffffff16;color:#b4c1cf}.codes-hero-actions>.bookmark-btn:hover{background:#ffffff0d}@media(max-width:600px){.codes-hero-content{grid-template-columns:minmax(0,1fr);padding:20px;gap:22px}.codes-hero-text{grid-column:1;grid-row:2}.codes-hero-content>.codes-hero-actions{grid-column:1;grid-row:3;justify-self:end;width:min(100%,220px);margin:0}.codes-hero-text h1{font-size:26px}}

/* Increase detail text consistently across FREE, GIFTCODE and Roblox. */
.codes-layout .codes-hero-content>.codes-breadcrumb{font-size:13px}.codes-layout .codes-hero-text .codes-eyebrow{font-size:12px}.codes-layout .codes-hero-text .codes-summary{font-size:13px}.codes-layout .codes-hero-actions>.btn{font-size:13px}.codes-layout .codes-description{font-size:16px;line-height:1.8}.codes-layout .codes-section h2{font-size:22px}.codes-layout .redeem-steps p{font-size:15px;line-height:1.7}.codes-layout .redeem-steps li>span{font-size:14px}.codes-layout .codes-sidebar dl{font-size:14px}.codes-layout .codes-sidebar h3{font-size:13px}.codes-layout .codes-sidebar nav a{font-size:14px}.codes-layout .codes-sidebar .codes-sidebar-cover h2{font-size:23px}.codes-layout .code-row>span{font-size:15px}.codes-layout .code-row .btn{font-size:14px}.codes-layout .codes-expired summary{font-size:19px}
/* Let header actions use the full height beside the breadcrumb and title. */
.codes-hero-content { row-gap: 18px; grid-template-rows: auto 1fr; }
.codes-hero-content > .codes-breadcrumb { grid-column: 1; grid-row: 1; align-self: start; }
.codes-hero-content > .codes-hero-actions { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.codes-hero-text { align-self: center; }
@media (max-width: 600px) {
  .codes-hero-content > .codes-hero-actions { grid-column: 1; grid-row: 3; }
}

.codes-layout .code-icon{display:inline-block;width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.codes-hero-actions>.btn{gap:8px}.codes-hero-actions>.code-copy-all{background:rgba(55,110,78,.22);border:1px solid rgba(112,173,136,.32);color:#c4e5cf}.codes-hero-actions>.code-copy-all:hover{background:rgba(65,130,92,.32);color:#e2f5e9}.codes-section h2{display:flex;align-items:center;gap:10px}.codes-section h2 .code-icon{width:21px;height:21px;color:#82c7ec}.codes-sidebar dt{display:flex;align-items:center;gap:7px}.codes-sidebar dt .code-icon{width:14px;height:14px;color:#7e9baa}.codes-expired summary .code-icon{margin-right:8px;color:#95a5b8}

/* Align icons with their text instead of the inline text baseline. */
:where(button, a, h1, h2, h3, dt):has(> svg) { display: inline-flex; align-items: center; gap: 8px; }
:where(button, a, h1, h2, h3, dt) > svg { display: block; flex-shrink: 0; }
.codes-section h2, .codes-sidebar dt { display: flex; }
.codes-expired summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.codes-expired summary::before { content: none; }
.codes-expired summary::after { content: ''; width: 7px; height: 7px; margin-left: auto; margin-right: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); flex-shrink: 0; transition: transform .2s ease; }
.codes-expired[open] summary::after { transform: translateY(2px) rotate(225deg); }
@media (prefers-reduced-motion: reduce) { .codes-expired summary::after { transition: none; } }
.codes-expired summary::-webkit-details-marker { display: none; }
.codes-expired summary .code-icon { display: block; align-self: center; width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.codes-expired summary > span { display: block; align-self: center; line-height: 1.5; text-box: trim-both cap alphabetic; }
.codes-expired summary > span:last-of-type { font-variant-numeric: tabular-nums; }
.nav-dropdown summary { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown summary::after { margin: 0; transform: translateY(2px); }
.pill-icon { display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.toast-header > svg, .expiry-overlay > svg { display: block; flex-shrink: 0; }

/* Center the visible text area with the icon, excluding font leading. */
.codes-section h2 { display: flex; align-items: center; line-height: 1.5; }
.codes-section h2 .code-heading-text { font-weight: 500; display: block; min-width: 0; text-box: trim-both cap alphabetic; }
.codes-section h2 > .code-icon { display: block; align-self: center; }

/* Trim font leading on text labels beside icons, retaining normal wrapping. */
:where(.nav-login, .brand, .provider-button, .codes-hero-actions > .btn) > span,
.icon-label, .toast-header > strong, .toast-header > small {
  text-box: trim-both cap alphabetic;
}
.codes-expired summary > .icon-label { font-weight: 500; margin-left: 0; color: inherit; }

/* Redeemable code rows */
.codes-section .code-row { gap: 18px; margin: 10px 0; padding: 16px 18px; border: 1px solid #242629; border-radius: 10px; background: linear-gradient(110deg, #171819 0%, #191a1b 52%, #171819 100%); box-shadow: 0 4px 12px #0003; transition: background .18s ease, box-shadow .18s ease, border-color .18s ease; }
.codes-section .code-row:hover { border-color: #303235; background: linear-gradient(110deg, #1c1d1e 0%, #202122 52%, #1c1d1e 100%); box-shadow: 0 7px 18px #0005; }
.codes-section .code-row code { font-size: 13px; line-height: 1.6; letter-spacing: .4px; color: #f0f1f2; }
.codes-section .code-row > span { font-size: 12px; line-height: 1.6; color: #aeb1b5; }
.codes-section .code-row .code-copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 92px; min-height: 36px; padding: 8px 12px; border: 1px solid #35443b; border-radius: 7px; background: #202722; color: #c8dfd0; font-size: 12px; line-height: 1.5; transition: background .15s, border-color .15s; }
.codes-section .code-row .code-copy:hover { background: #29352d; border-color: #4b6253; text-decoration: none; }
.codes-section .code-row .code-copy > svg { display: block; flex-shrink: 0; }
.codes-section .code-row .code-copy:disabled { opacity: .6; cursor: wait; }
@media (max-width: 550px) { .codes-section .code-row { gap: 6px 12px; padding: 14px; } .codes-section .code-row .code-copy { min-width: 80px; } }

@media (max-width: 600px) {
  .codes-hero-content > .codes-hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; justify-self: stretch; gap: 6px; padding: 8px; box-sizing: border-box; }
  .codes-hero-actions > .btn { min-width: 0; min-height: 48px; padding: 8px 4px; gap: 5px; font-size: 10px; line-height: 1.45; }
  .codes-hero-actions > .btn > span { min-width: 0; overflow-wrap: anywhere; }
  .codes-hero-actions .code-icon { width: 14px; height: 14px; }
}

@media (width < 440px) {
  .codes-hero-content > .codes-hero-actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .codes-hero-actions > .btn { min-height: 40px; padding: 10px 12px; gap: 8px; font-size: 12px; }
  .codes-hero-actions .code-icon { width: 17px; height: 17px; }
}

/* Navbar */
.navbar { background: #191d28; border-top: 1px solid #303541; border-bottom: 1px solid #282d38; position: sticky; top: 0; z-index: 10; }
.nav-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; /*height: 60px;*/ padding: 0 16px; gap: 24px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: #f0f1f4; font-size: 14px; font-weight: 900; letter-spacing: -.6px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 34px; flex-shrink: 0; }
.nav-center { display: flex; align-items: center; align-self: center; width: min(320px, 48vw); min-width: 0; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 0; white-space: nowrap; }
@media (min-width: 1000px) {
  .nav-center { width: max-content; justify-self: center; justify-content: center; }
  .nav-center .nav-links { flex-shrink: 0; }
  .nav-center .nav-search { width: min(320px, 48vw); }
}
.nav-links a, .nav-dropdown summary { color: #a2a7b2; font-size: 15px; }
.nav-links a:hover, .nav-dropdown summary:hover { color: #fff; text-decoration: none; }
.nav-links a[aria-current], .nav-links .nav-dropdown.has-current-page > summary { color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: ''; display: inline-block; margin: 0 0 3px 6px; border: 3px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.nav-dropdown-panel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 170px; padding: 8px; background: #202530; border: 1px solid #353b48; border-radius: 6px; box-shadow: 0 8px 20px #0005; }
.nav-dropdown-panel a { display: block; padding: 8px 10px; }
/* Reserve each action's column even while the HTML is being parsed. */
.navbar .nav-actions { justify-self: end; display: grid; grid-template-columns: auto 40px 1px 40px; align-items: center; gap: 10px; }
.navbar .nav-actions > .nav-language { grid-column: 1; grid-row: 1; }
.navbar .nav-actions > .search-toggle { grid-column: 2; grid-row: 1; width: 40px; min-height: 40px; box-sizing: border-box; }
.navbar .nav-actions > .nav-divider { grid-column: 3; grid-row: 1; }
.navbar .nav-actions > .nav-account-state { grid-column: 4; grid-row: 1; }
.navbar .nav-actions > .mobile-menu-toggle { grid-column: 5; grid-row: 1; width: 40px; min-height: 40px; box-sizing: border-box; }
/* Members disabled: only language and search remain in the navbar. */
.navbar .nav-actions.nav-actions--no-members { grid-template-columns: auto 40px; }
.navbar .nav-actions.nav-actions--no-members > .mobile-menu-toggle { grid-column: 3; }
.nav-icon, .nav-login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 0; background: transparent; color: #afb5c1; cursor: pointer; }
.nav-icon svg, .nav-login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-icon:hover, .nav-login:hover { color: #fff; text-decoration: none; }
.nav-login { font-size: 13px; }
.nav-divider { height: 22px; width: 1px; background: #3a404d; }
.nav-search { display: flex; align-items: center; box-sizing: border-box; margin: 0; width: 100%; height: 36px; border: 1px solid #414958; border-radius: 5px; background: #11151e; }
.nav-search input { flex: 1; width: 0; min-width: 0; padding: 7px 12px; border: 0; background: transparent; color: #e6e8ee; font: inherit; font-size: 13px; outline: none; }
.nav-search input::-webkit-search-cancel-button { display: none; }
.nav-search:focus-within { border-color: #8b98ac; }
.navbar [hidden] { display: none !important; }
.navbar a:focus-visible, .navbar button:focus-visible, .nav-dropdown summary:focus-visible { outline: 2px solid #adc0df; outline-offset: 3px; }

/* Platform bar */
.platform-bar {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0;
  padding-bottom: 12px; border-bottom: 1px solid #262a36;
}
.platform-bar a {
  padding: 4px 10px; border-radius: 999px; color: var(--muted);
  background: var(--panel); font-size: 14px;
}
.platform-bar a.active, .platform-bar a:hover { color: #fff; background: var(--accent); text-decoration: none; }

.page-title { font-size: 26px; margin: 24px 0 8px; }
.bookmark-total { font-size: .72em; font-weight: 500; color: var(--muted); }
.bookmark-page-info { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--muted); }

.home-category { margin: 28px 0 36px; }
.home-hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 210px; margin: 24px 0 32px; padding: 36px 24px; overflow: hidden; border: 0; border-radius: 12px 12px 0 0; box-shadow: none; background: var(--bg); text-align: center; }
.home-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.7); transform: scale(1.03); }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, transparent 6%, transparent 94%, var(--bg) 100%), linear-gradient(180deg, var(--bg) 0%, rgba(15, 17, 22, .25) 10%, rgba(15, 17, 22, .3) 45%, rgba(15, 17, 22, .8) 80%, var(--bg) 100%); }
.home-hero-content { width: min(760px, 100%); }
.home-hero h1 { display: block; margin: 0; color: #fff; font-family: 'Fredoka', 'Noto Sans Thai', Tahoma, sans-serif; font-size: clamp(30px, 4.5vw, 52px); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; text-shadow: 0 2px 16px #0007; }
.home-hero p { margin: 12px 0 0; color: #e0e5eb; font-size: clamp(13px, 1.5vw, 16px); line-height: 1.8; overflow-wrap: anywhere; text-shadow: 0 1px 6px #0009; }
@media (max-width: 550px) { .home-hero { min-height: 170px; margin: 16px 0 24px; padding: 28px 18px; } }
.category-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.category-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; min-width: 0; }
.category-heading h1, .category-heading h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); }
.category-more { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 13px; color: var(--muted); padding: 6px 10px; border: 1px solid #343b49; border-radius: 6px; }
.category-more:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.category-more > span { display: block; text-box: trim-both cap alphabetic; }
.category-more svg { display: block; align-self: center; margin: 0; flex-shrink: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.category-count { margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
@media (max-width: 650px) {
  .category-title { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Grid & cards */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  position: relative; background: #14161d; border-radius: 10px;
  overflow: hidden; border: 1px solid #232732;
  display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #3a4155;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

/* Cover: 16:9 */
.card-cover {
  position: relative; display: block; aspect-ratio: 16 / 9;
  overflow: hidden; background: #0f1116;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Type pill: bottom-left overlay, small rounded pill with icon */
.type-pill {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px 5px 9px; border-radius: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #fff;
  border: none;
}
.pill-icon { font-size: 10px; line-height: 1; }
.type-pill.free { color: #7ef0a8; background: #14432a; }
.type-pill.rare { color: #8ab4ff; background: #14294d; }
.type-pill.unlocked { color: #d8b4fe; background: #33194f; }

/* Body */
.card-body {
  padding: 12px 13px 14px; flex: 1; display: flex; flex-direction: column;
}
.card-store {
  color: #6f7688; font-size: 11px; text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 5px; font-weight: 600;
}
.card-body h3 {
  margin: 0 0 6px; font-size: 18px; font-weight: 700;
  line-height: 1.2; color: #fff; letter-spacing: -.01em;
}
.card-body h3 a { color: #fff; }
.card-body h3 a:hover { text-decoration: none; color: var(--accent); }

/* Description: single line truncated */
.card-desc {
  margin: 0 0 14px; padding: 0; font-size: 13px;
  color: #9aa0b0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* Actions row */
.card-actions { margin-top: auto; display: flex; align-items: center; gap: 8px; }

.claim-btn {
  flex: 1; padding: 10px 12px; border-radius: 6px;
  background: #e8eaf0; color: #14161d; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer; text-align: center;
  transition: background .15s, transform .1s;
}
.claim-btn:hover { background: #fff; text-decoration: none; }
.claim-btn:active { transform: scale(.98); }

.round-btn {
  width: 34px; height: 34px; min-width: 34px; padding: 0;
  border-radius: 50%; border: none;
  background: #e8eaf0; color: #14161d;
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.round-btn:hover { background: #fff; }
.round-btn.active { background: #ffd966; color: #14161d; }
.plus-btn { font-size: 18px; font-weight: 300; }

/* Reference card layout */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.card { --card-highlight: #58bb45; min-width: 0; /* background: linear-gradient(145deg, #1d202a, #191c25);*/ border: 0; border-radius: 8px; box-shadow: 0 7px 18px #0005, 0 2px 5px #0003; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px #0006, 0 3px 8px #0004; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
.card-cover { aspect-ratio: 16 / 9; overflow: visible; background: #20232d; border-radius: 7px 7px 3px 3px; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.card-cover::after { content: ''; position: absolute; inset: auto 0 0; height: 4px; border-radius: 0 0 3px 3px; background: var(--card-highlight); }
.type-pill, .type-pill.free, .type-pill.giftcode, .type-pill.giftcode-roblox {
  left: 14px; bottom: -11px; z-index: 1; height: 26px; padding: 0 10px;
  gap: 6px; border: 2px solid var(--card-highlight); border-radius: 6px;
  background: var(--badge-bg, #192722); color: var(--card-highlight); font-size: 10px;
  font-weight: 700; letter-spacing: 0; line-height: 1;
}
.card.giftcode { --card-highlight: #efa831; --badge-bg: #352817; }
.card.giftcode-roblox { --card-highlight: #b482ee; --badge-bg: #2c203f; }
.pill-icon { color: inherit; font-size: 12px; }
.collection-label { position: absolute; right: 6px; bottom: 7px; border-radius: 5px; padding: 1px 7px; background: #303942d9; color: #aab4be; font-size: 10px; font-weight: 700; }
.card-body { min-width: 0; padding: 20px 16px 12px; }
.card-body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 22px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body h3 a { color: #abb2bf;font-family: 'Fredoka', 'Noto Sans Thai', Tahoma, sans-serif;}
/* Stretch the title link across the card while keeping actions independent. */
.card-body h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .claim-btn { position: relative; z-index: 2; }
.card:has(.card-body h3 a:focus-visible) { outline: 2px solid #9cd78a; outline-offset: 2px; }
.card-desc { display: block; margin: 0 0 8px; color: #778591; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.card .claim-btn { min-width: 0; height: 32px; padding: 4px 10px; border: 1px solid #7b858b; border-radius: 8px; background: transparent; color: #7e909b; font-size: 14px; font-weight: 400; line-height: 22px; text-align: center; }
.card .claim-btn:hover { background: #252b34; color: #b8c5cc; }
.card-action-group { position: relative; z-index: 2; display: flex; flex: 0 0 36px; height: 32px; overflow: hidden; border: 1px solid #7b858b; border-radius: 8px; }
.card .round-btn { width: 34px; min-width: 0; height: 30px; padding: 7px; border: 0; border-radius: 0; background: transparent; color: #81919c; }
.card .round-btn + .round-btn { border-left: 1px solid #7b858b; }
.card .round-btn:hover, .card .round-btn.active { /*background: #2b3440; */ color: #cfcdb0; }
.round-btn svg { display: block; width: 18px; height: 18px; }
.plus-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bookmark-btn svg { fill: currentColor; }
.card a:focus-visible, .card button:focus-visible { outline: 2px solid #9cd78a; outline-offset: -3px; }

/* Centered on the viewport itself, independent of the navbar and footer heights. */
.admin-login-page { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; overflow-y: auto; pointer-events: none; z-index: 1; }
.admin-login { pointer-events: auto; margin: auto; width: 100%; max-width: 400px; padding: 32px 28px 28px; background: var(--panel); border: 1px solid #333a4c; border-radius: 14px; box-shadow: 0 18px 50px #0006; }
.admin-login > h1 { margin: 0 0 6px; font-size: 22px; text-align: center; }
.admin-login > p:first-of-type { margin: 0 0 22px; font-size: 13px; color: #9aa3b2; text-align: center; }
.admin-login form { display: grid; gap: 14px; }
.admin-login label { font-size: 12px; font-weight: 600; color: #aab4c3; margin-bottom: -6px; }
.admin-login input:not([type="hidden"]) { width: 100%; padding: 11px 13px; background: var(--bg); color: var(--text); border: 1px solid #4c566a; border-radius: 8px; font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.admin-login input:not([type="hidden"]):focus { outline: none; border-color: var(--free); box-shadow: 0 0 0 3px #9cd78a33; }
.admin-login [role="alert"]:not(:empty) { margin: 0; padding: 10px 12px; border-radius: 8px; background: #3a1d22; color: #ffaaaa; font-size: 13px; }
.admin-login button[type="submit"] { width: 100%; min-height: 44px; margin-top: 6px; font-size: 15px; font-weight: 600; }
@media (max-width: 480px) { .admin-login { padding: 26px 20px; } }

/* Detail page */
.game-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.detail-cover { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.detail-info h1 { margin-top: 0; }
.meta, .ends, .price { color: var(--muted); }
.actions { display: flex; gap: 12px; margin: 16px 0; }
.btn {
  padding: 10px 18px; border-radius: var(--radius); border: 1px solid #333a4c;
  background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 15px;
}
.btn.primary { background: var(--free); border-color: var(--free); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.description { white-space: pre-line; color: #c3c7d3; }

.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 24px 0; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid #303642; border-radius: 6px; background: #191d28; color: #aeb7c5; font-size: 14px; }
.page-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-btn:hover { background: #292f3c; color: #fff; text-decoration: none; }
.page-btn.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: .35; cursor: default; pointer-events: none; }
.page-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.footer { /*margin-top: 48px;*/ padding: 24px 0; border-top: 1px solid #262a36; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .profile-page{margin:20px auto 40px;padding:0 16px}.profile-heading h1{font-size:25px}.profile-layout{grid-template-columns:1fr}.profile-panel.profile-identity{padding:20px}.profile-side-card{padding:20px}
  .game-detail { grid-template-columns: 1fr; }
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 60px; padding: 10px 16px; gap: 12px; }
  .nav-center { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .nav-actions { grid-column: 2; grid-row: 1; gap: 10px; }
  .nav-links { gap: 16px; flex-wrap: wrap; padding: 6px 0; }
  .brand { font-size: 12px; }
}

/* Compact mobile navigation */
.mobile-menu-toggle { display: none; }
@media (width < 1000px) {
  .nav-inner { grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 0; padding: 8px 14px; gap: 0 8px; }
  .navbar .brand { grid-column: 1; grid-row: 1; min-width: 0; font-size: 12px; }
  .navbar .brand .navbar-logo { max-width: min(170px, 38vw); height: 42px; }
  .navbar .nav-actions { grid-column: 2; grid-row: 1; grid-template-columns: auto 40px 40px 40px; gap: 3px; }
  .navbar .nav-actions > .nav-account-state { grid-column: 3; }
  .navbar .nav-actions > .mobile-menu-toggle { grid-column: 4; }
  .navbar .nav-actions.nav-actions--no-members { grid-template-columns: auto 40px 40px; }
  .navbar .nav-actions.nav-actions--no-members > .mobile-menu-toggle { grid-column: 3; }
  .mobile-menu-toggle { display: inline-flex; order: 3; }
  .nav-actions .nav-divider { display: none; }
  .nav-actions .nav-icon, .nav-actions .nav-login { min-height: 40px; padding: 8px 6px; }
  .nav-actions .nav-login { font-size: 11px; gap: 5px; }
  .nav-center { display: none; grid-column: 1 / -1; grid-row: 2; width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px solid #ffffff0d; }
  .mobile-menu-open .nav-center, .mobile-search-open .nav-center { display: block; }
  .navbar .nav-links { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; padding: 4px 0; white-space: normal; }
  .nav-links > a, .nav-dropdown > summary { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 6px; }
  .nav-links > a:hover, .nav-dropdown > summary:hover { background: #ffffff07; }
  .nav-dropdown > summary { justify-content: space-between; }
  .nav-dropdown-panel { position: static; margin: 0 8px 8px; min-width: 0; box-shadow: none; border: 0; background: #ffffff04; }
  .nav-dropdown-panel a { min-height: 42px; }
  .nav-search { width: 100%; }
}

/* Keep the account dropdown anchored to the right on desktop and mobile. */
.nav-profile > summary.nav-login { display: inline-flex; justify-content: center; gap: 8px; min-height: 40px; padding: 8px; }
.nav-profile > .nav-dropdown-panel { position: absolute; top: calc(100% + 10px); right: 0; left: auto; z-index: 50; min-width: 170px; margin: 0; padding: 8px; background: #202530; border: 1px solid #353b48; border-radius: 6px; box-shadow: 0 8px 20px #0005; }
.nav-profile .nav-dropdown-panel a { display: flex; align-items: center; min-height: 40px; padding: 8px 10px; border-radius: 4px; color: #afb5c1; font-size: 13px; }
.nav-profile .nav-dropdown-panel a:hover { color: #fff; background: #ffffff08; text-decoration: none; }

/* Voucher-inspired reward rows with a split code/reward layout. */
.codes-layout .code-row { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto; gap: 18px; padding: 8px 18px; border: 0; border-radius: 2px; background: linear-gradient(105deg, #1b252d 0%, #171b20 42%, #151719 100%); box-shadow: 0 4px 12px #0004; overflow: hidden; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.codes-layout .code-row::before, .codes-layout .code-row::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #101214; transform: translateY(-50%); }
.codes-layout .code-row::before { left: -8px; }
.codes-layout .code-row::after { right: -8px; }
.codes-layout .code-row:hover { background: linear-gradient(105deg, #22303a 0%, #1d2329 42%, #1b1d20 100%); box-shadow: 0 7px 18px #0006; }
.redeem-code-value, .redeem-code-reward { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.redeem-code-reward { border-left: 1px dashed #ffffff1c; padding-left: 24px; }
.redeem-code-value > small, .redeem-code-reward > small { display: flex; align-items: center; gap: 5px; color: #8da0ad; font-size: 12px; line-height: 1.5; }
.redeem-code-reward > small .code-icon { width: 13px; height: 13px; }
.codes-layout .redeem-code-value code { color: #f1f4f5; font-size: 17px; font-weight: 700; letter-spacing: .4px; line-height: 1.5; overflow-wrap: anywhere; }
.redeem-code-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.codes-layout .code-new-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 4px; width: max-content; padding: 2px 6px; border: 1px solid #73d7a52e; border-radius: 4px; background: #65d69a14; color: #8ee0b4; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.codes-layout .code-new-badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.redeem-code-reward > span { color: #d5dadd; font-size: 15px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.codes-expired .code-row { background: #1a1c20; }
@media (max-width: 550px) {
  .codes-layout .code-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .redeem-code-value { grid-column: 1; grid-row: 1; }
  .redeem-code-reward { grid-column: 1; grid-row: 2; padding-left: 0; border: 0; }
  .code-row > .code-copy, .code-row > .code-expired-label { grid-column: 2; grid-row: 1 / 3; }
}

.card-cover .card-countdown { position: absolute; top: 5px; left: 5px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 20px); padding: 5px 8px; border: 1px solid rgba(255, 183, 97, .35); border-radius: 6px; background: rgba(15, 17, 22, .88); color: #ffd09a; font-size: 10px; font-weight: 600; line-height: 1.4; pointer-events: none; }
.card-countdown svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-cover .card-countdown[hidden], .card.is-expired .card-countdown { display: none; }

/* Center the breadcrumb/title group independently of the desktop action height. */
@media (min-width: 1080px) {
  .codes-hero-content {
    grid-template-rows: 1fr auto auto 1fr;
    row-gap: 0;
    align-content: stretch;
  }
  .codes-hero-content > .codes-breadcrumb {
    grid-row: 2;
    margin: 0 0 12px;
    align-self: end;
  }
  .codes-hero-content > .codes-hero-text {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }
  .codes-hero-content > .codes-hero-actions {
    grid-row: 1 / 5;
    align-self: center;
  }
}

.navbar .nav-account-state { position: relative; width: 40px; min-width: 40px; flex: 0 0 40px; min-height: 40px; }
.navbar .nav-account-state > summary.nav-login { display: flex; width: 40px; min-height: 40px; padding: 10px; box-sizing: border-box; justify-content: center; gap: 0; }
.navbar .nav-account-state > summary.nav-login::after { display: none; }
.nav-account-panel { min-width: 170px; }
.nav-account-panel > a { display: flex; align-items: center; gap: 10px; }
.nav-account-panel > a > svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-account-panel > [role="status"] { display: block; padding: 10px 12px; color: #a0a7b4; font-size: 12px; }
.nav-account-panel .nav-account-retry { display: block; width: 100%; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.nav-account-panel .nav-account-retry:hover { background: #ffffff08; }

.footer .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; text-align: left; }
.footer-copyright { min-width: 0; overflow-wrap: anywhere; }
.footer-legal { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; font-size: 13px; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-legal-divider { opacity: .5; }
.footer-legal:empty { display: none; }

/* Shared typography hierarchy for FREE, GIFTCODE and Roblox detail pages. */
.codes-layout .codes-hero-content > .codes-breadcrumb { font-size: 12px; }
.codes-layout .codes-hero-text .codes-eyebrow { font-size: 11px; }
.codes-layout .codes-hero-text h1 { font-size: clamp(26px, 2.7vw, 32px); line-height: 1.3; letter-spacing: -.3px; }
.codes-layout .codes-hero-text .codes-summary,
.codes-layout .codes-hero-actions > .btn { font-size: 12px; }
.codes-layout .codes-section h2 { font-size: 20px; font-weight: 600; line-height: 1.5; }
.codes-layout .codes-description { font-size: 15px; font-weight: 400; line-height: 1.9; }
.codes-layout .redeem-steps p { font-size: 15px; font-weight: 400; line-height: 1.7; }
.codes-layout .redeem-steps li > span { font-size: 13px; }
.codes-layout .codes-sidebar dl { font-size: 13px; }
.codes-layout .codes-sidebar h3 { font-size: 12px; }
.codes-layout .codes-sidebar nav a { font-size: 13px; }
.codes-layout .codes-sidebar .codes-sidebar-cover h2 { font-size: 20px; line-height: 1.35; }
.codes-layout .redeem-code-value > small,
.codes-layout .redeem-code-reward > small,
.codes-layout .code-new-badge { font-size: 11px; }
.codes-layout .redeem-code-value code { font-size: 14px; }
.codes-layout .redeem-code-reward > span { font-size: 14px; font-weight: 500; line-height: 1.6; }
.codes-layout .code-row .btn { font-size: 13px; }
.codes-layout .codes-expired summary { font-size: 16px; font-weight: 600; }
.codes-layout .codes-sidebar dd { font-weight: 600; }
.codes-layout .code-new-badge { font-size: 10px; font-weight: 500; }
@media (max-width: 600px) {
  .codes-layout .codes-hero-text h1 { font-size: 25px; }
}
@media (max-width: 650px) {
  .footer .footer-inner { flex-direction: column-reverse; text-align: center; gap: 12px; }
  .footer-legal { margin-left: 0; justify-content: center; font-size: 11px; }
}


.card-cover .card-code-count { position: absolute; inset: 5px auto auto 5px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: calc(100% - 10px); box-sizing: border-box; padding: 5px 8px; border: 1px solid var(--code-count-border); border-radius: 6px; background: var(--code-count-bg); color: var(--code-count-color); font-size: 10px; font-weight: 600; line-height: 1.4; white-space: nowrap; pointer-events: none; }
.card.giftcode .card-code-count { --code-count-border: #e6b64a80; --code-count-bg: #29220feb; --code-count-color: #ffe29a; }
.card.giftcode-roblox .card-code-count { --code-count-border: #b482ee80; --code-count-bg: #241832eb; --code-count-color: #d7b7ff; }
.card-code-count svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
