/* The host stage and phone picker share the menu's worn, restrained palette. */
.draft-host { margin: 0; background: #040605; color: #d5d0bc; overflow: hidden; }
.draft-host > header { display: none; }
.draft-host main { max-width: none; margin: 0; padding: 0; }
.draft-host::before { content: ''; position: fixed; inset: 0; background: linear-gradient(#030504b8, #030504ef), url('/images/intro-poster.jpg') center/cover; pointer-events: none; }
.draft-host::after { content: ''; position: fixed; inset: 0; background: url('/grain.svg'); opacity: .06; pointer-events: none; }
.team-draft { position: relative; font-family: Georgia, serif; }
.team-draft-host { position: fixed; inset: 0; padding: 4vh 6vw; display: flex; flex-direction: column; }
.draft-top { display: flex; justify-content: space-between; color: #838d7d; font: 12px/1.5 monospace; letter-spacing: .14em; }
.draft-title { color: #d8d3be; font: 400 clamp(25px, 3vw, 44px)/1.2 Georgia, serif; text-shadow: 0 3px 18px #000; margin: 6vh 0 3vh; text-align: center; }
.draft-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 14vw; margin-top: 1vh; flex-shrink: 0; }
.draft-team { text-align: center; min-width: 0; }
.captain-card { border-top: 1px solid #69745a70; padding: 18px 8px 12px; }
.draft-group { display: block; font: 12px monospace; letter-spacing: .25em; color: #8b927f; }
.captain-card strong { display: block; margin: 12px 0; font-size: clamp(24px, 3vw, 46px); font-weight: 400; overflow-wrap: anywhere; }
.captain-card small { color: #8c8170; font: 11px monospace; text-transform: uppercase; letter-spacing: .2em; }
.draft-team-1 .captain-card { border-color: #86684f80; }
.draft-team.is-turn .captain-card { box-shadow: 0 -15px 40px -25px #adad74; border-color: #b8b68c; }
.draft-members { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: clamp(15px, 1.6vw, 23px); }
.draft-members li { overflow-wrap: anywhere; color: #a8ae9c; }
.draft-pool { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px 28px; min-height: 0; overflow-y: auto; padding: 18px 3vw; flex: 1; }
.draft-pool span { color: #a2a493; font-size: clamp(17px, 1.8vw, 26px); overflow-wrap: anywhere; }
.team-draft-host[data-stage="ready"] .draft-pool { max-width: 980px; margin: auto; }
.team-draft-host[data-stage="ready"] .draft-pool span { font-size: clamp(23px, 3vw, 40px); padding: 8px; }
.draft-turn { text-align: center; margin: 3vh 0 0; font: 14px/1.6 monospace; color: #b8b79f; }
.draft-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding-bottom: 20px; }
.team-draft button { border: 0; border-radius: 0; background: none; color: #b9b6a3; }
.team-draft button:disabled { opacity: .35; }
.team-draft button:hover:not(:disabled) { color: #fff4d6; }
.team-draft button:focus-visible { outline: 1px solid #b9b6a3; outline-offset: 4px; }
.draft-quiet { font: 12px monospace; padding: 10px 0; }
.draft-proceed { font: 28px Georgia, serif; padding: 12px 0 12px 20px; }
.draft-proceed span { margin-left: 14px; color: #9b785a; }
.draft-sound { position: absolute; bottom: 14px; left: 6vw; }
.draft-remaining { font: 13px monospace; color: #777d6d; }
.draft-offline { text-align: center; color: #ba9676; font: 13px Arial, sans-serif; }
.draft-host #notice { position: fixed; z-index: 4; bottom: 12%; left: 20%; right: 20%; color: #d2b196; background: #1b110fea; }
.draft-coin-wrap { position: absolute; top: 32%; left: 50%; transform: translateX(-50%); text-align: center; perspective: 600px; z-index: 2; }
.draft-coin { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; border: 3px double #b2aa83; color: #dcd3a9; background: radial-gradient(circle at 30% 25%, #7b7558, #302e25 65%, #12150f); box-shadow: 0 12px 30px #000, inset 0 0 12px #000; font: 32px Georgia, serif; animation: fate-flip 4s cubic-bezier(.15,.7,.3,1) both; animation-delay: var(--coin-delay, 0ms); }
.draft-coin-wrap p { font: 11px monospace; width: 130px; margin-left: -22px; color: #8a8f7a; }
@keyframes fate-flip { 0% { transform: translateY(24px) rotateY(0deg) rotateZ(-12deg); } 35% { transform: translateY(-36px) rotateY(1260deg) rotateZ(8deg); } 100% { transform: translateY(0) rotateY(2160deg) rotateZ(0); } }
.team-draft-host[data-stage="drawing"] .draft-team-0 { transform: translateX(16vw); }
.team-draft-host[data-stage="drawing"] .draft-team-1 { transform: translateX(-16vw); }
.team-draft-host[data-stage="revealing"] .draft-team-0 { animation: captain-left 1.2s cubic-bezier(.16,1,.3,1) both; }
.team-draft-host[data-stage="revealing"] .draft-team-1 { animation: captain-right 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes captain-left { from { transform: translateX(16vw); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes captain-right { from { transform: translateX(-16vw); opacity: .4; } to { transform: none; opacity: 1; } }
.phone-draft .storm-scene { opacity: .3; }
.phone-draft #notice { position: fixed; z-index: 5; bottom: 45px; left: 20px; right: 20px; }
.team-draft-phone { position: absolute; inset: 0; display: flex; flex-direction: column; padding: max(42px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom)); color: #b9beab; }
.draft-phone-heading small { font: 11px monospace; letter-spacing: .12em; display: block; text-align: center; overflow-wrap: anywhere; }
.team-draft-phone .draft-title { margin: 22px 0 12px; font-size: 32px; }
.draft-phone-heading > p:last-child { text-align: center; font: 15px/1.5 Arial, sans-serif; margin: 0 auto 24px; max-width: 290px; }
.draft-pick-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1; padding: 4px 5px 8px; }
.draft-pick-list button { display: flex; justify-content: space-between; width: 100%; text-align: left; align-items: center; gap: 12px; min-height: 58px; font: 23px Georgia, serif; border-bottom: 1px solid #727c5d50; padding: 12px 4px; overflow-wrap: anywhere; }
.draft-pick-list button span { color: #96976d; }
.draft-phone-code { margin-top: auto; padding-top: 18px; text-align: center; color: #727a68; font: 10px monospace; letter-spacing: .2em; }
@media (max-height: 650px) { .team-draft-host .draft-title { margin-top: 3vh; } .captain-card { padding-top: 10px; } .captain-card strong { margin: 6px 0; } .draft-members { gap: 4px 12px; } .team-draft-phone { padding-top: 25px; } .team-draft-phone .draft-title { margin-top: 14px; } }
@media (max-width: 700px) { .draft-teams { gap: 12vw; } .team-draft-host { padding-inline: 5vw; } .draft-members { grid-template-columns: 1fr; } .draft-pool { gap: 10px 18px; } .draft-coin { width: 58px; height: 58px; } .draft-title { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { .team-draft .draft-team, .draft-coin { animation: none !important; transform: none !important; } }
.team-name-form { margin: auto 0; display: flex; flex-direction: column; gap: 28px; }
.team-name-form label { font: 32px Georgia, serif; color: #d8d3be; text-align: center; }
.team-name-form input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #9c957c; border-radius: 0; background: #05070680; padding: 18px 8px; color: #ded7bc; font: 24px Georgia, serif; text-align: center; }
.team-name-form input:focus { outline: 1px solid #8e8a70; outline-offset: 5px; }
.team-name-form button { font: 25px Georgia, serif; padding: 18px; }
.team-name-form button span { color: #9b785a; margin-left: 15px; }
.team-draft-phone:has(.team-name-form) { top:var(--draft-visible-top, 0px); bottom:auto; height:var(--draft-visible-height, 100dvh); }
.team-name-form label { margin:0; }
