/* playrotline.com. Layout lives in each page's inline styles; this file holds
   the fonts, link colours, the unit card fans and the form notes. */

@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/chakra-petch-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/chakra-petch-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Stencil One'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/saira-stencil-one-latin-400-normal.woff2') format('woff2'); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #05070b; }
img, video { max-width: 100%; }
img { height: auto; }
section[id] { scroll-margin-top: 16px; }

a { color: #a9ccff; }
a:hover { color: #ffffff; }
a.btn-primary { color: #05070b; }
a.btn-primary:hover { color: #05070b; background: #6aa6ff; }
a.btn-ghost { color: #d9e2ec; }
a.btn-ghost:hover { color: #ffffff; border-color: #a9ccff; }
a.nav-link { color: #b8c4d2; }
a.nav-link:hover { color: #ffffff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #f0c35f; outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: #6f7d8f; }
button[disabled] { opacity: 0.6; cursor: progress; }

/* choice chips: a radio or checkbox inside a bordered label. The border and
   the control follow the real checked state, so the highlight moves with it. */
.pick { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid #26364a; border-radius: 4px; background: #0a1019; color: #b8c4d2; cursor: pointer; user-select: none; transition: border-color .15s, background-color .15s, color .15s; }
.pick:hover { border-color: #47586d; color: #ffffff; }
.pick input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 2px solid #47586d; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-content: center; transition: border-color .15s, background-color .15s; }
.pick input[type="checkbox"] { border-radius: 3px; }
.pick input::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #05070b; transform: scale(0); transition: transform .15s cubic-bezier(.2,.8,.2,1); }
.pick input[type="checkbox"]::before { width: 10px; height: 6px; border-radius: 0; border: solid #05070b; border-width: 0 0 2.5px 2.5px; background: none; transform: translateY(-1px) rotate(-45deg) scale(0); }
.pick input:checked { border-color: #3d8bff; background: #3d8bff; }
.pick input:checked::before { transform: scale(1); }
.pick input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.pick:has(input:checked) { border-color: #3d8bff; background: #0e1a2e; color: #ffffff; }
.pick input:focus-visible { outline: none; }
.pick:has(input:focus-visible) { outline: 2px solid #f0c35f; outline-offset: 3px; }

/* the consent tick box at the end of the sign-up form */
.tick { display: flex; align-items: flex-start; gap: 12px; color: #b8c4d2; cursor: pointer; }
.tick input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 2px solid #47586d; border-radius: 3px; background: #0a1019; cursor: pointer; display: grid; place-content: center; transition: border-color .15s, background-color .15s; }
.tick input::before { content: ''; width: 12px; height: 7px; border: solid #05070b; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s cubic-bezier(.2,.8,.2,1); }
.tick input:checked { border-color: #3d8bff; background: #3d8bff; }
.tick input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.tick:hover input { border-color: #3d8bff; }

/* form results */
.form-note { margin: 0; font-size: 16px; color: #d9e2ec; }
.form-note.bad { color: #ff8a8a; }
.form-note.ok { color: #9dffad; }

/* the unit card fans */
.fan { display: flex; justify-content: center; align-items: flex-end; padding: 104px 0 28px; }
.fan.z { --c: #ff4a4a; }
.fan.a { --c: #3d8bff; }
.fan-card { position: relative; flex: none; width: clamp(120px, 12vw, 178px); aspect-ratio: 3 / 4; margin: 0 -13px; padding: 0; border: 1px solid #26364a; border-radius: 10px; overflow: hidden; background: #0a1019; color: #ffffff; font: inherit; cursor: pointer; transform-origin: 50% 165%; transform: rotate(var(--r)); transition: transform .32s cubic-bezier(.2,.8,.2,1), margin .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s, border-color .2s; }
.fan.wait .fan-card { opacity: 0; }
.fan.dealt .fan-card { animation: fan-deal .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.fan-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fan-card .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; background: linear-gradient(rgba(5,7,11,0), rgba(5,7,11,.94)); font-size: 15px; font-weight: 700; line-height: 1.15; text-align: left; }
.fan-card:hover, .fan-card:focus-visible { transform: rotate(var(--r)) translateY(-16px); z-index: 3; }
.fan-card.on { transform: rotate(0deg) translateY(-30px) scale(1.14); z-index: 5; margin: 0 20px; border-color: var(--c); box-shadow: 0 18px 40px rgba(0,0,0,.65); }
@keyframes fan-deal { from { transform: rotate(0deg) translateY(80px); opacity: 0; } }
.f7 .fc-0 { --r: -12deg; --d: 0ms; } .f7 .fc-1 { --r: -8deg; --d: 50ms; } .f7 .fc-2 { --r: -4deg; --d: 100ms; } .f7 .fc-3 { --r: 0deg; --d: 150ms; } .f7 .fc-4 { --r: 4deg; --d: 200ms; } .f7 .fc-5 { --r: 8deg; --d: 250ms; } .f7 .fc-6 { --r: 12deg; --d: 300ms; }
.f6 .fc-0 { --r: -12.5deg; --d: 0ms; } .f6 .fc-1 { --r: -7.5deg; --d: 50ms; } .f6 .fc-2 { --r: -2.5deg; --d: 100ms; } .f6 .fc-3 { --r: 2.5deg; --d: 150ms; } .f6 .fc-4 { --r: 7.5deg; --d: 200ms; } .f6 .fc-5 { --r: 12.5deg; --d: 250ms; }

@media (max-width: 760px) {
  .fan { justify-content: flex-start; overflow-x: auto; padding: 24px 16px 16px; margin: 0 -16px; scroll-snap-type: x mandatory; }
  .fan-card, .fan.dealt .fan-card { width: 132px; margin: 0 5px; transform: none; animation: none; scroll-snap-align: center; }
  .fan-card:hover, .fan-card:focus-visible { transform: none; }
  .fan-card.on { transform: translateY(-8px); margin: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fan-card, .fan.wait .fan-card { opacity: 0; }
.fan.dealt .fan-card { animation: none; transition: none; }
}

/* plain text pages (privacy, notices) */
.doc { max-width: 44em; margin: 0 auto; padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 72px); color: #b8c4d2; font-family: 'Chakra Petch', 'Trebuchet MS', sans-serif; font-size: 17px; line-height: 1.6; }
.doc h1 { margin: 0 0 24px; font-family: 'Saira Stencil One', Impact, sans-serif; font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1; color: #ffffff; }
.doc h2 { margin: 36px 0 8px; font-size: 22px; font-weight: 700; color: #ffffff; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc .meta { font-family: 'IBM Plex Mono', Consolas, monospace; font-size: 14px; color: #8a97a8; }

/* the analytics question (assets/analytics.js) */
#rl-consent { position: fixed; z-index: 50; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: min(420px, calc(100vw - 24px)); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; background: rgba(7, 11, 18, 0.97); border: 1px solid #26364a; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); color: #d9e2ec; font-family: 'Chakra Petch', 'Trebuchet MS', sans-serif; font-size: 15px; line-height: 1.45; }
#rl-consent p { margin: 0; flex: 1 1 240px; min-width: 0; }
#rl-consent .rlc-b { display: flex; gap: 8px; }
#rl-consent button, .doc button { min-height: 44px; padding: 0 16px; border: 1px solid #47586d; border-radius: 4px; background: transparent; color: #d9e2ec; font: inherit; font-weight: 700; cursor: pointer; }
#rl-consent button.yes { background: #3d8bff; border-color: #3d8bff; color: #05070b; }
#rl-consent button:hover, .doc button:hover { border-color: #a9ccff; }
