:root {
  --page: #080c11;
  --surface: #101821;
  --surface-2: #151f2a;
  --surface-3: #1a2631;
  --line: #30404d;
  --line-soft: #1c2731;
  --text: #f7f3ea;
  --copy: #c8d0d8;
  --muted: #93a1ae;
  --gold: #f4bd4d;
  --green: #64dfa9;
  --cyan: #58d5df;
  --violet: #b39aff;
  --coral: #ff8978;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; overflow-x: hidden; background: var(--page); color: var(--text); font: 16px/1.55 "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1220px, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line-soft); background: rgba(8,12,17,.97); }
.header-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: baseline; flex: none; text-decoration: none; font-size: 1.18rem; font-weight: 900; }
.brand b { color: var(--gold); }
.header-inner nav, .footer-inner nav { display: flex; align-items: center; gap: 1.15rem; }
.header-inner nav a, .footer-inner nav a { color: var(--muted); font-size: .84rem; font-weight: 750; text-decoration: none; }
.header-inner nav a:hover, .footer-inner nav a:hover { color: var(--text); }
.header-inner .community-link { color: var(--violet); }

.tracker-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-block: 1.2rem; }
.intro-main { min-width: 0; }
.eyebrow { margin: 0 0 .48rem; color: var(--cyan); font-size: .74rem; font-weight: 850; text-transform: uppercase; }
.eyebrow.is-green { color: var(--green); }
.eyebrow.is-violet { color: var(--violet); }
.eyebrow.is-gold { color: var(--gold); }
.eyebrow.is-muted { color: var(--muted); }
.tracker-intro h1 { max-width: 820px; margin: 0; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.04; font-weight: 720; }
.tracker-intro h1 em { color: var(--gold); font-style: normal; }
.intro-copy { max-width: 780px; margin: .48rem 0 0; color: var(--copy); font-size: .92rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .66rem; }
.feed-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .78rem; align-items: start; border: 1px solid #31584c; border-left: 4px solid var(--green); border-radius: var(--radius); padding: .82rem .9rem; background: #0e1918; }
.status-pulse { width: 10px; height: 10px; margin-top: .35rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(100,223,169,.1); }
.feed-status small { display: block; color: var(--muted); }
.feed-status strong { display: block; margin: .12rem 0; overflow-wrap: anywhere; }
.feed-status p { margin: .2rem 0 0; color: var(--green); font-weight: 650; }
.feed-status p b { font-size: 1.18rem; }
.feed-counts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; margin-top: .55rem; }
.feed-counts span { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .5rem; border: 1px solid #31584c; background: #0a1414; padding: .55rem .65rem; }
.feed-counts b { color: var(--green); font-size: 1.25rem; line-height: 1; }
.feed-counts small { color: var(--ink); font-size: .72rem; font-weight: 800; text-transform: uppercase; }

.tracker-tools { border-block: 1px solid var(--line-soft); background: #0c1218; }
.tool-grid { min-height: 54px; display: grid; grid-template-columns: minmax(250px, .85fr) minmax(230px, auto) minmax(350px, 1.15fr); align-items: center; gap: .8rem; }
.timezone-control { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.timezone-control select { min-height: 38px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); padding: .42rem 2rem .42rem .65rem; }
.view-control, .feed-links, .preview-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem; }
.view-control > span { margin-right: .22rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.feed-links { justify-content: flex-end; }
.view-control button, .feed-links a, .feed-links button, .preview-tabs button { min-height: 35px; border: 1px solid var(--line); border-radius: 4px; padding: .4rem .64rem; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.view-control button[aria-pressed="true"], .preview-tabs button[aria-pressed="true"] { border-color: var(--cyan); background: #10242a; color: #91edf5; }
.feed-links a:hover, .feed-links button:hover { border-color: var(--gold); color: var(--gold); }

.page-content { padding-block: 0 4rem; }
.offer-section { padding: 1rem 0 1.7rem; scroll-margin-top: 72px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 470px); align-items: end; gap: 2rem; margin-bottom: .72rem; }
.section-heading h2, .follow-panel h2, .alert-panel h2 { margin: .08rem 0; font-size: clamp(1.55rem, 2.35vw, 2rem); line-height: 1.1; font-weight: 690; }
.section-heading > p { justify-self: end; margin: 0; color: var(--muted); font-size: .9rem; }

.offers { display: grid; gap: 1rem; }
.offer { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); background: linear-gradient(180deg, #111a24 0, var(--surface) 100%); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.offer-upcoming { border-top-color: var(--violet); }
.offer-ended { border-top-color: #667481; }
.offer-head { padding: .82rem 1rem .72rem; border-bottom: 1px solid var(--line-soft); }
.offer-status-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.offer-state { border: 1px solid rgba(100,223,169,.72); border-radius: 3px; padding: .27rem .48rem; background: #0a1a16; color: var(--green); font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.offer-upcoming .offer-state { border-color: #7964b3; background: rgba(27,20,43,.95); color: #d5c5ff; }
.offer-ended .offer-state { border-color: #586572; background: rgba(11,15,20,.95); color: #c0c8d0; }
.countdown { min-width: 0; color: var(--green); font-size: .78rem; font-weight: 800; }
.offer-upcoming .countdown { color: var(--violet); }
.offer-time { color: var(--muted); font-size: .75rem; text-align: right; }
.offer-label { margin: .72rem 0 0; color: var(--coral); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.offer-upcoming .offer-label { color: var(--violet); }
.offer-ended .offer-label { color: var(--muted); }
.offer h3 { margin: .16rem 0 .22rem; font-size: clamp(1.28rem, 2vw, 1.72rem); line-height: 1.12; font-weight: 700; overflow-wrap: anywhere; }
.offer-summary { max-width: 880px; margin: 0; color: var(--muted); font-size: .86rem; }
.game-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: .72rem; padding: .78rem 1rem; }
.game-links a { min-width: 0; position: relative; display: grid; grid-template-rows: auto auto auto; overflow: hidden; border: 1px solid #344654; border-radius: 4px; background: #090e14; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.game-links a:hover { border-color: var(--cyan); transform: translateY(-1px); }
.game-art { position: relative; width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #05080b; }
.game-art img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #05080b; }
.art-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .78rem; font-weight: 700; }
.game-art:not(.image-missing) .art-fallback { visibility: hidden; }
.game-art.image-missing img { display: none; }
.offer-placeholder { color: var(--gold); font-weight: 850; }
.game-copy { min-width: 0; display: grid; gap: .12rem; padding: .62rem .7rem .12rem; }
.game-copy strong { font-size: 1rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.game-copy small { color: var(--muted); }
.game-links a > b { margin: .28rem .7rem .66rem; color: var(--cyan); font-size: .75rem; }
.offer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; border-top: 1px solid var(--line-soft); padding: .62rem 1rem; background: #0d141c; }
.action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--line); border-radius: 4px; padding: .52rem .78rem; background: var(--surface); color: var(--text); font-weight: 750; text-decoration: none; cursor: pointer; }
.action-primary { border-color: #cb9b35; background: var(--gold); color: #171207; }
.action-primary:hover { background: #ffd26d; }
.action-quiet { border-color: #3b4b58; background: #111a23; color: var(--copy); }
.action-quiet:hover { border-color: var(--cyan); color: var(--cyan); }
.offer-upcoming .action-primary { border-color: #765fb3; background: #2a2040; color: #e3d9ff; }
.offer-ended .action-primary { display: none; }
.text-action { color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.text-action:hover { color: var(--text); }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.35rem; background: var(--surface); color: var(--muted); }
.empty-state strong { color: var(--text); }
.empty-state p { margin: .3rem 0 0; }
body[data-card-view="bundled"] .offers:not(.offers-recent) .game-links { grid-template-columns: 1fr; gap: .42rem; }
body[data-card-view="bundled"] .offers:not(.offers-recent) .game-links a { grid-template: auto / 118px minmax(0, 1fr) auto; align-items: center; }
body[data-card-view="bundled"] .offers:not(.offers-recent) .game-art { aspect-ratio: 16 / 9; border: 0; border-right: 1px solid var(--line); }
body[data-card-view="bundled"] .offers:not(.offers-recent) .game-copy { padding: .58rem .7rem; }
body[data-card-view="bundled"] .offers:not(.offers-recent) .game-links a > b { margin: 0 .75rem 0 0; white-space: nowrap; }

.follow-panel { margin: .15rem 0 1.8rem; display: grid; grid-template-columns: minmax(270px, .85fr) minmax(0, 1.15fr); gap: 1.2rem; border-block: 1px solid #594b2c; padding: 1.05rem 0; }
.follow-panel > div:first-child > p:not(.eyebrow) { margin: .35rem 0 0; color: var(--muted); }
.feed-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.feed-cards a { min-width: 0; display: grid; gap: .08rem; border: 1px solid #4d4128; border-top: 3px solid var(--gold); border-radius: 4px; padding: .82rem; background: #17140e; text-decoration: none; }
.feed-cards a:hover { border-color: var(--gold); }
.feed-cards span { color: var(--gold); font-size: .7rem; font-weight: 850; }
.feed-cards strong { font-size: .92rem; }
.feed-cards small { color: var(--muted); }

.alert-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: 1.25rem; margin: 1.8rem 0; border: 1px solid #51476b; border-left: 4px solid var(--violet); border-radius: var(--radius); padding: 1.1rem; background: #12131c; }
.alert-copy > p:not(.eyebrow) { color: var(--muted); }
.preview-tabs { margin: .8rem 0; }
.message-preview { display: flex; gap: .68rem; border: 1px solid #403957; border-radius: 4px; padding: .72rem; background: #0d0f16; }
.message-preview p { margin: 0; }
.preview-mark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--violet); color: var(--violet); font-weight: 850; }
.webhook-disclosure { align-self: start; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.webhook-disclosure > summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem; cursor: pointer; list-style: none; }
.webhook-disclosure > summary::-webkit-details-marker { display: none; }
.webhook-disclosure > summary span { display: grid; gap: .08rem; }
.webhook-disclosure > summary small { color: var(--muted); font-weight: 400; }
.webhook-disclosure > summary b { color: var(--violet); font-size: .76rem; white-space: nowrap; }
.webhook-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.webhook-form { display: grid; gap: .72rem; padding: .85rem; }
.webhook-form > label { display: grid; gap: .24rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.webhook-form input[type="url"], .webhook-form input[type="text"], .webhook-form input:not([type]) { width: 100%; min-height: 40px; border: 1px solid var(--line); background: #090d13; color: var(--text); padding: .52rem .62rem; }
.webhook-form fieldset { margin: 0; border: 1px solid var(--line); padding: .68rem; }
.webhook-form legend { padding-inline: .3rem; color: var(--muted); font-size: .76rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .38rem; }
.checks label { display: flex; align-items: center; gap: .38rem; padding: .4rem; background: var(--surface-2); font-size: .75rem; }
.checks input { accent-color: var(--violet); }
.form-note { color: var(--muted); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.offers-recent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offers-recent .offer { min-height: 172px; }
.offers-recent .offer-head { padding: .8rem; }
.offers-recent .offer-status-line { grid-template-columns: auto 1fr; }
.offers-recent .offer-time { grid-column: 1 / -1; text-align: left; }
.offers-recent .offer h3 { font-size: 1.12rem; }
.offers-recent .offer-summary, .offers-recent .offer-label { display: none; }
.offers-recent .game-links { grid-template-columns: 1fr; gap: .38rem; padding: .65rem .8rem; }
.offers-recent .game-links a { grid-template: auto / 76px minmax(0, 1fr); align-items: center; }
.offers-recent .game-art { border: 0; border-right: 1px solid var(--line); }
.offers-recent .game-copy { padding: .45rem .55rem; }
.offers-recent .game-copy small, .offers-recent .game-links a > b { display: none; }
.offers-recent .offer-actions { padding: .55rem .8rem; }
.claim-note { display: flex; gap: .75rem; margin-top: 1rem; border: 1px solid #58472c; border-radius: 4px; padding: .85rem; background: #19150e; }
.claim-note > span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-weight: 800; }
.claim-note p { margin: .12rem 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line-soft); background: #06090d; }
.footer-inner { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: .22rem 0; color: var(--muted); font-size: .76rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 980px) {
  .tool-grid { grid-template-columns: 1fr 1fr; padding-block: .65rem; }
  .feed-links { grid-column: 1 / -1; justify-content: flex-start; }
  .alert-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 1rem, 1220px); }
  .site-header { position: relative; }
  .header-inner { min-height: 56px; align-items: flex-start; padding-block: .48rem; }
  .header-inner nav { max-width: 72%; gap: .8rem; overflow-x: auto; padding: .16rem 0 .3rem; white-space: nowrap; scrollbar-width: thin; }
  .header-inner nav .community-link { display: none; }
  .tracker-intro { min-height: 0; grid-template-columns: 1fr; gap: .7rem; padding-block: .88rem; }
  .tracker-intro h1 { font-size: clamp(1.9rem, 9vw, 2.45rem); }
  .intro-copy { margin-top: .58rem; font-size: .9rem; }
  .intro-actions { margin-top: .75rem; }
  .intro-actions .action { flex: 1 1 160px; }
  .feed-status { padding: .75rem; }
  .tool-grid { min-height: 0; grid-template-columns: 1fr; padding-block: .5rem; }
  .timezone-control { justify-content: space-between; }
  .view-control { justify-content: flex-start; }
  .feed-links { display: none; }
  .page-content { padding-top: 0; }
  .offer-section { padding: .9rem 0 1.35rem; }
  .section-heading { display: block; margin-bottom: .7rem; }
  .section-heading h2 { font-size: 1.52rem; }
  .section-heading > p { margin-top: .3rem; font-size: .84rem; }
  .offer-head { padding: .82rem; }
  .offer-status-line { grid-template-columns: auto 1fr; }
  .offer-time { grid-column: 1 / -1; text-align: left; }
  .offer h3 { font-size: 1.26rem; }
  .game-links { grid-template-columns: 1fr; padding: .65rem .72rem; }
  body[data-card-view="bundled"] .offers:not(.offers-recent) .game-links a { grid-template-columns: 92px minmax(0, 1fr); }
  body[data-card-view="bundled"] .offers:not(.offers-recent) .game-links a > b { display: none; }
  .follow-panel { grid-template-columns: 1fr; gap: .85rem; padding: 1rem 0; }
  .feed-cards { grid-template-columns: 1fr; }
  .alert-panel { margin-block: 1.4rem; padding: .85rem; }
  .checks { grid-template-columns: 1fr; }
  .offers-recent { grid-template-columns: 1fr; }
  .offers-recent .offer-actions { display: none; }
  .footer-inner { min-height: 0; flex-direction: column; align-items: flex-start; padding: 1.3rem 0; }
  .footer-inner nav { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .header-inner nav a:nth-child(3), .header-inner nav a:nth-child(4) { display: none; }
  .offer-actions .action, .offer-actions .text-action { width: 100%; text-align: center; }
  .view-control > span { width: 100%; }
  .view-control button { flex: 1; }
  .offers-recent .game-links a { grid-template-columns: 68px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
