:root {
  --bg: #070808;
  --bg-2: #0d1010;
  --surface: rgba(14, 17, 17, 0.9);
  --surface-2: rgba(20, 23, 22, 0.88);
  --line: rgba(179, 128, 91, 0.32);
  --line-strong: rgba(241, 78, 49, 0.68);
  --text: #f1ede4;
  --muted: #aaa49a;
  --dim: #716b63;
  --red: #e13422;
  --red-2: #8f1e17;
  --gold: #d3a85b;
  --green: #6cc46d;
  --amber: #e0a331;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --font-th: "Noto Sans Thai", system-ui, sans-serif;
  --font-display: "Chakra Petch", "Noto Sans Thai", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 9%, rgba(126, 22, 14, 0.24), transparent 28rem),
    linear-gradient(180deg, #050606 0%, var(--bg) 48%, #0a0b0b 100%);
  color: var(--text);
  font-family: var(--font-th);
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.page-section {
  display: none;
}

.page-section.is-active {
  display: block;
}

.page-section:not(.is-active) {
  display: none !important;
}

.hero.page-section.is-active {
  display: flex;
}

.page-section.section {
  min-height: calc(100vh - 76px);
  padding-top: 118px;
}

.shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 0 48px;
  background: linear-gradient(180deg, rgba(4, 5, 5, 0.94), rgba(4, 5, 5, 0.68));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.brand-lockup {
  font-family: var(--font-display);
  line-height: 0.86;
  text-transform: uppercase;
}

button.brand {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.brand img,
.brand-lockup img,
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-header .brand {
  width: 112px;
  max-width: 112px;
}

.brand-lockup {
  width: min(260px, 58vw);
}

.footer-brand {
  width: 160px;
}

.brand span,
.brand-lockup span {
  display: block;
  font-size: clamp(2rem, 5vw, 5.8rem);
  font-weight: 700;
  color: #d9d2c7;
  text-shadow: 0 2px 0 #2a2927, 0 0 24px rgba(255, 255, 255, 0.14);
}

.brand small,
.brand-lockup small {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 54px);
  color: #e7e0d5;
  font-weight: 700;
  font-size: 0.98rem;
}

/* The UID-search link in nav is only for the mobile menu; hidden on desktop */
.mobile-uid-link { display: none; }

.main-nav button {
  position: relative;
  padding: 30px 0 27px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: inherit;
}

.main-nav button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 19px;
  width: 0;
  height: 2px;
  background: var(--red);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.main-nav button:hover::after,
.main-nav button:focus-visible::after,
.main-nav button.is-active::after {
  width: 100%;
}

.header-cta,
.primary-action,
.secondary-action,
.text-link,
.copy-btn,
.activity-card a,
.open-event-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta,
.primary-action {
  color: #fff7ef;
  border: 1px solid rgba(255, 119, 88, 0.75);
  background:
    linear-gradient(135deg, rgba(201, 41, 28, 0.92), rgba(75, 11, 8, 0.96)),
    var(--red-2);
  box-shadow: inset 0 0 0 1px rgba(255, 223, 177, 0.18), 0 0 28px rgba(189, 31, 20, 0.28);
}

.header-cta {
  padding: 0 24px;
  cursor: pointer;
}

.crosshair {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.crosshair::before {
  width: 24px;
  height: 2px;
  left: -5px;
  top: 6px;
}

.crosshair::after {
  width: 2px;
  height: 24px;
  left: 6px;
  top: -5px;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(4, 5, 5, 0.92), rgba(4, 5, 5, 0.42) 48%, rgba(4, 5, 5, 0.14)),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 68%, var(--bg) 100%),
    url("assets/warz-hero-bg.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin-left: max(48px, calc((100vw - 1320px) / 2));
  padding-top: 78px;
}

.brand-lockup {
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.25rem, 4.3vw, 4.85rem);
  line-height: 1.04;
  font-weight: 900;
}

.hero h1 span {
  display: inline;
}

.hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #d7d0c5;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  padding: 0 24px;
  cursor: pointer;
}

.secondary-action,
.text-link,
.activity-card a,
.copy-btn,
.open-event-btn {
  color: #f1e8d8;
  border: 1px solid rgba(211, 168, 91, 0.44);
  background: rgba(10, 12, 12, 0.72);
}

