/* 
  KW.GAMES E-Ticket HTML/CSS Template
  This is a sliced editable layout. It does not use a full-ticket image wrapper.
  Font files are intentionally not packaged here. Copy your licensed fonts into assets/fonts
  and enable the @font-face rules below if you want exact production typography.
*/

/*
@font-face {
  font-family: "Alexandria";
  src: url("../assets/fonts/Alexandria-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Gotham";
  src: url("../assets/fonts/GOTHAM-BOLD.TTF") format("truetype");
  font-weight: 700;
}
*/

:root {
  --bg: #11070d;
  --card: #180911;
  --ink: #ffffff;
  --muted: rgba(255,255,255,.78);
  --gold: #c9a55f;
  --wine: #3b101f;
  --cream: #eee9e8;
  --dark-text: #321c2b;
  --panel: #111116;
  --panel-2: #17151d;
  --radius-lg: 28px;
  --radius-md: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #09090b;
  color: var(--ink);
  font-family: Alexandria, Gotham, Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

button, a {
  font: inherit;
}

.ticket-shell {
  width: min(100%, 500px);
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding-bottom: calc(74px + var(--safe-bottom));
}

.ticket-card {
  display: none;
  min-height: 100vh;
  animation: ticketFade .22s ease-out;
}

.ticket-card.is-active { display: block; }

@keyframes ticketFade {
  from { opacity: .4; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ar {
  direction: rtl;
  font-family: Alexandria, Arial, sans-serif;
}

.hero {
  min-height: 330px;
  padding: 26px 26px 10px;
  background:
    linear-gradient(180deg, rgba(14,4,9,.2), var(--bg) 90%),
    url("../assets/front/stadium-hero.jpg") center top / cover no-repeat;
}

.top-logos {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  min-height: 70px;
}

.brand-logo { width: 92px; height: auto; object-fit: contain; }
.cup-logo { width: 140px; height: auto; object-fit: contain; }

.operator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 10px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
}

.operator img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.operator p {
  margin: 2px 0;
  letter-spacing: .03em;
  line-height: 1.1;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.team {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
}

.team img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.team span {
  display: block;
  font-size: 16px;
  text-transform: none;
}

.team strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.vs {
  color: var(--gold);
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
  padding-bottom: 38px;
  font-style: italic;
}

.match-strip {
  margin: 0 28px;
  border: 1px solid rgba(201,165,95,.4);
  border-radius: var(--radius-lg);
  background: rgba(64,18,34,.66);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1px .72fr 1px 1fr;
  align-items: center;
}

.strip-divider {
  width: 1px;
  min-height: 54px;
  background: var(--gold);
  opacity: .75;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 14px;
  min-width: 0;
}

.strip-rtl { justify-content: flex-end; text-align: right; }

.icon {
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
}

.strip-item strong,
.kickoff strong {
  display: block;
  font-size: 18px;
  text-transform: uppercase;
}

.strip-item small {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.kickoff {
  text-align: center;
  padding: 10px 8px;
  text-transform: uppercase;
  font-weight: 800;
}

.kickoff span,
.kickoff small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}

.kickoff strong {
  color: var(--gold);
  font-size: 30px;
  line-height: .95;
}

.stadium-line {
  grid-column: 1 / -1;
  border-top: 1px solid var(--gold);
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 16px;
}

.stadium-line strong {
  font-size: 14px;
  text-transform: uppercase;
}

.stadium-line .ar {
  text-align: right;
  text-transform: none;
  font-weight: 700;
}

.ticket-info {
  margin: 8px 28px 0;
  background: var(--cream);
  color: var(--dark-text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.qr-box {
  padding: 14px 14px 4px;
}

.qr-box svg {
  width: 150px;
  max-width: 100%;
  display: block;
  background: #fff;
  border-radius: 18px;
}

.qr-box small {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 900;
  white-space: nowrap;
}

.holder-block {
  padding: 14px 18px 4px 4px;
  text-align: right;
  position: relative;
}

.user-icon {
  float: right;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #72115b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 38px;
  margin-left: 8px;
}

.holder-block .label {
  display: block;
  color: #c4944f;
  font-size: 13px;
}

#ticketHolder {
  display: block;
  font-size: 28px;
  margin: 0 0 12px;
  line-height: 1.05;
}

.block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.block b {
  font-size: 54px;
  line-height: .9;
}

.block span {
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1;
  font-size: 18px;
}

.block em {
  font-style: normal;
  font-size: 16px;
  text-transform: none;
}

.seat-grid {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(50,28,43,.8);
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  text-align: center;
  padding: 10px 0 8px;
}

.seat-grid div {
  border-left: 1px solid rgba(50,28,43,.55);
}

.seat-grid div:first-child { border-left: 0; text-align: left; padding-left: 24px; }

.seat-grid span {
  display: block;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
}

.seat-grid em {
  display: block;
  font-style: normal;
  font-size: 12px;
}

.seat-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 30px;
  line-height: 1;
}

.price-line {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #471321, #230911);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 26px 14px;
  border-top: 1px solid rgba(201,165,95,.6);
}

.price-line span {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

.price-line em {
  font-style: normal;
  text-transform: none;
}

.price-line strong {
  font-size: 42px;
  line-height: 1;
}

.price-line b {
  align-self: end;
  margin-bottom: 7px;
}

.entry-guidance {
  margin: 12px 28px 0;
  border: 1px solid rgba(201,165,95,.28);
  border-radius: var(--radius-lg);
  padding: 14px 18px 16px;
  background: rgba(24,8,18,.84);
}

.entry-guidance header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 8px;
  text-transform: uppercase;
  font-size: 18px;
}

.entry-guidance .ar { text-transform: none; }

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  padding-top: 10px;
  align-items: start;
}

.entry-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.entry-grid strong {
  display: block;
  font-size: 18px;
  text-transform: uppercase;
}

.sponsors {
  margin-top: 26px;
  padding: 60px 28px 26px;
  background: #1a1a1d;
  text-align: center;
  position: relative;
}

.round-flip {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #d7bd78, #9c7740);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
}

.round-flip > span,
.round-flip small {
  display: block;
  font-size: 12px;
  line-height: .75;
}

.sponsors h2 {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}

.sponsors h2 span { margin-left: 28px; letter-spacing: 0; }

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 10px;
  justify-items: center;
}

.sponsor-grid img {
  width: 100%;
  max-width: 104px;
  border-radius: 9px;
}

/* Back side */
.ticket-back {
  background: #0d0d10;
  padding: 30px 28px 24px;
}

.back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}

