@charset "UTF-8";
/* Viewport adaptation variables */
:root {
  --vw: 0.5px; /* Default for PC/desktop pages so that doubled coordinates 2*X evaluate back to Xpx */
  --ink: #000;
  --line: #ddd;
}

body[data-page=vote],
body[data-page=landing],
body[data-page=lottery],
body[data-page=results],
body[data-page=stats] {
  --vw: calc(1vw / 7.5); /* Reference design width is 750px */
}

@media (min-width: 430px) {
  body[data-page=vote],
  body[data-page=landing],
  body[data-page=lottery],
  body[data-page=results],
  body[data-page=stats] {
    --vw: 0.57333px; /* 430 / 750, caps scaling at 430px width */
  }
}
/* Reset & Global */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
}

html {
  overflow-y: auto;
}

body {
  position: static;
  max-width: none;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08), transparent 35%), radial-gradient(circle at 100% 0%, rgba(220, 38, 38, 0.08), transparent 35%), radial-gradient(circle at 50% 100%, rgba(234, 179, 8, 0.07), transparent 45%), var(--page);
  transition: background 0.3s ease;
}

a {
  color: inherit;
}

/* Layout Shells */
.shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(24 * var(--vw));
  margin-bottom: calc(48 * var(--vw));
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: calc(20 * var(--vw));
  font-size: calc(28 * var(--vw));
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.01em;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: calc(64 * var(--vw));
  height: calc(64 * var(--vw));
  filter: drop-shadow(0 calc(6 * var(--vw)) calc(12 * var(--vw)) rgba(37, 99, 235, 0.15));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.08);
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: calc(64 * var(--vw));
  height: calc(64 * var(--vw));
  border-radius: calc(20 * var(--vw));
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 calc(8 * var(--vw)) calc(20 * var(--vw)) rgba(15, 23, 42, 0.15);
}

.nav {
  display: flex;
  flex: 0 0 auto;
  gap: calc(16 * var(--vw));
}

.nav a,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(80 * var(--vw));
  padding: 0 calc(32 * var(--vw));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: calc(28 * var(--vw));
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px calc(8 * var(--vw)) rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover,
.button:hover,
button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.nav a:active,
.button:active,
button:active {
  transform: translateY(0) scale(0.98);
}

.button.primary,
button.primary {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 calc(8 * var(--vw)) calc(28 * var(--vw)) color-mix(in srgb, var(--accent) 25%, transparent);
}

.button.primary:hover,
button.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 calc(12 * var(--vw)) calc(36 * var(--vw)) color-mix(in srgb, var(--accent) 35%, transparent);
}

.button.ghost,
button.ghost {
  background: transparent;
  border-color: var(--line);
}

.button.warn,
button.warn {
  border: none;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #fff;
  box-shadow: 0 calc(8 * var(--vw)) calc(28 * var(--vw)) rgba(239, 68, 68, 0.25);
}

.button.warn:hover,
button.warn:hover {
  filter: brightness(1.08);
  box-shadow: 0 calc(12 * var(--vw)) calc(36 * var(--vw)) rgba(239, 68, 68, 0.35);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Titles & Heros */
.hero-copy h1,
.page-title h1 {
  margin: 0;
  font-size: calc(68 * var(--vw));
  line-height: 1.1;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink), #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p,
.page-title p {
  margin: calc(24 * var(--vw)) 0 0;
  color: var(--muted);
  font-size: calc(30 * var(--vw));
  line-height: 1.6;
  font-weight: 400;
}

/* Panels */
.qr-panel,
.panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(calc(40 * var(--vw)));
  -webkit-backdrop-filter: blur(calc(40 * var(--vw)));
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: calc(40 * var(--vw));
}

.qr-panel {
  margin-top: calc(48 * var(--vw));
}

.qr-box {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 0 2px calc(16 * var(--vw)) rgba(15, 23, 42, 0.02);
  overflow: hidden;
  padding: calc(32 * var(--vw));
}

.qr-box img {
  width: 100%;
  max-width: calc(520 * var(--vw));
  height: auto;
}

.qr-url {
  margin-top: calc(28 * var(--vw));
  padding: calc(24 * var(--vw));
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.03);
  color: var(--muted);
  font-size: calc(24 * var(--vw));
  font-family: monospace;
  line-height: 1.5;
  word-break: break-all;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.02);
}

.entry-panel {
  display: grid;
  gap: calc(28 * var(--vw));
  margin-top: calc(48 * var(--vw));
  justify-items: center;
  text-align: center;
}

.entry-icon {
  display: grid;
  place-items: center;
  width: calc(112 * var(--vw));
  height: calc(112 * var(--vw));
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: calc(52 * var(--vw));
  font-weight: 900;
  box-shadow: 0 calc(16 * var(--vw)) calc(40 * var(--vw)) rgba(16, 185, 129, 0.3);
}

.entry-panel .button {
  width: 100%;
  min-height: calc(96 * var(--vw));
  margin-top: calc(16 * var(--vw));
  font-size: calc(32 * var(--vw));
  border-radius: var(--radius-sm);
}

/* Match Strip */
.match-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: calc(24 * var(--vw));
  align-items: center;
  margin: calc(48 * var(--vw)) 0;
}

