/* Sê Gou on a phone: one column, big touch targets, one-handed. Current browsers only (no Chromium 56 limits here). */
@font-face { font-family: 'Manrope'; font-weight: 700; src: url(/tv/fonts/manrope-700.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; src: url(/tv/fonts/manrope-800.woff2) format('woff2'); }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body { background: #2c1f4a; color: #fff4e0; font-family: 'Manrope', system-ui, sans-serif; font-weight: 700; font-size: 18px;
  padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom)); }
#app { max-width: 480px; margin: 0 auto; padding: 0 16px; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { opacity: .45; }
header { display: flex; align-items: center; gap: 8px; padding: 14px 0 12px; border-bottom: 4px solid #ffc93c; margin-bottom: 16px; }
.logo { font-size: 26px; font-weight: 800; color: #ffc93c; letter-spacing: -1px; margin-right: auto; }
.logo i { font-style: normal; color: #fff4e0; }
.code { font-size: 15px; letter-spacing: 3px; opacity: .7; }
.mini { background: rgba(255,244,224,.14); border-radius: 12px; padding: 8px 12px; font-size: 15px; min-height: 40px; }
h1 { font-size: 30px; font-weight: 800; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 800; margin: 20px 0 10px; }
p { line-height: 1.4; }
.msg { text-align: center; padding: 30px 6px 20px; }
.msg p { margin-top: 12px; font-size: 19px; opacity: .9; }
.spin { width: 44px; height: 44px; margin: 10px auto 18px; border-radius: 50%; border: 5px solid rgba(255,244,224,.2); border-top-color: #ffc93c; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big { display: block; width: 100%; min-height: 64px; border-radius: 20px; font-size: 22px; font-weight: 800; margin-top: 14px; background: #fff4e0; color: #23183a; padding: 14px; }
.big.go { background: #ffc93c; color: #23183a; box-shadow: 0 6px 0 rgba(0,0,0,.25); min-height: 76px; font-size: 25px; }
.ghost { display: block; width: 100%; min-height: 54px; border-radius: 16px; margin-top: 12px; background: transparent; border: 2px solid rgba(255,244,224,.3); font-size: 18px; }
.wait { text-align: center; margin: 18px 0; opacity: .85; font-size: 18px; }
.hint { font-size: 16px; opacity: .8; margin-top: 14px; text-align: center; }

/* join */
.join label { display: block; font-size: 18px; }
.join input { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 24px; padding: 14px 16px; border-radius: 16px; border: 3px solid transparent; background: #fff4e0; color: #23183a; }
.join input.bad { border-color: #e8433a; }
.teams { display: flex; flex-direction: column; gap: 10px; }
.team { min-height: 70px; border-radius: 18px; font-size: 23px; font-weight: 800; color: #23183a; text-align: left; padding: 10px 18px; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.team small { display: block; font-size: 15px; font-weight: 700; opacity: .75; }

/* lobby */
.badge { border-radius: 18px; padding: 12px 18px; color: #23183a; font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.badge small { display: block; font-size: 14px; font-weight: 700; opacity: .75; }
.teamlist { display: flex; flex-direction: column; gap: 8px; }
.tl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; border-left: 8px solid; background: rgba(255,244,224,.08); border-radius: 12px; padding: 10px 12px; }
.tl b { font-size: 18px; }
.tl span { flex: 1 1 100%; font-size: 16px; opacity: .85; order: 3; }
.tl .mini { margin-left: auto; }
.tl.me { background: rgba(255,244,224,.16); }
.settings .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; }
.settings .row > span { font-size: 17px; }
.seg { display: flex; background: rgba(255,244,224,.1); border-radius: 14px; padding: 3px; }
.seg button { min-height: 44px; min-width: 48px; padding: 0 9px; border-radius: 11px; font-size: 15px; }
.seg button.on { background: #ffc93c; color: #23183a; }

/* the card */
.card-ready { text-align: center; }
.card-ready h1 { font-size: 40px; margin: 6px 0 8px; }
.clock { text-align: center; font-size: 44px; font-weight: 800; color: #ffc93c; margin: -4px 0 8px; }
.clock.low { color: #ff6b5e; }
.cardwrap { background: #fff4e0; color: #23183a; border-radius: 26px; padding: 14px; box-shadow: 0 8px 0 rgba(0,0,0,.3); }
.cardwrap .rule { text-align: center; font-size: 16px; font-weight: 800; color: #b3261e; margin-bottom: 6px; }
.cardwrap .hint { margin-top: 8px; font-size: 14px; }
.word { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 76px; margin-top: 10px; border-radius: 18px; padding: 10px 18px; font-size: 26px; font-weight: 800; text-align: left; background: #fff; border: 3px solid #e6dcc8; color: #23183a; }
.word:after { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #d4c8b2; flex: none; margin-left: 10px; }
.word.on { background: #2fb36b; border-color: #2fb36b; color: #fff; }
.word.on:after { content: '\2713'; border-color: #fff; color: #fff; text-align: center; line-height: 28px; font-size: 22px; }
.tally { font-size: 40px; font-weight: 800; color: #ffc93c; }
.dispute { display: block; width: 100%; min-height: 120px; border-radius: 26px; background: #e8433a; color: #fff; font-size: 27px; font-weight: 800; margin-top: 20px; box-shadow: 0 8px 0 #8f1f19; }
.dispute:active { transform: translateY(4px); box-shadow: 0 4px 0 #8f1f19; }

/* result */
.result h1 { text-align: center; margin-bottom: 12px; }
.list { list-style: none; }
.list li { background: rgba(255,244,224,.1); border-radius: 14px; padding: 12px 16px; margin: 8px 0; font-size: 21px; color: rgba(255,244,224,.6); }
.list li.on { background: #2fb36b; color: #fff; }
.list li.on:before { content: '\2713  '; }
.decide p { margin: 16px 0 4px; text-align: center; }
.big.yes { background: #e8433a; color: #fff; }
.big.no { background: #2fb36b; color: #fff; }
.won { border-radius: 26px; padding: 30px 18px; text-align: center; color: #23183a; margin-bottom: 8px; }
.won h1 { font-size: 38px; }
.won p { margin-top: 10px; font-size: 20px; }

.veil { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(29,20,51,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; z-index: 5; }
.veil h1 { font-size: 46px; color: #ffc93c; margin-bottom: 20px; }
.veil .big, .veil .ghost { max-width: 420px; }
