:root {
  color-scheme: light;
  --ink: #142e35;
  --cream: #fff6d8;
  --lime: #ccec66;
  --stroke: 4px;
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 72px);
  background-color: #12383e;
  background-image: radial-gradient(#295058 1px, transparent 1px),
    linear-gradient(165deg, #163f47 0 62%, #143a41 62% 75%, #12363c 75%);
  background-size: 13px 13px, 100% 100%;
}
.ticket {
  width: min(100%, 1032px);
  border: var(--stroke) solid var(--ink);
  box-shadow: 7px 7px 0 #081f25;
  background: var(--cream);
}
.harbor {
  position: relative;
  aspect-ratio: 2.62;
  border-bottom: var(--stroke) solid var(--ink);
  overflow: hidden;
  background: #55b4de;
}
.scenery { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 58%; }
.wordmark {
  position: absolute;
  width: 45%;
  height: auto;
  left: 5%;
  top: 38%;
  image-rendering: pixelated;
}
.boarding { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.action, .stub { padding: clamp(24px, 4vw, 52px); }
h1 { margin: 0; font-size: clamp(36px, 4.8vw, 67px); font-weight: 950; letter-spacing: -.065em; line-height: 1.03; }
p { margin: 12px 0 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; }
.button, .copy { color: var(--ink); font: inherit; font-weight: 850; cursor: pointer; }
.button {
  min-height: 52px;
  margin-top: 24px;
  padding: 11px 18px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 38px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--lime);
  text-decoration: none;
  font-size: 19px;
}
.button:hover { background: #d9f782; }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
:focus-visible { outline: 3px solid #005c8a; outline-offset: 5px; }
.arrow {
  display: inline-block;
  background: currentColor;
  width: 18px;
  height: 15px;
  clip-path: polygon(0 38%, 55% 38%, 55% 0, 72% 0, 72% 18%, 86% 18%, 86% 34%, 100% 34%, 100% 66%, 86% 66%, 86% 82%, 72% 82%, 72% 100%, 55% 100%, 55% 62%, 0 62%);
}
.stub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: 3px dashed #b4a980;
  background: #f7ebc2;
}
.stub h2, .stub label, .copy {
  margin: 0;
  font-family: ui-monospace, "Courier New", monospace;
  font-weight: 800;
}
.stub h2, .stub label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
#room-code { display: block; margin: 8px 0 2px; font: 900 clamp(25px, 3.2vw, 43px)/1.1 ui-monospace, monospace; letter-spacing: .04em; user-select: all; }
.copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.copy span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.copy-icon { width: 12px; height: 13px; border: 2px solid currentColor; box-shadow: -3px -3px var(--cream), -5px -5px currentColor; margin-left: 5px; }
.copy[hidden] { display: none; }
.entry input {
  margin-top: 9px;
  max-width: 100%;
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 0;
  padding: 10px 12px;
  background: #fffdf4;
  color: var(--ink);
  font: 800 20px ui-monospace, monospace;
  text-transform: uppercase;
}
.entry input::placeholder { color: #646956; text-transform: none; }
.entry .button { margin-top: 12px; }
@media (max-width: 680px) {
  body { padding: 14px 14px 21px; }
  .harbor { aspect-ratio: 1.65; }
  .wordmark { width: 58%; left: 4%; top: 12%; }
  .boarding { grid-template-columns: 1fr; }
  .action, .stub { padding: 24px; }
  .action .button { width: 100%; margin-top: 19px; }
  .stub { border-left: 0; border-top: 3px dashed #b4a980; }
  .stub:not(.entry) { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
  .stub h2 { grid-column: 1 / -1; }
  #room-code { font-size: clamp(21px, 6.7vw, 36px); }
  .copy { justify-self: end; }
}
@media (max-width: 365px) {
  .action, .stub { padding: 18px; }
  .copy { font-size: 12px; }
}