.team-flag {
  min-height: calc(240 * var(--vw));
  padding: calc(32 * var(--vw));
  border-radius: var(--radius-md);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-flag span {
  font-size: calc(24 * var(--vw));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.team-flag strong {
  display: block;
  font-size: calc(48 * var(--vw));
  line-height: 1.2;
  font-weight: 900;
  font-family: "Outfit", sans-serif;
}

.vs {
  display: grid;
  place-items: center;
  width: calc(88 * var(--vw));
  height: calc(88 * var(--vw));
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
  font-size: calc(28 * var(--vw));
  font-family: "Outfit", sans-serif;
  box-shadow: 0 calc(8 * var(--vw)) calc(20 * var(--vw)) rgba(15, 23, 42, 0.08);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: calc(64 * var(--vw));
  padding: 0 calc(28 * var(--vw));
  border-radius: calc(1998 * var(--vw));
  background: #ecfdf5;
  color: #047857;
  font-size: calc(26 * var(--vw));
  font-weight: 700;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status.muted {
  background: #f1f5f9;
  color: var(--muted);
  border-color: rgba(226, 232, 240, 0.6);
}

/* Actions and Test Note */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(24 * var(--vw));
  margin-top: calc(40 * var(--vw));
}

body[data-page=vote] [data-notify-panel] .actions,
.mobile-dialog .actions {
  display: grid;
  grid-template-columns: 1fr;
}

body[data-page=vote] [data-notify-panel] ion-button,
.mobile-dialog ion-button {
  width: 100%;
  min-height: calc(96 * var(--vw));
}

body[data-page=vote] > .shell > .actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(20 * var(--vw));
  margin: 0;
  padding: calc(32 * var(--vw)) calc(32 * var(--vw)) calc(calc(32 * var(--vw)) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(calc(40 * var(--vw)));
  -webkit-backdrop-filter: blur(calc(40 * var(--vw)));
  box-shadow: 0 calc(-20 * var(--vw)) calc(60 * var(--vw)) rgba(15, 23, 42, 0.05);
}

body[data-page=vote] > .shell > .actions button {
  width: 100%;
  min-height: calc(100 * var(--vw));
  font-size: calc(32 * var(--vw));
  border-radius: var(--radius-sm);
}

body[data-page=vote] > .shell > .actions .status {
  justify-content: center;
  min-height: calc(72 * var(--vw));
}

.test-note {
  margin: calc(28 * var(--vw)) 0 0;
  padding: calc(24 * var(--vw)) calc(28 * var(--vw));
  border: 1px dashed #f59e0b;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  color: #92400e;
  font-size: calc(26 * var(--vw));
  font-weight: 600;
  line-height: 1.5;
}

/* Feedback Layer & Loading & Toast */
.feedback-layer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.loading-mask {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(48 * var(--vw));
  background: rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(calc(8 * var(--vw)));
  -webkit-backdrop-filter: blur(calc(8 * var(--vw)));
  pointer-events: auto;
}

.loading-box {
  display: inline-flex;
  align-items: center;
  gap: calc(24 * var(--vw));
  min-height: calc(100 * var(--vw));
  max-width: min(calc(640 * var(--vw)), 100vw - calc(96 * var(--vw)));
  padding: 0 calc(40 * var(--vw));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(calc(20 * var(--vw)));
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: calc(28 * var(--vw));
  font-weight: 700;
}

.loading-spinner {
  width: calc(40 * var(--vw));
  height: calc(40 * var(--vw));
  border: 2px solid #cbd5e1;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  width: fit-content;
  max-width: min(calc(640 * var(--vw)), 100vw - calc(96 * var(--vw)));
  min-height: calc(92 * var(--vw));
  padding: calc(24 * var(--vw)) calc(40 * var(--vw));
  transform: translate(-50%, calc(-50% + calc(20 * var(--vw))));
  border: 1px solid #979797;
  border-radius: calc(45 * var(--vw));
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(calc(20 * var(--vw)));
  color: #fff;
  opacity: 0;
  box-shadow: var(--shadow-lg);
  font-size: calc(28 * var(--vw));
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.is-visible {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.toast[data-variant=success] {
  /* Inherit uniform semi-transparent black styling */
}

.toast[data-variant=error] {
  /* Inherit uniform semi-transparent black styling */
}

.loading-mask[hidden],
.toast[hidden] {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Dialogs & Ionic Native Overrides */
ion-button {
  --border-radius: var(--radius-sm);
  margin: 0;
  min-height: calc(96 * var(--vw));
  font-weight: 700;
  font-size: calc(30 * var(--vw));
  text-transform: none;
  --box-shadow: 0 calc(8 * var(--vw)) calc(24 * var(--vw)) rgba(37, 99, 235, 0.2);
  --border-radius: calc(50 * var(--vw));
  outline: none;
}

ion-button[data-recipient-confirm],
ion-button[data-notify-prompt-cancel],
ion-button[data-notify-prompt-confirm],
ion-button[data-recipient-cancel] {
  border-width: 0;
}

ion-button[data-wechat-notify-confirm],
ion-button[data-notify-prompt-confirm],
ion-button[data-recipient-confirm],
ion-button[data-phone-confirm] {
  --background: linear-gradient(180deg, #42cc78 0%, #00a461 100%);
  --box-shadow: 0 calc(4 * var(--vw)) calc(8 * var(--vw)) 0 #b9dfc1;
  --border-radius: calc(50 * var(--vw));
}

ion-input {
  --background: #fff;
  --border-color: var(--line);
  --border-radius: var(--radius-sm);
  --border-style: solid;
  --border-width: 1.5px;
  --color: var(--ink);
  --highlight-color-focused: var(--accent);
  margin-top: calc(28 * var(--vw));
  min-height: calc(112 * var(--vw));
  --padding-start: calc(28 * var(--vw));
  --padding-end: calc(28 * var(--vw));
  font-size: calc(32 * var(--vw));
  font-weight: 600;
}

ion-modal {
  --width: min(100%, 430px);
  --height: auto;
  --border-radius: calc(40 * var(--vw)) calc(40 * var(--vw)) 0 0;
  --box-shadow: 0 calc(-24 * var(--vw)) calc(72 * var(--vw)) rgba(15, 23, 42, 0.15);
  --align-items: flex-end;
  --vertical-align: bottom;
  align-items: flex-end;
}

/* Force container inside modal to be bottom-aligned on older browsers */
ion-modal .ion-page,
ion-modal .ion-delegate-host,
ion-modal [class*=ion-page],
ion-modal [class*=ion-delegate-host] {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  height: 100% !important;
  background: transparent !important;
}

.mobile-dialog {
  width: 100%;
  padding: calc(48 * var(--vw)) calc(40 * var(--vw)) calc(calc(40 * var(--vw)) + env(safe-area-inset-bottom));
  background: #fff;
  margin-top: auto; /* Fallback: Push dialog to the bottom of flex container */
}

.mobile-dialog h2 {
  margin: 0 0 calc(20 * var(--vw));
  font-size: calc(44 * var(--vw));
  line-height: 1.2;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(20 * var(--vw));
  margin-top: calc(40 * var(--vw));
}

.field-error {
  margin: calc(16 * var(--vw)) 0 0;
  color: var(--danger);
  font-size: calc(26 * var(--vw));
  font-weight: 700;
}

/* Stats Board & Normal Stats Elements */
.stats-board {
  display: grid;
  gap: calc(40 * var(--vw));
}

.stat-row {
  display: grid;
  gap: calc(16 * var(--vw));
}

.stat-row strong {
  font-size: calc(36 * var(--vw));
  font-weight: 700;
}

.bar {
  position: relative;
  height: calc(56 * var(--vw));
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--accent);
}

.count {
  font-size: calc(48 * var(--vw));
  font-weight: 800;
  font-family: "Outfit", sans-serif;
}

.total {
  font-size: calc(160 * var(--vw));
  line-height: 1;
  font-weight: 900;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.04em;
}

.form {
  display: grid;
  gap: calc(32 * var(--vw));
}

label {
  display: grid;
  gap: calc(16 * var(--vw));
  color: var(--muted);
  font-size: calc(28 * var(--vw));
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: calc(96 * var(--vw));
  padding: 0 calc(32 * var(--vw));
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: calc(32 * var(--vw));
  font-weight: 500;
  box-shadow: 0 2px calc(8 * var(--vw)) rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
}

textarea {
  min-height: calc(176 * var(--vw));
  padding-top: calc(24 * var(--vw));
  padding-bottom: calc(24 * var(--vw));
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 calc(6 * var(--vw)) color-mix(in srgb, var(--accent) 15%, transparent);
}

input:disabled,
textarea:disabled {
  background: #f8fafc;
  color: var(--muted);
  cursor: not-allowed;
}

.winner-list {
  display: grid;
  gap: calc(24 * var(--vw));
  margin-top: calc(40 * var(--vw));
}

.winner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: calc(28 * var(--vw));
  padding: calc(32 * var(--vw));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 calc(8 * var(--vw)) calc(24 * var(--vw)) rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
}

.winner:hover {
  transform: translateY(-1px);
  box-shadow: 0 calc(12 * var(--vw)) calc(32 * var(--vw)) rgba(15, 23, 42, 0.04);
}

.notice {
  margin-top: calc(24 * var(--vw));
  color: var(--muted);
  line-height: 1.6;
  font-size: calc(28 * var(--vw));
}

.notice.compact {
  margin-top: calc(8 * var(--vw));
  font-size: calc(26 * var(--vw));
}

body[data-page=vote] .shell {
  position: relative;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(calc(100 * var(--vw)) + env(safe-area-inset-bottom));
  background-color: #04140B;
}

body[data-page=vote] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
body[data-page=vote] .hero {
  position: relative;
  height: calc(400 * var(--vw));
  background-image: url(../images/vote/banner2.png);
  background-size: cover;
}
body[data-page=vote] .ticket-body-2 {
  padding: 0 calc(26 * var(--vw));
}

/* Vote Grid & Team Card */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0px;
}
.grid .team-card:first-child {
  margin-right: calc(-35 * var(--vw));
}
.grid .team-card:last-child {
  margin-left: calc(-35 * var(--vw));
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: calc(434 * var(--vw));
  padding: calc(40 * var(--vw)) calc(16 * var(--vw)) calc(100 * var(--vw));
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  border: none;
  background-color: transparent;
}

/* Hover & Selected States */
.team-card:hover {
  transform: translateY(calc(-4 * var(--vw)));
}

.team-card.selected {
  transform: translateY(calc(-12 * var(--vw)));
}

/* Argentina (Team A) Card Styles with Background Image */
.team-card[data-team-card=A] {
  background-image: url("../images/vote/red-box.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-card[data-team-card=A] {
    background-image: url("../images/vote/red-box@2x.png");
  }
}
/* Spain (Team B) Card Styles with Background Image */
.team-card[data-team-card=B] {
  background-image: url("../images/vote/blue-box.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-card[data-team-card=B] {
    background-image: url("../images/vote/blue-box@2x.png");
  }
}
/* Checkbox Indicator at Bottom Center */
.team-card::after {
  content: "";
  position: absolute;
  bottom: calc(30 * var(--vw));
  left: 50%;
  transform: translateX(-50%);
  width: calc(50 * var(--vw));
  height: calc(50 * var(--vw));
  background-image: url("../images/vote/unselected.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  background-color: transparent;
  transition: transform 0.2s ease;
  z-index: 5;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-card::after {
    background-image: url("../images/vote/unselected@2x.png");
  }
}
.team-card.selected::after {
  background-image: url("../images/vote/selected.png");
  border: none;
  background-color: transparent;
  box-shadow: none;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-card.selected::after {
    background-image: url("../images/vote/selected@2x.png");
  }
}
/* Team Circular Badge */
.team-badge {
  width: calc(128 * var(--vw));
  height: auto;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #FFF;
  transition: transform 0.25s ease;
  z-index: 3;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card.selected .team-badge {
  transform: scale(1.04);
}

.team-card h2 {
  margin: calc(16 * var(--vw)) 0 calc(6 * var(--vw));
  font-size: calc(36 * var(--vw));
  line-height: 1.2;
  font-weight: 800;
  color: #1E293B;
  font-family: "Outfit", sans-serif;
  z-index: 3;
}

.team-card .notice {
  margin: 0;
  font-size: calc(26 * var(--vw));
  line-height: 1.4;
  color: #64748B;
  font-weight: 400;
  z-index: 3;
  white-space: nowrap;
}

/* Notification Desc in Footer */
.notify-desc {
  margin: 0;
  font-size: calc(24 * var(--vw));
  color: #64748B;
  text-align: center;
  font-weight: 400;
  line-height: calc(36 * var(--vw));
}

/* Recipient and Dialog Styles */
.recipient-form {
  margin-top: calc(28 * var(--vw));
  gap: calc(24 * var(--vw));
}

.recipient-form label {
  font-size: calc(26 * var(--vw));
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: calc(16 * var(--vw));
  margin-top: calc(32 * var(--vw));
}

/* =========================================
   TICKET CARD / LANDING REDESIGN STYLES
   ========================================= */
body[data-page=landing],
body[data-page=vote],
body[data-page=stats],
body[data-page=results] {
  background-color: #04140B;
}
body[data-page=landing] .shell,
body[data-page=vote] .shell,
body[data-page=stats] .shell,
body[data-page=results] .shell {
  position: relative;
}
body[data-page=landing] .hero,
body[data-page=vote] .hero,
body[data-page=stats] .hero,
body[data-page=results] .hero {
  position: relative;
  height: calc(400 * var(--vw));
  background-image: url(../images/landing/banner.png);
  background-size: cover;
}

.badge-tag {
  position: absolute;
  top: calc(26 * var(--vw));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: calc(20 * var(--vw));
  color: #FFFFFF;
  line-height: calc(28 * var(--vw));
  text-align: left;
  font-style: normal;
  padding: calc(8 * var(--vw)) calc(14 * var(--vw));
  background: rgba(159, 255, 197, 0.23);
  border-radius: calc(22 * var(--vw));
}

.landing-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: calc(277 * var(--vw));
  background-image: url(../images/landing/landing-bg.png);
  background-size: cover;
}

.ticket-card-wrapper {
  margin: 0 calc(42 * var(--vw));
  position: relative;
  margin-top: calc(40 * var(--vw));
}

.ticket-card {
  background: #FFFFFF;
  box-shadow: 0px calc(4 * var(--vw)) calc(12 * var(--vw)) 0px rgba(0, 0, 0, 0.23);
  border-radius: calc(32 * var(--vw));
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: all 0.3s ease;
}
.ticket-card:hover {
  box-shadow: 0 calc(48 * var(--vw)) calc(120 * var(--vw)) rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
}

.ticket-card::before {
  left: calc(-18 * var(--vw));
  box-shadow: inset calc(-6 * var(--vw)) 0 calc(10 * var(--vw)) rgba(15, 23, 42, 0.02);
}

.ticket-card::after {
  right: calc(-18 * var(--vw));
  box-shadow: inset calc(6 * var(--vw)) 0 calc(10 * var(--vw)) rgba(15, 23, 42, 0.02);
}

.ticket-header {
  padding: calc(24 * var(--vw)) calc(40 * var(--vw)) calc(24 * var(--vw));
  position: relative;
  text-align: center;
}

.ticket-body-decor {
  position: absolute;
  width: 95%;
  height: calc(634 * var(--vw));
  background: #00AB65;
  border-radius: calc(24 * var(--vw));
  transform: translateX(-50%) rotate(-4deg);
  left: 53%;
  bottom: calc(-5 * var(--vw));
  z-index: 1;
  pointer-events: none;
}

.ticket-badge {
  display: inline-block;
  width: calc(213 * var(--vw));
  height: calc(34 * var(--vw));
  margin-bottom: calc(24 * var(--vw));
  background-image: url(../images/landing/FINAL2026@2x.png);
  background-size: cover;
}

.ticket-header h2 {
  color: var(--ink);
  font-weight: 600;
  font-size: calc(40 * var(--vw));
  line-height: calc(40 * var(--vw));
  font-style: normal;
  color: #00A05F;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--vw));
  margin-top: 0;
}
.ticket-header h2::before {
  content: "";
  display: inline-block;
  width: calc(58 * var(--vw));
  height: calc(48 * var(--vw));
  background-image: url(../images/landing/title-decor-left.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.ticket-header h2::after {
  content: "";
  display: inline-block;
  width: calc(58 * var(--vw));
  height: calc(48 * var(--vw));
  background-image: url(../images/landing/title-decor-right.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.ticket-body {
  display: grid;
  gap: calc(26 * var(--vw));
  margin: 0 calc(37 * var(--vw));
  padding: calc(31 * var(--vw)) calc(24 * var(--vw)) calc(45 * var(--vw));
  background: #E5FFEC;
  border-radius: calc(21 * var(--vw));
}

.step-item {
  display: flex;
  gap: calc(32 * var(--vw));
  align-items: flex-start;
}

.step-num {
  width: calc(106 * var(--vw));
  height: calc(50 * var(--vw));
  flex-shrink: 0;
  margin-left: calc(-38 * var(--vw));
  margin-top: calc(17 * var(--vw));
}

.step-text {
  min-width: 0;
}

.step-text strong {
  display: block;
  margin-bottom: calc(9 * var(--vw));
  font-weight: 600;
  font-size: calc(30 * var(--vw));
  color: #03180F;
  line-height: calc(42 * var(--vw));
  text-align: left;
  font-style: normal;
}

.step-text p {
  margin: 0;
  font-weight: 400;
  font-size: calc(26 * var(--vw));
  color: #3C5249;
  line-height: calc(36 * var(--vw));
  text-align: left;
  font-style: normal;
}

.ticket-footer {
  padding: calc(32 * var(--vw)) calc(40 * var(--vw)) calc(48 * var(--vw));
  display: grid;
  justify-items: center;
  gap: calc(28 * var(--vw));
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(452 * var(--vw));
  height: calc(80 * var(--vw));
  background: linear-gradient(180deg, #42CC78 0%, #00A461 100%);
  box-shadow: 0px calc(4 * var(--vw)) calc(8 * var(--vw)) 0px #B9DFC1;
  border-radius: calc(40 * var(--vw));
  font-weight: 500;
  font-size: calc(32 * var(--vw));
  color: #FFFFFF;
  line-height: calc(45 * var(--vw));
  font-style: normal;
  text-decoration: none;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 calc(24 * var(--vw)) calc(60 * var(--vw)) color-mix(in srgb, var(--accent) 45%, transparent);
  filter: brightness(1.08);
}

.auth-btn:active {
  transform: translateY(0) scale(0.98);
}

.auth-btn .btn-arrow {
  margin-left: calc(16 * var(--vw));
  font-weight: 950;
  transition: transform 0.2s ease;
}

.auth-btn:hover .btn-arrow {
  transform: translateX(calc(8 * var(--vw)));
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--vw));
  font-size: calc(24 * var(--vw));
  color: var(--muted);
  font-weight: 600;
}

.error-notice {
  margin-top: calc(28 * var(--vw));
  color: var(--danger);
  font-weight: 700;
  text-align: center;
}

.sponsor-logo {
  position: fixed;
  bottom: calc(28 * var(--vw));
  left: calc(24 * var(--vw));
  width: calc(132 * var(--vw));
  height: calc(176 * var(--vw));
  background-image: url("../images/landing/sponsor-logo.png");
  background-size: cover;
  z-index: 100;
}

.cue-ball-decoration {
  position: fixed;
  top: 50%;
  right: 0;
  width: calc(98 * var(--vw));
  height: calc(98 * var(--vw));
  background-image: url("../images/landing/cue-ball-decoration.png");
  background-size: cover;
  z-index: 100;
}

.bottom-notice {
  margin-top: calc(43 * var(--vw));
  padding-bottom: calc(18 * var(--vw));
  text-align: center;
  position: relative;
  z-index: 2;
}
.bottom-notice p {
  text-align: center;
  margin: 0;
  font-weight: 400;
  font-size: calc(20 * var(--vw));
  color: rgba(255, 255, 255, 0.31);
  line-height: calc(30 * var(--vw));
  font-style: normal;
}

body[data-page=stats] .shell {
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(0 + env(safe-area-inset-bottom));
}

body[data-page=stats] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
body[data-page=stats] .hero {
  position: relative;
  height: calc(400 * var(--vw));
  background-image: url(../images/stats/banner3.png);
  background-size: cover;
}
body[data-page=stats] .ticket-body {
  background-color: #fff;
}
body[data-page=stats] .lead-number {
  font-size: calc(48 * var(--vw));
  color: #00AA65;
  padding: 0 calc(5 * var(--vw));
}

/* Versus 3-Column Layout */
.versus-board {
  display: grid;
  grid-template-columns: 1fr calc(140 * var(--vw)) 1fr;
  align-items: flex-end;
  gap: calc(16 * var(--vw));
  width: 100%;
  padding: 0 10%;
}

.versus-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Number display at the top of the columns */
.count-header {
  margin-bottom: calc(24 * var(--vw));
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.count-header .count-val {
  font-size: calc(56 * var(--vw));
  line-height: 1;
}

.team-a-column .count-val {
  color: #FF4B55;
}

.team-b-column .count-val {
  color: #2176FF;
}

/* Pillar container and tracks */
.pillar-container {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative; /* Context for absolute base positioning */
}
.pillar-container::before {
  content: "";
  position: absolute;
  bottom: calc(-10 * var(--vw));
  left: 50%;
  transform: translateX(-50%);
  width: calc(84 * var(--vw));
  height: calc(20 * var(--vw));
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(0px);
  pointer-events: none;
  z-index: 1;
}

.team-a-column .pillar-container::before {
  background: rgba(253, 67, 68, 0.28);
}

.team-b-column .pillar-container::before {
  background: rgba(33, 118, 255, 0.28);
}

.pillar-track {
  width: calc(56 * var(--vw));
  height: calc(380 * var(--vw));
  border-radius: calc(12 * var(--vw)) calc(12 * var(--vw)) 0px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible; /* Allows percent-badge to float outside the pillar */
  background: rgba(15, 23, 42, 0.03);
  box-shadow: inset 0 2px calc(10 * var(--vw)) rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 2;
}

.team-a-column .pillar-track {
  background: linear-gradient(180deg, rgba(255, 75, 85, 0.04) 0%, rgba(255, 75, 85, 0.12) 100%);
}

.team-b-column .pillar-track {
  background: linear-gradient(180deg, rgba(33, 118, 255, 0.04) 0%, rgba(33, 118, 255, 0.12) 100%);
}

/* Pillar fill */
.pillar-fill {
  width: 100%;
  border-radius: calc(12 * var(--vw)) calc(12 * var(--vw)) 0px 0px;
  position: relative; /* Context for absolute positioned badges */
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: calc(12 * var(--vw)); /* Rounded corners fallback for 0% */
}

.team-a-column .pillar-fill {
  background: linear-gradient(180deg, #FF2E2E 0%, rgba(255, 46, 46, 0.18) 100%) !important;
  box-shadow: 0 calc(4 * var(--vw)) calc(16 * var(--vw)) rgba(255, 46, 46, 0.1);
}

.team-b-column .pillar-fill {
  background: linear-gradient(180deg, #2176FF 0%, rgba(33, 118, 255, 0.18) 100%) !important;
  box-shadow: 0 calc(4 * var(--vw)) calc(16 * var(--vw)) rgba(33, 118, 255, 0.1);
}

/* Floating percent badges */
.percent-badge {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  padding: 2px calc(6 * var(--vw));
  border-radius: calc(12 * var(--vw));
  font-size: calc(22 * var(--vw));
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 calc(6 * var(--vw)) calc(18 * var(--vw)) rgba(15, 23, 42, 0.08);
}

.team-a-column .percent-badge {
  right: calc(76 * var(--vw)); /* Sits on the left side of the pillar */
  color: #FF4B55;
  border: 2px solid #FF4B55;
  background: #FFF0F1;
  /* Badge arrow indicator */
}
.team-a-column .percent-badge::after {
  content: "";
  position: absolute;
  right: calc(-10 * var(--vw));
  top: 50%;
  transform: translateY(-50%);
  border-width: calc(6 * var(--vw)) 0 calc(6 * var(--vw)) calc(10 * var(--vw));
  border-style: solid;
  border-color: transparent transparent transparent #FF4B55;
}

.team-b-column .percent-badge {
  left: calc(76 * var(--vw)); /* Sits on the right side of the pillar */
  color: #2176FF;
  border: 2px solid #2176FF;
  background: #EEF4FF;
  /* Badge arrow indicator */
}
.team-b-column .percent-badge::after {
  content: "";
  position: absolute;
  left: calc(-10 * var(--vw));
  top: 50%;
  transform: translateY(-50%);
  border-width: calc(6 * var(--vw)) calc(10 * var(--vw)) calc(6 * var(--vw)) 0;
  border-style: solid;
  border-color: transparent #2176FF transparent transparent;
}

/* Center Column (Total and VS Logo) */
.versus-center-column {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-bottom: calc(24 * var(--vw));
}

.total-header {
  text-align: center;
  margin-top: calc(-10 * var(--vw));
}
.total-header .total-val {
  display: block;
  font-size: calc(72 * var(--vw));
  font-weight: 900;
  color: #1E293B;
  line-height: 1;
}
.total-header .total-label {
  display: block;
  margin-top: calc(6 * var(--vw));
  font-size: calc(22 * var(--vw));
  color: #64748B;
  font-weight: 500;
}

.vs-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: calc(40 * var(--vw));
}
.vs-logo-container .vs-logo {
  width: calc(140 * var(--vw));
  height: auto;
  object-fit: contain;
}

/* Bottom Flags and Names */
.team-footer {
  margin-top: calc(36 * var(--vw));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--vw));
  justify-content: center;
}

.versus-column .team-badge {
  width: calc(56 * var(--vw));
  height: auto;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 calc(4 * var(--vw)) calc(10 * var(--vw)) rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: calc(24 * var(--vw));
  font-weight: 800;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.versus-column .team-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.versus-column .team-name {
  font-size: calc(28 * var(--vw));
  font-weight: 700;
  color: #1E293B;
}

/* Leading banner in footer */
.leader-banner {
  background: #E5FFEC;
  border-radius: calc(16 * var(--vw));
  padding: calc(18 * var(--vw)) calc(24 * var(--vw));
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(72 * var(--vw));
}
.leader-banner span {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 400;
  font-size: calc(30 * var(--vw));
  color: #03180F;
  line-height: calc(42 * var(--vw));
  text-align: left;
  font-style: normal;
}

/* =========================================
   SCREEN PAGE (现场大屏 - 现代化浅色极致清爽风格)
   ========================================= */
body[data-page=screen] {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.screen-shell {
  width: min(1200px, 100% - calc(128 * var(--vw)));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.screen-hero {
  display: grid;
  grid-template-columns: 1.2fr calc(800 * var(--vw));
  gap: calc(128 * var(--vw));
  align-items: center;
  width: 100%;
}

.screen-kicker {
  margin: 0 0 calc(40 * var(--vw));
  font-size: calc(52 * var(--vw));
  font-weight: 900;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.screen-hero h1 {
  margin: 0;
  font-size: clamp(calc(96 * var(--vw)), 6vw, calc(168 * var(--vw)));
  line-height: 1.05;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink) 40%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.screen-hero p {
  margin-top: calc(48 * var(--vw));
  color: var(--muted);
  font-size: calc(44 * var(--vw));
  line-height: 1.6;
}

.screen-qr-panel {
  padding: calc(64 * var(--vw));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(calc(48 * var(--vw)));
  -webkit-backdrop-filter: blur(calc(48 * var(--vw)));
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(40 * var(--vw));
  position: relative;
  overflow: hidden;
}

/* Screen scan animation bar */
.screen-qr-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(8 * var(--vw));
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan-line 4s linear infinite;
  box-shadow: 0 0 calc(24 * var(--vw)) var(--accent);
}

.screen-qr-panel .qr-box {
  padding: calc(32 * var(--vw));
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 calc(24 * var(--vw)) calc(56 * var(--vw)) rgba(15, 23, 42, 0.08);
  width: 560px;
  height: 560px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.screen-qr-panel .qr-box img {
  width: 100%;
  height: auto;
}

.screen-qr-panel .qr-url {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
  color: var(--accent);
  font-family: monospace;
  padding: calc(24 * var(--vw)) calc(32 * var(--vw));
  border-radius: var(--radius-sm);
  font-size: calc(26 * var(--vw));
  text-align: center;
  word-break: break-all;
  width: 100%;
}

/* =========================================
   DISPLAY STRIP PAGE (1792 x 153.6 大屏横条)
   ========================================= */
body[data-page=display-strip] {
  --vw: calc(1vw / 19.2); /* Reference design width is 1920px */
  display: grid;
  place-items: center;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: #000000;
}

.display-strip-shell {
  position: relative;
  width: calc(1920 * var(--vw));
  height: calc(150 * var(--vw));
  background-image: url(../images/display-strip/背景.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  overflow: hidden;
  box-sizing: border-box;
  /* Teams Layout */
}
.display-strip-shell .display-team {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(520 * var(--vw)); /* Width of the team area */
}
.display-strip-shell .display-team-a {
  left: 0;
}
.display-strip-shell .display-team-a .display-flag {
  position: absolute;
  left: calc(20 * var(--vw));
  top: calc(25 * var(--vw));
  width: calc(144 * var(--vw));
  height: calc(96 * var(--vw));
  border: 2px solid #FFFFFF;
  border-radius: calc(8 * var(--vw));
  overflow: hidden;
}
.display-strip-shell .display-team-a .display-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.display-strip-shell .display-team-a .display-badge-container {
  position: absolute;
  left: calc(184 * var(--vw));
  top: calc(32 * var(--vw));
  width: calc(104 * var(--vw));
  height: calc(36 * var(--vw));
  display: flex;
  align-items: center;
  justify-content: center;
}
.display-strip-shell .display-team-a .display-badge-container .badge-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.display-strip-shell .display-team-a .display-badge-container .display-name {
  position: relative;
  z-index: 1;
  font-size: calc(22 * var(--vw));
  font-weight: 700;
  color: #FFFFFF;
  font-family: "Microsoft YaHei", "微软雅黑", "STXihei", "华文细黑", sans-serif;
}
.display-strip-shell .display-team-a .display-percent {
  position: absolute;
  left: calc(308 * var(--vw));
  top: calc(18 * var(--vw));
  font-size: calc(52 * var(--vw));
  font-weight: 800;
  color: #00AB65;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  -webkit-text-stroke: calc(3 * var(--vw)) #FFFFFF;
}
.display-strip-shell .display-team-a .display-progress-track {
  position: absolute;
  left: calc(184 * var(--vw));
  top: calc(96 * var(--vw));
  width: calc(312 * var(--vw));
  height: calc(12 * var(--vw));
  background: rgba(255, 255, 255, 0.2);
  border-radius: calc(6 * var(--vw));
  overflow: hidden;
}
.display-strip-shell .display-team-a .display-progress-fill {
  height: 100%;
  background: #FFE000;
  border-radius: calc(6 * var(--vw));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.display-strip-shell .display-team-b {
  right: 0;
}
.display-strip-shell .display-team-b .display-flag {
  position: absolute;
  right: calc(20 * var(--vw));
  top: calc(25 * var(--vw));
  width: calc(144 * var(--vw));
  height: calc(96 * var(--vw));
  border: 2px solid #FFFFFF;
  border-radius: calc(8 * var(--vw));
  overflow: hidden;
}
.display-strip-shell .display-team-b .display-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.display-strip-shell .display-team-b .display-badge-container {
  position: absolute;
  right: calc(392 * var(--vw));
  top: calc(32 * var(--vw));
  width: calc(104 * var(--vw));
  height: calc(36 * var(--vw));
  display: flex;
  align-items: center;
  justify-content: center;
}
.display-strip-shell .display-team-b .display-badge-container .badge-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.display-strip-shell .display-team-b .display-badge-container .display-name {
  position: relative;
  z-index: 1;
  font-size: calc(22 * var(--vw));
  font-weight: 700;
  color: #FFFFFF;
  font-family: "Microsoft YaHei", "微软雅黑", "STXihei", "华文细黑", sans-serif;
}
.display-strip-shell .display-team-b .display-percent {
  position: absolute;
  right: calc(184 * var(--vw));
  top: calc(18 * var(--vw));
  font-size: calc(52 * var(--vw));
  font-weight: 800;
  color: #00AB65;
  font-family: "Microsoft YaHei", "微软雅黑", "STXihei", "华文细黑", sans-serif;
  -webkit-text-stroke: calc(3 * var(--vw)) #FFFFFF;
}
.display-strip-shell .display-team-b .display-progress-track {
  position: absolute;
  right: calc(184 * var(--vw));
  width: calc(312 * var(--vw));
  height: calc(12 * var(--vw));
  background: rgba(255, 255, 255, 0.2);
  border-radius: calc(6 * var(--vw));
  overflow: hidden;
  top: calc(96 * var(--vw));
}
.display-strip-shell .display-team-b .display-progress-fill {
  height: 100%;
  background: #FFE000;
  border-radius: calc(6 * var(--vw));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.display-strip-shell {
  /* Center Area Layout */
}
.display-strip-shell .display-center-area {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: calc(620 * var(--vw));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.display-strip-shell .display-title-img {
  width: calc(551 * var(--vw));
  height: calc(94 * var(--vw));
  object-fit: contain;
  margin-top: 0px;
}
.display-strip-shell .display-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(-20 * var(--vw));
}
.display-strip-shell .display-qr-block .qr-code-wrapper {
  width: calc(60 * var(--vw));
  height: calc(60 * var(--vw));
  background: #FFFFFF;
  padding: 2px;
  border-radius: calc(4 * var(--vw));
  box-shadow: 0 calc(4 * var(--vw)) calc(10 * var(--vw)) rgba(0, 0, 0, 0.3);
}
.display-strip-shell .display-qr-block .qr-code-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.display-strip-shell .display-qr-block .qr-label {
  font-size: calc(10 * var(--vw));
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.display-strip-shell .error-notice {
  position: absolute;
  inset: calc(20 * var(--vw));
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: calc(16 * var(--vw));
  background: rgba(255, 255, 255, 0.96);
  color: var(--danger);
  font-weight: 700;
  z-index: 100;
}
.display-strip-shell .error-notice[hidden] {
  display: none;
}

/* =========================================
   ADMIN PAGE (后台管理 - 极致高级卡片风)
   ========================================= */
body[data-page=admin] {
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.06), transparent 30%), radial-gradient(circle at 100% 100%, rgba(220, 38, 38, 0.04), transparent 35%), var(--page);
}

.admin-shell {
  width: min(1200px, 100% - calc(64 * var(--vw)));
  min-height: 100vh;
  margin: 0 auto;
  padding: max(calc(40 * var(--vw)), env(safe-area-inset-top)) 0 calc(calc(80 * var(--vw)) + env(safe-area-inset-bottom));
}

.admin-vue-shell {
  display: grid;
  gap: calc(40 * var(--vw));
}

.admin-vue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(32 * var(--vw));
  border-bottom: 1px solid var(--line);
  padding-bottom: calc(32 * var(--vw));
}

.admin-vue-nav {
  display: flex;
  gap: calc(20 * var(--vw));
  align-items: center;
}

.admin-vue-card {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}

.admin-vue-card-header h2,
.admin-vue-detail-title h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: calc(44 * var(--vw));
}

.admin-vue-event-title {
  color: var(--ink);
  font-size: calc(30 * var(--vw));
  font-weight: 700;
}

.admin-vue-metric {
  background: #f8fafc !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line) !important;
}

.admin-vue-metric strong {
  font-family: "Outfit", sans-serif;
  font-size: calc(64 * var(--vw));
  color: var(--ink);
}

.admin-vue-link-grid .el-link {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: #f8fafc !important;
  padding: calc(24 * var(--vw)) !important;
  font-weight: 600;
}

.admin-vue-link-grid .el-link:hover {
  border-color: var(--accent) !important;
  background: #fff !important;
}

.admin-vue-address {
  display: block;
  max-width: calc(640 * var(--vw));
  white-space: normal;
  line-height: 1.5;
}

/* dialog styles in element-plus */
.el-dialog {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg) !important;
}

.el-dialog__header {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  margin-right: 0 !important;
  padding-bottom: calc(32 * var(--vw)) !important;
}

.el-dialog__footer {
  border-top: 1px solid var(--line);
  padding-top: calc(32 * var(--vw)) !important;
}

/* Event List Card Grid */
.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(640 * var(--vw)), 1fr));
  gap: calc(32 * var(--vw));
}

.event-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: calc(36 * var(--vw));
  background: #fff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow);
}

.event-row:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-lg);
}

.event-row.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, #fff);
  box-shadow: 0 calc(16 * var(--vw)) calc(48 * var(--vw)) color-mix(in srgb, var(--accent) 10%, transparent);
}

.event-row strong {
  font-family: "Outfit", sans-serif;
  font-size: calc(32 * var(--vw));
  color: var(--ink);
}

.event-row small {
  color: var(--muted);
  font-weight: 600;
}

/* =========================================
   RESPONSIVE & ADAPTIONS
   ========================================= */
@media (max-width: 920px) {
  .admin-vue-link-grid {
    grid-template-columns: 1fr;
  }
  .event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-row {
    grid-template-columns: 1fr;
  }
  .event-row-side {
    justify-items: start;
    text-align: left;
    margin-top: 20px;
  }
}
@media (max-width: 560px) {
  .admin-shell {
    width: min(100%, 430px);
    padding-inline: 32px;
  }
  .admin-vue-header,
  .admin-vue-card-header,
  .admin-vue-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .admin-vue-nav .el-button,
  .admin-vue-card-header .el-button {
    width: 100%;
    margin-left: 0;
  }
  .event-list {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
}
[v-cloak] {
  display: none;
}

/* =========================================
   WINNERS LIST PAGE (中奖名单页样式)
   ========================================= */
body[data-page=results] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
body[data-page=results] .shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body[data-page=results] .hero {
  position: relative;
  height: calc(400 * var(--vw));
  background-image: url(../images/result/banner4.png);
  background-size: cover;
  flex-shrink: 0;
}
body[data-page=results] .ticket-card-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: calc(40 * var(--vw));
  margin-bottom: calc(calc(40 * var(--vw)) + env(safe-area-inset-bottom));
}
body[data-page=results] .ticket-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}
body[data-page=results] .ticket-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background-color: #fff;
  -webkit-overflow-scrolling: touch;
  padding: calc(31 * var(--vw)) calc(24 * var(--vw)) calc(45 * var(--vw));
  margin: 0 0 calc(20 * var(--vw));
}
body[data-page=results] .winner-list {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--vw));
  margin-top: calc(10 * var(--vw));
  padding-bottom: calc(40 * var(--vw));
}
body[data-page=results] .winner {
  display: flex;
  align-items: center;
  gap: calc(24 * var(--vw));
  padding: calc(24 * var(--vw)) calc(32 * var(--vw));
  margin: 0 calc(24 * var(--vw));
  background: #E5FFEC; /* 薄荷绿背景 */
  border: none;
  border-radius: calc(22 * var(--vw));
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body[data-page=results] .winner:hover {
  transform: translateY(-2px);
  box-shadow: 0 calc(8 * var(--vw)) calc(24 * var(--vw)) rgba(0, 171, 101, 0.08);
}
body[data-page=results] .winner-badge {
  width: calc(56 * var(--vw));
  height: calc(56 * var(--vw));
  background: #00AB65; /* 绿色序号徽章 */
  color: #FFFFFF;
  border-radius: 50%;
  font-family: "Outfit", sans-serif;
  font-size: calc(24 * var(--vw));
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body[data-page=results] .winner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--vw));
}
body[data-page=results] .winner-info strong {
  font-size: calc(28 * var(--vw));
  font-weight: 700;
  color: #03180F;
}
body[data-page=results] .winner-info .notice {
  margin-top: 0;
  font-size: calc(24 * var(--vw));
  font-weight: 500;
  color: rgba(3, 24, 15, 0.5); /* 半透明暗绿 */
}
body[data-page=results] .winner-info .notice.compact {
  font-size: calc(22 * var(--vw));
  color: rgba(3, 24, 15, 0.4);
}

/*# sourceMappingURL=styles.css.map */