/* The phone screen for a team. */
html { font-size: 17px; }
body { background: #4a32b0; min-height: 100%; }
#app { max-width: 32rem; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; padding: env(safe-area-inset-top) .9rem calc(env(safe-area-inset-bottom) + .9rem); }
#me { display: flex; align-items: center; gap: .6rem; padding: .7rem .2rem; color: #fff; font-weight: 600; font-size: 1.15rem; }
#me .dot { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--c); border: .17rem solid #fff; flex: none; }
#me .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#me .pts { background: #fff; color: var(--ink); border-radius: 999px; padding: .05rem .9rem; font-variant-numeric: tabular-nums; font-size: 1.25rem; }
#me .pts.bump { animation: pop .5s; }
#view { flex: 1; display: flex; flex-direction: column; }
#net { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); padding: .4rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; z-index: 60; }

.panel { flex: 1; display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem; border: var(--b) solid var(--ink); border-radius: 1.6rem; background: var(--cream); box-shadow: var(--drop); animation: rise .35s both; }
.panel.r-r1 { background: #d9f4ff; } .panel.r-b { background: #fff0c9; } .panel.r-j { background: #dfe5ff; }
.panel.r-dz { background: #221d40 repeating-linear-gradient(135deg, rgba(255, 210, 63, .08) 0 1.6rem, transparent 1.6rem 3.2rem); color: #fff; }
.kicker { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .92rem; }
.kicker .pill { color: var(--ink); }
.kicker .pill.dark { color: #fff; }
h1.q { font-size: 1.55rem; line-height: 1.2; font-weight: 600; text-wrap: balance; }
.big { font-size: 1.6rem; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.soft { color: var(--ink-soft); font-weight: 500; } .r-dz .soft { color: rgba(255, 255, 255, .78); }
.grow { flex: 1; } .center { text-align: center; }

.wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; text-align: center; color: #fff; padding: 1rem; }
.wait .mascot { width: 11rem; }
.wait .soft { color: rgba(255, 255, 255, .8); }
.wait ul { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-direction: column; gap: .45rem; }
.wait li { padding: .4rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 500; }
.wait .rank { font-size: 4.5rem; font-weight: 700; line-height: 1; }

/* join */
.join { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #fff; text-align: center; }
.logo { font-size: 3.6rem; font-weight: 700; line-height: 1; letter-spacing: .03em; -webkit-text-stroke: .16rem var(--ink); paint-order: stroke fill; text-shadow: 0 .3rem 0 var(--ink); }
.logo b { color: var(--red); }
.join .mascot { width: 9.5rem; }
.join form { width: 100%; display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem; text-align: left; color: var(--ink); }
.join label { font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.join input { width: 100%; padding: .6rem .9rem; border: var(--b) solid var(--ink); border-radius: 1rem; font-size: 1.3rem; font-weight: 600; background: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.sw { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: var(--b) solid var(--ink); background: var(--c); padding: 0; }
.sw.on { outline: .25rem solid var(--ink); outline-offset: .18rem; transform: scale(1.06); }
.err { min-height: 1.3rem; color: var(--bad); font-weight: 600; }
.join .btn { font-size: 1.35rem; margin-top: .2rem; }

/* answers */
.choices { display: flex; flex-direction: column; gap: .7rem; }
.tap { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .7rem .9rem; border: var(--b) solid var(--ink); border-radius: 1.1rem; background: #fff; box-shadow: 0 .3rem 0 var(--ink); font-size: 1.3rem; font-weight: 600; text-align: left; color: var(--ink); transition: transform .08s, box-shadow .08s; }
.tap:active { transform: translateY(.2rem); box-shadow: 0 .1rem 0 var(--ink); }
.tap b { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; border: var(--b) solid var(--ink); background: var(--oc, var(--yellow)); }
.tap:nth-child(1) { --oc: var(--red); } .tap:nth-child(2) { --oc: var(--blue); } .tap:nth-child(3) { --oc: var(--yellow); } .tap:nth-child(4) { --oc: var(--green); } .tap:nth-child(5) { --oc: var(--purple); } .tap:nth-child(6) { --oc: var(--orange); }
.tap.on { background: var(--ink); color: #fff; }
.tap.on b { color: var(--ink); }
.tap.right { background: var(--good-bg); } .tap.right::after { content: "\2713"; margin-left: auto; font-size: 1.5rem; color: var(--good); }
.tap.miss { background: var(--bad-bg); } .tap.miss::after { content: "\2717"; margin-left: auto; font-size: 1.5rem; color: var(--bad); }
.tap.dim { opacity: .45; box-shadow: none; }
.tap[disabled] { cursor: default; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.yn .tap { justify-content: center; font-size: 2rem; min-height: 6.5rem; letter-spacing: .05em; }
.yn .tap.pass { grid-column: 1 / -1; min-height: 3.4rem; font-size: 1.2rem; letter-spacing: 0; }
.yn .tap.right::after, .yn .tap.miss::after { margin-left: .6rem; }
.textin { display: flex; gap: .5rem; }
.textin input { flex: 1; min-width: 0; padding: .6rem .9rem; border: var(--b) solid var(--ink); border-radius: 1rem; font-size: 1.25rem; font-weight: 600; }
.result { padding: .8rem 1rem; text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--ink); animation: pop .45s both; }
.result.correct { background: var(--good-bg); } .result.wrong { background: var(--bad-bg); animation: shake .4s both; }
.result small { display: block; font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.note { font-size: .95rem; text-align: center; }

/* danger zone */
.dz-title { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--red); -webkit-text-stroke: .1rem #000; paint-order: stroke fill; text-shadow: 0 .18rem 0 #000; }
.marbles { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.pick { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .1rem .35rem; border: var(--b) solid var(--ink); border-radius: 1rem; background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; box-shadow: 0 .25rem 0 #000; }
.pick .marble { width: 100%; max-width: 3.4rem; }
.pick.on { background: var(--yellow); transform: translateY(-.25rem); }
.stake { padding: .9rem; color: var(--ink); display: flex; flex-direction: column; gap: .6rem; }
.stake .amt { display: flex; align-items: baseline; justify-content: center; gap: .5rem; font-weight: 700; }
.stake .amt b { font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stake input[type=range] { width: 100%; accent-color: var(--red); height: 2rem; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.quick .btn { padding: .4em 0; font-size: 1rem; box-shadow: 0 .22rem 0 var(--ink); background: #fff; }
.dare { padding: .65rem .9rem; display: flex; flex-direction: column; gap: .1rem; text-align: center; color: var(--ink); background: var(--yellow); }
.dare b { font-size: 1.15rem; }
.dare span { font-size: .98rem; font-weight: 500; }
.dare.done { background: var(--good-bg); }
.panel .btn.go { font-size: 1.4rem; background: var(--green); color: var(--ink); }
.mine { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.mine .marble { width: 9rem; animation: m-bob 1.6s ease-in-out infinite; }

/* the board on a phone */
.mini { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: .3rem; }
.mini .cat { display: grid; place-items: center; min-height: 2.9rem; padding: .15rem; border-radius: .6rem; background: var(--ink); color: #fff; font-size: .64rem; overflow-wrap: anywhere; font-weight: 600; line-height: 1.05; text-align: center; overflow: hidden; hyphens: auto; }
.mini .tile { min-height: 3.1rem; border: .16rem solid var(--ink); border-radius: .7rem; background: var(--yellow); font-size: 1.3rem; font-weight: 700; color: var(--ink); box-shadow: 0 .2rem 0 var(--ink); padding: 0; }
.mini .tile:active { transform: translateY(.15rem); box-shadow: none; }
.mini .tile.used { background: #b9c1e6; color: transparent; box-shadow: none; border-color: rgba(45, 42, 74, .3); }
.mini .tile.gone { visibility: hidden; }
.cluecard { padding: 1rem; text-align: center; color: var(--ink); display: flex; flex-direction: column; gap: .6rem; }
.dbl { font-size: 2.2rem; font-weight: 700; color: var(--orange); -webkit-text-stroke: .08rem var(--ink); paint-order: stroke fill; animation: pop .5s both; }