.back-header h1 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.back-header .ar { text-transform: none; font-size: 22px; }

.back-header span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.info-panel,
.nav-panel,
.back-button,
.help-panel {
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--gold);
}

.info-panel {
  padding: 22px 18px;
  margin-bottom: 18px;
}

.panel-title,
.video-title,
.nav-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.panel-title h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: 22px;
}

.panel-title .ar {
  text-align: right;
  text-transform: none;
  font-size: 22px;
  font-weight: 800;
}

.panel-icon {
  font-size: 36px;
  line-height: 1;
}

.terms ul {
  margin: 18px 0 0;
  padding-left: 22px;
  font-weight: 800;
  line-height: 1.75;
}

.nav-panel {
  padding: 22px 18px;
  margin-bottom: 18px;
}

.nav-panel strong,
.video-title strong {
  font-size: 21px;
  text-transform: uppercase;
  line-height: 1.15;
}

.nav-panel em,
.video-title em {
  font-style: normal;
  text-transform: none;
  font-weight: 600;
}

.nav-panel b,
.video-title b {
  font-size: 52px;
  line-height: .6;
}

.video-panel {
  padding: 18px;
}

.video-title {
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}

.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(201,165,95,.75);
}

.video-thumb img {
  display: block;
  width: 100%;
}

.video-thumb span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.65);
  color: #111;
  font-size: 30px;
}

.back-button {
  width: 100%;
  color: var(--gold);
  background: #15131b;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px;
  margin-bottom: 18px;
  cursor: pointer;
  text-align: left;
  text-transform: uppercase;
  font-weight: 900;
}

.back-button span {
  font-size: 42px;
  line-height: .5;
}

.back-button .ar {
  text-align: right;
  text-transform: none;
}

.help-panel {
  border: 0;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 18px;
}

.headset {
  font-size: 50px;
  line-height: 1;
}

.help-panel h2,
.help-panel p {
  margin: 0 0 5px;
}

.help-panel h2 {
  font-size: 21px;
  text-transform: uppercase;
}

.help-panel .ar {
  text-transform: none;
  float: right;
}

.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100%, 500px);
  transform: translateX(-50%);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(13,13,16,.92);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
  border-top: 1px solid rgba(201,165,95,.35);
  z-index: 20;
}

.mobile-dock button {
  border: 1px solid rgba(201,165,95,.45);
  background: #1d1620;
  color: #fff;
  border-radius: 999px;
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 900;
}

.mobile-dock button:last-child {
  background: var(--gold);
  color: #19100d;
}

@media (max-width: 390px) {
  .hero { padding-inline: 18px; }
  .match-strip,
  .ticket-info,
  .entry-guidance { margin-inline: 16px; }
  .ticket-back { padding-inline: 16px; }
  .team img { width: 88px; height: 88px; }
  .vs { font-size: 42px; }
  .strip-item { padding-inline: 8px; }
  .kickoff strong { font-size: 24px; }
  .stadium-line { grid-template-columns: auto 1fr; }
  .stadium-line .ar { grid-column: 2; }
  #ticketHolder { font-size: 24px; }
  .block b { font-size: 44px; }
  .entry-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
  body {
    padding: 28px;
  }

  .ticket-shell {
    border-radius: 32px;
    min-height: auto;
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
  }

  .mobile-dock {
    border-radius: 22px 22px 0 0;
  }
}