.header-cta:hover,
.primary-action:hover,
.secondary-action:hover,
.activity-card a:hover,
.copy-btn:hover,
.open-event-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 123, 91, 0.9);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #e5d7c2;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.section {
  padding: 34px 0 8px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.15;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 4px;
  height: 0.9em;
  background: var(--red);
  box-shadow: 0 0 16px rgba(225, 52, 34, 0.8);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(238, 76, 49, 0.06), transparent 34%),
    linear-gradient(180deg, var(--surface), rgba(7, 8, 8, 0.92));
  box-shadow: var(--shadow);
}

.winner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
}

.event-tabs-wrap {
  margin-bottom: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(17, 20, 20, 0.96), rgba(8, 9, 9, 0.94));
  overflow: hidden;
}

.tab-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(179, 128, 91, 0.18);
}

.tab-strip-head strong {
  color: #f5eadb;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.tab-strip-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tabs.event-tabs,
.event-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.event-tab {
  position: relative;
  min-width: max-content;
  width: auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px 14px;
  color: #d8d0c4;
  border: 0;
  border-right: 1px solid rgba(179, 128, 91, 0.16);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.event-tab::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.event-tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(175, 31, 22, 0.38), rgba(175, 31, 22, 0.08));
}

.event-tab.is-active::after {
  background: var(--red);
  box-shadow: 0 0 18px rgba(225, 52, 34, 0.86);
}

.tab-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(211, 168, 91, 0.34);
  border-radius: 4px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
}

.event-tab-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(211, 168, 91, 0.34);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.26);
}

.event-tab svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.event-tab strong,
.event-tab small {
  display: block;
  white-space: nowrap;
}

.event-tab small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.checker-layout {
  align-items: start;
}

.checker-panel {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 18px;
}

.checker-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.checker-head h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.event-meta {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
}

.big-search {
  min-height: 58px;
  margin-bottom: 14px;
}

.big-search input {
  font-size: 1.06rem;
}

.search-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.search-mode-tabs button {
  min-height: 38px;
  padding: 0 14px;
  color: #dbcdb8;
  border: 1px solid rgba(211, 168, 91, 0.34);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-weight: 800;
}

.search-mode-tabs button.is-active {
  color: #fff6eb;
  border-color: rgba(255, 119, 88, 0.75);
  background: linear-gradient(135deg, rgba(201, 41, 28, 0.92), rgba(75, 11, 8, 0.96));
}

.search-result {
  min-height: 118px;
  margin-bottom: 20px;
}

