/* Lamp-lit game shelf: a cream admission ticket under a warm pendant lamp,
   resting above a row of game-box spines on a dark wood plank. */
:root {
  --night: #0c0807;
  --wood: #2b1b11;
  --wood-hi: #4a2f1c;
  --paper: #f0e3c5;
  --paper-2: #e2d0a8;
  --ink: #1d140d;
  --ink-soft: #5b4631;
  --amber: #ffb347;
  --ember: #c4481a;
  --ember-deep: #6f250b;
  --stub: 96px;
  --display: "Rockwell Extra Bold", "Rockwell", "Arvo", "Roboto Slab", "Courier New", serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--paper);
  font-family: var(--mono);
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(255, 179, 71, .22), transparent 70%),
    linear-gradient(var(--night), #120b08 70%);
  overflow-x: hidden;
}

/* pendant lamp */
.lamp { position: absolute; top: 0; left: 50%; width: 0; height: 0; pointer-events: none; }
.lamp .cord { position: absolute; left: -1px; top: 0; width: 2px; height: 46px; background: #3a2a1d; }
.lamp .shade {
  position: absolute; left: -34px; top: 46px; width: 68px; height: 26px;
  background: linear-gradient(#5c3a1f, #3a2314);
  border-radius: 34px 34px 4px 4px;
  box-shadow: 0 14px 38px 10px rgba(255, 179, 71, .35);
}
.lamp .shade::after {
  content: ""; position: absolute; left: 14px; bottom: -6px; width: 40px; height: 7px;
  background: var(--amber); border-radius: 0 0 40px 40px; filter: blur(1px);
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .95; } 48% { opacity: 1; } 52% { opacity: .8; } }

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 108px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.marquee {
  margin: 0 0 22px;
  font-family: var(--display);
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--amber);
  text-shadow: 0 0 14px rgba(255, 179, 71, .55);
}
.marquee b { font-weight: 900; font-size: 1.15rem; letter-spacing: .4em; }
.marquee span { color: #b98a52; letter-spacing: .12em; text-transform: none; }

/* the ticket */
.ticket {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(90, 60, 20, .045) 0 2px, transparent 2px 5px),
    linear-gradient(100deg, var(--paper), var(--paper-2));
  border-radius: 10px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55));
  -webkit-mask:
    radial-gradient(circle 12px at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 12px at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 12px at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 12px at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { flex: 1; min-width: 0; padding: 26px 26px 24px; }
.stub {
  flex: 0 0 var(--stub);
  display: flex; align-items: center; justify-content: center;
  border-left: 2px dashed rgba(29, 20, 13, .35);
  background: rgba(196, 72, 26, .09);
}
.stub span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .3em;
  color: var(--ember);
  opacity: .85;
}

.kicker {
  margin: 0 0 4px;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.lede { margin: 0 0 18px; color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }

label { display: block; margin: 0 0 14px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
label small { display: block; margin-top: 5px; letter-spacing: .03em; text-transform: none; font-size: .76rem; }
input {
  display: block; width: 100%; margin-top: 5px;
  padding: 12px 12px;
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  color: var(--ink);
  background: rgba(255, 250, 238, .75);
  border: 2px solid var(--ink);
  border-radius: 4px;
}
input:focus { outline: 3px solid var(--amber); outline-offset: 1px; background: #fffaf0; }
input:user-invalid { border-color: var(--ember); }

button {
  display: block; width: 100%; margin-top: 18px;
  padding: 14px 16px;
  font-family: var(--display); font-weight: 900; font-size: 1.05rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff3dc;
  background: var(--ember);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 5px 0 var(--ember-deep);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
button:hover { background: #d4531f; }
button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ember-deep); }
button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
button.quiet {
  margin-top: 10px; color: var(--ink); background: transparent; box-shadow: none; border-style: dashed;
  font-size: .85rem;
}
button.quiet:hover { background: rgba(29, 20, 13, .08); }

.stamp {
  margin: 0 0 16px; padding: 8px 12px;
  display: inline-block;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ember);
  border: 2px solid var(--ember);
  border-radius: 4px;
  transform: rotate(-1.2deg);
}
.alt { margin: 18px 0 0; font-size: .85rem; color: var(--ink-soft); }
.alt a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.alt a:hover { color: var(--ember); }
.alt a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.alt .big { font-size: 1rem; }
.ticket-static form { margin: 0; }

/* shelf with game-box spines */
.shelf { position: relative; margin-top: auto; height: 96px; overflow: hidden; }
.shelf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: linear-gradient(var(--wood-hi), var(--wood) 35%, #170e08);
  border-top: 2px solid #6a4528;
}
.spines { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; align-items: flex-end; gap: 3px; padding: 0 8px; }
.spines i { display: block; width: 22px; height: 58px; background: #7a3b1d; border-radius: 2px 2px 0 0; box-shadow: inset -4px 0 0 rgba(0, 0, 0, .25), inset 2px 0 0 rgba(255, 255, 255, .12); }
.spines i:nth-child(5n+1) { background: #2c5a63; height: 70px; width: 26px; }
.spines i:nth-child(5n+2) { background: #a4762a; height: 52px; }
.spines i:nth-child(5n+3) { background: #5b2a46; height: 64px; width: 18px; }
.spines i:nth-child(5n+4) { background: #8e3a24; height: 74px; width: 24px; }
.spines i:nth-child(7n) { background: #3f5a2b; }
.spines i:nth-child(4n) { transform: rotate(4deg); transform-origin: bottom left; margin-left: 6px; }

/* phones: the stub moves below the ticket, perforation turns horizontal */
@media (max-width: 560px) {
  main { padding-top: 96px; padding-bottom: 28px; }
  .ticket {
    flex-direction: column;
    -webkit-mask:
      radial-gradient(circle 12px at 0 calc(100% - 52px), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 12px at 100% calc(100% - 52px), #0000 97%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle 12px at 0 calc(100% - 52px), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 12px at 100% calc(100% - 52px), #0000 97%, #000) right / 51% 100% no-repeat;
  }
  .ticket-main { padding: 22px 18px 20px; }
  .stub { flex: 0 0 52px; border-left: 0; border-top: 2px dashed rgba(29, 20, 13, .35); }
  .stub span { writing-mode: horizontal-tb; transform: none; font-size: 1rem; }
  .shelf { height: 76px; }
  .spines i { transform: scale(.85); transform-origin: bottom; }
  .spines i:nth-child(n+12) { display: none; }
}
@media (max-height: 520px) { .shelf { display: none; } .lamp { display: none; } main { padding-top: 24px; } }
@media (prefers-reduced-motion: reduce) { .lamp .shade::after { animation: none; } button { transition: none; } }