.empty-result,
.reward-result {
  border: 1px solid rgba(211, 168, 91, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.empty-result {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: var(--muted);
}

.empty-result strong {
  color: #f0e8db;
  font-size: 1.08rem;
}

.empty-result.is-warning {
  border-color: rgba(224, 163, 49, 0.48);
  background: rgba(125, 78, 14, 0.12);
}

.reward-result {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.result-player h3 {
  margin: 7px 0 4px;
  font-size: 1.22rem;
}

.result-player p,
.result-status small {
  margin: 0;
  color: var(--muted);
}

.uid {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
}

.reward-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reward-stack span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(211, 168, 91, 0.34);
  border-radius: 6px;
  color: #f4e7d0;
  background: rgba(0, 0, 0, 0.28);
  font-weight: 700;
}

.reward-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.reward-chip b {
  font: inherit;
}

.reward-chip small {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
}

.result-status {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.public-list {
  border-top: 1px solid rgba(179, 128, 91, 0.18);
  padding-top: 16px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.public-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.list-head span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-bar label {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.filter-bar span {
  color: #f0e4d3;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-bar select {
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(211, 168, 91, 0.34);
  border-radius: 4px;
  background: rgba(1, 2, 2, 0.7);
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(179, 128, 91, 0.22);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tab-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 18px;
  color: #d8d0c4;
  border: 1px solid rgba(148, 118, 86, 0.36);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-weight: 700;
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tab-btn.is-active {
  color: #fff;
  border-color: rgba(255, 98, 62, 0.72);
  background: linear-gradient(180deg, rgba(151, 28, 20, 0.9), rgba(78, 14, 11, 0.8));
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(207, 172, 112, 0.34);
  border-radius: 4px;
  background: rgba(1, 2, 2, 0.48);
}

.search-box svg {
  width: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(179, 128, 91, 0.18);
  font-size: 0.96rem;
}

th {
  color: #eee2d1;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.035);
}

td {
  color: #d6cec1;
}

tr:hover td {
  background: rgba(225, 52, 34, 0.04);
}

.rank {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}

tr.row-problem td {
  background: rgba(225, 52, 34, 0.14);
}

tr.row-problem td:first-child {
  border-left: 4px solid var(--red);
}

.problem-note {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(225, 52, 34, 0.18);
  color: #ff6a58;
  font-size: 0.78rem;
  font-weight: 700;
  font-style: normal;
}
a.problem-note-link {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(225, 52, 34, 0.2);
  border: 1px solid rgba(225, 52, 34, 0.5);
  color: #ff6a58;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: background 0.15s, color 0.15s;
}
a.problem-note-link:hover { background: rgba(225, 52, 34, 0.32); color: #ff8a7a; }

.status {
  display: inline-flex;
  min-width: 96px;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status.done,
.status.ready {
  color: #daf4da;
  background: rgba(79, 145, 69, 0.28);
  border: 1px solid rgba(108, 196, 109, 0.56);
}

.status.pending {
  color: #ffe2aa;
  background: rgba(189, 125, 26, 0.24);
  border: 1px solid rgba(224, 163, 49, 0.52);
}

.status.checking {
  color: #ddd5c9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status.used,
.status.expired {
  color: #ffd8d3;
  background: rgba(143, 30, 23, 0.34);
  border: 1px solid rgba(225, 52, 34, 0.54);
}

.event-status {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.event-status h3,
.note-panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.side-subtitle {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(179, 128, 91, 0.18);
}

.reward-announcement {
  display: grid;
  gap: 10px;
}

.side-reward {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(211, 168, 91, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(225, 52, 34, 0.08), rgba(255, 255, 255, 0.025));
}

.side-reward-img {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(211, 168, 91, 0.28);
  border-radius: 7px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.34));
}

.side-reward-img img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.side-reward-img span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
}

.side-reward strong,
.side-reward small {
  display: block;
}

.side-reward strong {
  color: #f3eadc;
  line-height: 1.35;
}

.side-reward small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.side-empty {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(211, 168, 91, 0.28);
  border-radius: 8px;
  color: var(--muted);
}

dl {
  margin: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(179, 128, 91, 0.16);
}

.summary-row dt {
  color: var(--muted);
}

.summary-row dd {
  margin: 0;
  color: #eee4d2;
  font-weight: 800;
  text-align: right;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.activity-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.activity-art {
  min-height: 166px;
  border-radius: 6px;
  border: 1px solid rgba(217, 170, 103, 0.25);
  background:
    linear-gradient(135deg, rgba(235, 61, 36, 0.28), rgba(0, 0, 0, 0.12)),
    var(--image);
  background-size: cover;
  background-position: center;
}

.activity-card h3 {
  margin: 3px 0 6px;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.activity-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.activity-card strong {
  display: block;
  margin: 10px 0 12px;
  color: var(--gold);
}

.activity-card a {
  width: 112px;
  min-height: 38px;
  font-size: 0.92rem;
}

.open-event-btn {
  width: 138px;
  min-height: 38px;
  cursor: pointer;
  font-size: 0.92rem;
}

.compact-card {
  display: block;
  min-height: 0;
}

.compact-card a {
  width: 128px;
}

.contact-grid {
  align-items: start;
}

.contact-card {
  padding: 18px;
}

.contact-logo {
  height: 44px;
  opacity: 0.85;
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(179, 128, 91, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(238, 76, 49, 0.04), transparent 40%),
    linear-gradient(180deg, var(--surface), rgba(7, 8, 8, 0.94));
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-link-card:hover {
  border-color: rgba(211, 168, 91, 0.56);
  background:
    linear-gradient(135deg, rgba(238, 76, 49, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(20, 23, 22, 0.95), rgba(7, 8, 8, 0.96));
}

.contact-link-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.contact-link-card div {
  display: grid;
  gap: 3px;
}

.contact-link-card strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.contact-link-card span {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-display);
}

.text-link {
  padding: 0 18px;
}

.code-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.code-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(179, 128, 91, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(238, 76, 49, 0.05), transparent 40%),
    linear-gradient(180deg, var(--surface), rgba(7, 8, 8, 0.94));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38);
  transition: border-color 160ms ease;
}

.code-card:hover {
  border-color: rgba(211, 168, 91, 0.52);
}

.code-card.is-expired {
  opacity: 0.5;
}

.code-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.code-event-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(211, 168, 91, 0.36);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(211, 168, 91, 0.08);
}

.code-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.code-expiry-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.code-display-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.code-value-big {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255, 90, 70, 0.36);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #ff6b55;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.copy-btn-card {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 119, 88, 0.6);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(201, 41, 28, 0.85), rgba(75, 11, 8, 0.92));
  color: #fff3ee;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.copy-btn-card:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(221, 55, 38, 0.95), rgba(100, 18, 14, 0.95));
  border-color: rgba(255, 119, 88, 0.85);
}

.copy-btn-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.copy-btn-card svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.code-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(179, 128, 91, 0.16);
}

.code-reward-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(211, 168, 91, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.code-item-chip img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.code-item-chip span {
  display: grid;
  gap: 2px;
}

.code-item-chip b {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

.code-item-chip small {
  color: var(--gold);
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.code-empty {
  display: grid;
  gap: 6px;
  padding: 18px 16px 20px;
  color: var(--muted);
}

.code-empty strong {
  color: #f0e4d3;
}

/* ── Winners Pagination ──────────────────────────────── */
.winners-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 8px;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(179, 128, 91, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted, #a09080);
  font-family: var(--font-display);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.page-btn:hover:not(:disabled) {
  background: rgba(179, 128, 91, 0.12);
  border-color: rgba(179, 128, 91, 0.45);
  color: var(--gold, #b3805b);
}

.page-btn.is-active {
  background: rgba(179, 128, 91, 0.18);
  border-color: rgba(179, 128, 91, 0.6);
  color: var(--gold, #b3805b);
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-prev,
.page-next {
  padding: 0 14px;
  font-size: 0.82rem;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: var(--text-muted, #a09080);
  font-size: 0.9rem;
}

/* ── Hero stats + recent ─────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(179, 128, 91, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
.hero-stat strong {
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold, #d7a86a);
}
.hero-stat span { font-size: 0.78rem; color: #d8cdbf; margin-top: 4px; }

.hero-recent { margin-top: 24px; max-width: 620px; }
.hero-recent-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b09a82;
  margin-bottom: 8px;
}
.hero-recent-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.78rem;
  color: #e9dfd1;
}
.hero-recent-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

/* Hero event avatars (current events) */
.hero-events-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-event-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 78px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-event-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(179, 128, 91, 0.45);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold, #d7a86a);
  transition: border-color 0.18s, transform 0.18s;
}
.hero-event-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-event-chip:hover .hero-event-avatar {
  border-color: var(--gold, #d7a86a);
  transform: translateY(-3px);
}
.hero-event-name {
  font-size: 0.72rem;
  line-height: 1.2;
  color: #e2d8ca;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Event tab avatar */
.tab-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-weight: 700;
  color: var(--gold, #d7a86a);
}
.tab-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Support / Customer service CTA ──────────────────── */
.support-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 15px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(225, 52, 34, 0.22), rgba(225, 52, 34, 0.06));
  border: 1px solid rgba(225, 52, 34, 0.55);
  box-shadow: 0 0 0 1px rgba(225, 52, 34, 0.15), 0 4px 18px rgba(225, 52, 34, 0.12);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.support-cta:hover {
  border-color: var(--red, #e13422);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(225, 52, 34, 0.3), 0 6px 22px rgba(225, 52, 34, 0.22);
}
.support-cta-icon { font-size: 1.6rem; line-height: 1; }
.support-cta-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.support-cta-text strong { color: #ffe9e4; font-size: 0.98rem; }
.support-cta-text small { color: #e0b3ab; font-size: 0.8rem; }
.support-cta-arrow { color: #ff6a58; font-size: 1.3rem; font-weight: 700; }

.support-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--gold, #b3805b);
  color: #1a1410;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: filter 0.15s;
}
.support-inline-btn:hover { filter: brightness(1.1); }

/* ── Delivery progress bar ───────────────────────────── */
.delivery-progress {
  margin: 4px 0 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(179, 128, 91, 0.22);
}
.dp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.84rem;
}
.dp-label { color: var(--text-muted, #a09080); }
.dp-count { color: #e9dfd1; }
.dp-count strong { color: #6cd06d; font-family: var(--font-display, "Chakra Petch", sans-serif); font-size: 1.05rem; }
.dp-bar {
  height: 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.dp-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #4ea64f, #6cd06d);
  transition: width 0.5s ease;
}

/* ── Share result button ─────────────────────────────── */
.share-result-btn {
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(179, 128, 91, 0.35);
  background: rgba(179, 128, 91, 0.1);
  color: var(--gold, #d7a86a);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.share-result-btn:hover { background: rgba(179, 128, 91, 0.2); }

/* ── Event extra: deadline + FB button ───────────────── */
.event-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}
.event-fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #1877f2;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s;
}
.event-fb-btn:hover { filter: brightness(1.12); }

.deadline-badge { display: inline-flex; }
.dl-live {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(224, 163, 49, 0.14);
  border: 1px solid rgba(224, 163, 49, 0.4);
  color: #e0a331;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dl-live.dl-urgent {
  background: rgba(225, 52, 34, 0.16);
  border-color: rgba(225, 52, 34, 0.5);
  color: #f06a5a;
  animation: dl-pulse 1.4s ease-in-out infinite;
}
@keyframes dl-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.dl-ended {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(120, 120, 120, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9a9490;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Reward groups (by category) ─────────────────────── */
.reward-group { margin-bottom: 16px; }
.reward-group-head {
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold, #d7a86a);
  padding: 4px 0 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(179, 128, 91, 0.25);
}

/* ── Event cover ─────────────────────────────────────── */
.event-cover-banner {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(179, 128, 91, 0.25);
  background: rgba(0, 0, 0, 0.3);
}
.event-cover-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
}
.activity-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── List head + CSV button ──────────────────────────── */
.list-head-right { display: inline-flex; align-items: center; gap: 12px; }
.csv-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(179, 128, 91, 0.35);
  background: rgba(179, 128, 91, 0.1);
  color: var(--gold, #d7a86a);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.csv-btn:hover { background: rgba(179, 128, 91, 0.2); }

/* ── Sortable headers ────────────────────────────────── */
.sortable-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable-table th.sortable:hover { color: var(--gold, #d7a86a); }
.sortable-table th .sort-ind { font-size: 0.7rem; color: var(--gold, #d7a86a); margin-left: 2px; }
.sortable-table th.is-sorted { color: var(--gold, #d7a86a); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 24px 32px;
  border-top: 1px solid rgba(179, 128, 91, 0.18);
  background: var(--bg);
}

.footer-logo {
  height: 52px;
  opacity: 0.88;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid rgba(179, 128, 91, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(241, 78, 49, 0.5);
}

.site-footer {
  flex-direction: column;
  gap: 0;
}

.copy-btn {
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 0.86rem;
}

.copy-btn svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.copy-btn:disabled {
  color: var(--dim);
  cursor: not-allowed;
  transform: none;
}

.note-panel {
  padding: 18px;
}

.note-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 7, 7, 0.92), #050606);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding: 30px 0;
}

.footer-brand span {
  font-size: 3.2rem;
}

.footer-brand small {
  font-size: 0.78rem;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #efe4d2;
  font-size: 1rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.copyright {
  margin: 0;
  padding: 18px;
  border-top: 1px solid rgba(179, 128, 91, 0.14);
  color: var(--dim);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 320px;
  padding: 12px 16px;
  color: #fff4e8;
  border: 1px solid rgba(255, 119, 88, 0.58);
  border-radius: 6px;
  background: rgba(72, 14, 10, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 24px;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: rgba(5, 6, 6, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .main-nav button {
    padding: 14px 0;
    border-bottom: 1px solid rgba(179, 128, 91, 0.14);
    text-align: left;
  }

  /* Show the UID-search entry inside the mobile menu, styled like the CTA */
  .site-header.is-open .mobile-uid-link {
    display: block;
    margin-top: 8px;
    padding: 13px 16px;
    text-align: center;
    background: linear-gradient(180deg, #e1342e, #a01f1a);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 6px;
  }
  .site-header.is-open .mobile-uid-link::after { display: none; }

  .winner-layout,
  .code-layout {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1320px);
  }

  .site-header {
    min-height: 68px;
    padding: 0 14px;
  }

  .site-header .brand {
    width: 86px;
    max-width: 86px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 auto;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.78rem, 8.4vw, 2.2rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero h1 span {
    display: block;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .brand-lockup span {
    font-size: 4rem;
  }

  .brand-lockup small {
    font-size: 0.76rem;
  }

  .brand-lockup {
    width: min(190px, 58vw);
  }

  .winner-main,
  .code-panel {
    min-width: 0;
  }

  .tabs {
    padding-bottom: 2px;
  }

  .tab-btn {
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .tab-btn svg {
    width: 16px;
    height: 16px;
  }

  .event-tab {
    min-width: max-content;
    min-height: 60px;
    padding: 10px 14px 13px;
  }

  .tab-strip-head {
    display: grid;
    padding: 12px 14px;
  }

  .tab-strip-head span {
    font-size: 0.84rem;
  }

  .checker-head,
  .reward-result {
    grid-template-columns: 1fr;
  }

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

  .checker-head {
    display: grid;
  }

  .result-status {
    justify-items: start;
  }

  .section-heading h2 {
    overflow-wrap: anywhere;
  }

  .section-heading p {
    line-height: 1.7;
  }

  .hero-actions,
  .section-heading.split {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .text-link {
    width: 100%;
  }

  th,
  td {
    padding: 11px 12px;
  }

  .activity-card {
    grid-template-columns: 1fr;
  }

  .activity-art {
    min-height: 150px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* UID Lookup Page */

.uid-main-input {
  max-width: 560px;
  min-height: 56px;
  margin-bottom: 28px;
  border-color: rgba(207, 172, 112, 0.5);
  font-size: 1.1rem;
}

.uid-main-input svg {
  width: 22px;
  stroke: var(--gold);
}

.uid-main-input input {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.uid-lookup-result {
  max-width: 960px;
}

.uid-lookup-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px 20px;
  border: 1px solid rgba(211, 168, 91, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.uid-lookup-summary div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uid-lookup-summary strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.uid-lookup-summary span {
  color: var(--muted);
  font-size: 0.95rem;
}

.uid-summary-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid rgba(211, 168, 91, 0.44);
  border-radius: 20px;
  color: var(--gold) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem !important;
  background: rgba(211, 168, 91, 0.1);
}

.uid-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.uid-event-card {
  padding: 18px;
  border: 1px solid rgba(179, 128, 91, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 10px;
}

.uid-event-card h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
  line-height: 1.3;
}

.uid-event-card.is-found {
  border-color: rgba(108, 196, 109, 0.3);
  background: rgba(79, 145, 69, 0.07);
}

.uid-event-card.has-problem {
  border-color: rgba(225, 52, 34, 0.36);
  background: rgba(225, 52, 34, 0.06);
}

.uid-event-card.not-found {
  opacity: 0.42;
}

.uid-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.uid-event-num {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uid-no-reward {
  font-size: 0.78rem;
  color: var(--dim);
  font-weight: 700;
}

.uid-reward-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uid-reward-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.uid-reward-text {
  display: grid;
  gap: 3px;
}

.uid-reward-text b {
  font-size: 0.95rem;
  color: var(--text);
}

.uid-reward-text small {
  font-size: 0.8rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}

.uid-note {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(225, 52, 34, 0.36);
  background: rgba(225, 52, 34, 0.1);
  color: #e47b6f;
  font-size: 0.82rem;
  font-weight: 700;
}

.uid-period {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .uid-event-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating claim button */

.claim-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 119, 88, 0.6);
  border-radius: 40px;
  background: linear-gradient(135deg, #c9291c 0%, #7a1410 100%);
  color: #fff3ee;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(200, 40, 24, 0.5), 0 0 0 0 rgba(200, 40, 24, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
  animation: claim-pulse 2.4s ease-in-out infinite;
}

.claim-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(200, 40, 24, 0.62);
  animation: none;
}

.claim-float svg {
  width: 18px;
  flex-shrink: 0;
}

@keyframes claim-pulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(200, 40, 24, 0.5), 0 0 0 0 rgba(200, 40, 24, 0.3); }
  50% { box-shadow: 0 6px 28px rgba(200, 40, 24, 0.5), 0 0 0 8px rgba(200, 40, 24, 0); }
}

/* Inline claim button (in section headings) */

.claim-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .claim-float span {
    display: none;
  }

  .claim-float {
    padding: 13px 14px;
    border-radius: 50%;
  }

  .code-cards-grid {
    grid-template-columns: 1fr;
  }
}
