/* Opa Gerrit · spelschermen (tv, telefoon, dagelijks), merk "Mandarijn". Bouwt op site.css. */

/* ---------- shared pieces ---------- */
.av{display:inline-grid; place-items:center; width:40px; height:40px; border-radius:50%; color:#1B1A26; font:800 18px/1 var(--display); flex:none; box-shadow:inset 0 0 0 2px rgba(27,26,38,.12)}
.av.lg{width:64px; height:64px; font-size:28px}
.av.sm{width:30px; height:30px; font-size:14px}

.msg{position:relative; background:#fff; color:#1B1A26; border-radius:22px; box-shadow:0 2px 4px rgba(27,26,38,.06), 0 18px 40px rgba(27,26,38,.14); overflow:visible}
.msg-head{display:flex; gap:12px; align-items:center; padding:14px 18px; border-bottom:1px solid #EFEDF3}
.msg-ic{width:42px; height:42px; border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:700; flex:none}
.msg-head b{display:block; line-height:1.2} .msg-head small{color:#6b6977; font-size:13px}
.msg-body{padding:16px 18px 20px; display:grid; gap:10px}
.msg-bub{background:#F4F2F8; border-radius:18px 18px 18px 6px; padding:12px 14px; line-height:1.45; animation:pop-in .35s ease-out both}
.msg-bub:nth-child(2){animation-delay:.5s}
.msg mark{background:transparent; color:inherit; border-radius:4px; padding:0 2px}
.msg.revealed mark{background:#FFD6C2; box-shadow:0 0 0 2px #FFD6C2}
.msg.revealed mark::after{content:attr(data-n); display:inline-grid; place-items:center; width:20px; height:20px; margin-left:5px; border-radius:50%; background:#1B1A26; color:#fff; font:700 12px/1 var(--body); vertical-align:.2em}
.msg.revealed .msg-bub{animation:none}
.msg .stamp, .site .stamp{position:absolute; top:-18px; right:-10px; font-size:32px}
.slam{animation:slam .5s cubic-bezier(.2,1.4,.4,1) both}

.flags{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.flags li{display:grid; grid-template-columns:28px minmax(0,1fr); gap:12px; align-items:start; line-height:1.4}
.flags i{font-style:normal; width:28px; height:28px; border-radius:50%; background:#FF5E1A; color:#1B1A26; display:grid; place-items:center; font:800 14px/1 var(--display)}

.site{position:relative; background:#fff; color:#1B1A26; border-radius:18px; box-shadow:0 2px 4px rgba(27,26,38,.06), 0 18px 40px rgba(27,26,38,.14); overflow:visible}
.site-bar{display:flex; align-items:center; gap:10px; padding:10px 12px; background:#F1EFF5; border-radius:18px 18px 0 0}
.site-label{width:34px; height:34px; border-radius:50%; background:#1B1A26; color:#fff; display:grid; place-items:center; font:800 18px/1 var(--display); flex:none}
.site-url{font-family:var(--mono); font-size:14px; background:#fff; border-radius:99px; padding:6px 12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0}
.site-body{padding:16px 18px 18px; display:grid; gap:8px}
.site-name{font-family:var(--display); font-size:22px}
.site-prod{color:#5a5866}
.site-price{font-family:var(--display); font-weight:800; font-size:30px} .site-price s{font-size:18px; color:#8a8a8a; font-weight:600}
.site ul{margin:0; padding-left:18px; display:grid; gap:4px; font-size:15px}
.site-pay{font-size:14px; font-weight:700; background:#F4F2F8; border-radius:10px; padding:8px 10px}
.site.is-fake{outline:4px solid #E4361B; outline-offset:4px}

.gerrit-says{display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; align-items:end}
.gerrit-says img{width:72px; height:72px}
.gerrit-says .say{background:#CDB9FF; color:#1B1A26; border-radius:20px 20px 20px 6px; padding:12px 16px; font-family:var(--display); font-weight:700; line-height:1.2}

@keyframes pop-in{from{opacity:0; transform:translateY(10px) scale(.98)}}
@keyframes ring{0%{transform:scale(.9); opacity:1} 100%{transform:scale(1.5); opacity:0}}
@keyframes bob{50%{transform:translateY(-4px)}}

/* ---------- TV ---------- */
.tv-body{background:#1B1A26; color:#F4F2F8; min-height:100vh; overflow-x:hidden}
.tv{min-height:100vh; display:grid; grid-template-rows:auto minmax(0,1fr) auto; padding:clamp(16px,2.4vw,40px) max(clamp(16px,3vw,56px), env(safe-area-inset-left,0px)); gap:clamp(14px,2vw,28px); font-size:clamp(17px,1.5vw,28px)}
.tv-top{display:flex; justify-content:space-between; align-items:center; gap:16px}
.tv-top .logo span{color:#fff; font-size:clamp(22px,2vw,34px)}
.tv-top .logo small{display:none}
.tv-top .logo img{width:clamp(44px,3.6vw,64px); height:auto}
.tv-pill{font-family:var(--mono); font-size:clamp(13px,1.1vw,18px); background:rgba(255,255,255,.08); border-radius:99px; padding:8px 16px; white-space:nowrap; color:#E7E4F0}
.tv-main{display:grid; align-content:center; gap:clamp(16px,2vw,32px); min-height:0}
.tv-h{font-family:var(--display); font-weight:800; font-size:clamp(34px,4.6vw,88px); line-height:.98; letter-spacing:-.035em; margin:0; text-wrap:balance}
.tv-sub{font-size:clamp(18px,1.7vw,32px); color:#C9C6D6; margin:0}
.tv-grid{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(18px,3vw,56px); align-items:center}
@media (max-width:820px){ .tv-grid{grid-template-columns:minmax(0,1fr)} }
.tv .msg{font-size:clamp(18px,1.7vw,32px)}
.tv .msg-head b{font-size:clamp(17px,1.4vw,26px)} .tv .msg-ic{width:clamp(40px,3vw,58px); height:clamp(40px,3vw,58px)}
.tv .flags li{font-size:clamp(17px,1.5vw,28px)} .tv .flags i{width:clamp(28px,2.2vw,40px); height:clamp(28px,2.2vw,40px)}
.tv .gerrit-says img{width:clamp(96px,9vw,180px); height:auto}
.tv .gerrit-says .say{font-size:clamp(18px,1.8vw,32px)}

.tv-code{display:flex; gap:clamp(8px,1vw,18px)}
.tv-code span{width:clamp(64px,7vw,130px); aspect-ratio:3/4; background:#FF5E1A; color:#1B1A26; border-radius:20px; display:grid; place-items:center; font:800 clamp(44px,5.4vw,104px)/1 var(--display); box-shadow:0 14px 30px rgba(255,94,26,.25)}
.tv-url{font-family:var(--display); font-weight:800; font-size:clamp(22px,2.4vw,44px); color:#FF8A55}
.tv-players{display:flex; flex-wrap:wrap; gap:12px}
.tv-player{display:flex; align-items:center; gap:10px; background:#fff; color:#1B1A26; border-radius:99px; padding:6px 16px 6px 6px; font-weight:700; font-size:clamp(16px,1.3vw,24px)}
.tv-player.off{opacity:.45}
.tv-player .st{font-size:.85em; color:#127A55; font-weight:800} .tv-player .st.bad{color:#E4361B}
.tv-timer{height:10px; border-radius:99px; background:rgba(255,255,255,.12); overflow:hidden}
.tv-timer i{display:block; height:100%; background:#FF5E1A; width:100%; transition:width .25s linear}
.tv-foot{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap}
.tv .btn{font-size:clamp(17px,1.4vw,26px)}
.tv-setup{max-width:760px}
.tv-setup input{font:800 clamp(24px,2.4vw,40px)/1 var(--display); letter-spacing:.08em; text-transform:uppercase; padding:16px 20px; border:0; border-radius:18px; width:100%; max-width:420px; background:#fff; color:#1B1A26}
.tv-setup input:focus-visible{outline:4px solid #FF5E1A; outline-offset:3px}
.tv-err{background:#E4361B; color:#fff; border-radius:14px; padding:10px 16px; font-weight:700}

.tv-bars{display:grid; gap:14px}
.tv-bar{display:grid; grid-template-columns:minmax(120px,22%) minmax(0,1fr) 3ch; gap:16px; align-items:center; font-weight:700}
.tv-bar .track{height:clamp(28px,2.6vw,48px); background:rgba(255,255,255,.1); border-radius:99px; overflow:hidden}
.tv-bar .fill{height:100%; width:0; background:#FF5E1A; border-radius:99px; transition:width 1s cubic-bezier(.2,.8,.2,1)}
.tv-bar b{font-family:var(--display); font-size:1.3em; text-align:right}

.call{background:#262433; border-radius:26px; padding:clamp(18px,2vw,32px); display:grid; gap:16px}
.call-who{display:flex; align-items:center; gap:18px}
.call-av{width:clamp(64px,5.6vw,104px); height:clamp(64px,5.6vw,104px); border-radius:50%; display:grid; place-items:center; color:#fff; font:800 clamp(24px,2vw,38px)/1 var(--display); position:relative}
.call-av.ring::after{content:""; position:absolute; inset:-10px; border-radius:50%; border:3px solid rgba(255,255,255,.4); animation:ring 1.3s infinite}
.call-who b{display:block; font-family:var(--display); font-size:clamp(22px,2vw,38px)} .call-who small{font-family:var(--mono); color:#B9B6C6}
.call-line{background:rgba(255,255,255,.07); border-radius:18px; padding:14px 18px; line-height:1.4}
.opts{display:grid; gap:12px}
.opt{display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px; align-items:start; background:#fff; color:#1B1A26; border-radius:18px; padding:12px 16px}
.opt .k{width:clamp(32px,2.6vw,48px); height:clamp(32px,2.6vw,48px); border-radius:50%; background:#1B1A26; color:#FF8A55; display:grid; place-items:center; font:800 clamp(18px,1.6vw,28px)/1 var(--display)}
.opt.good{background:#D9F2E6} .opt.bad{background:#FDE3DC}
.opt .reply{display:block; margin-top:6px; font-style:italic; color:#4A4956}
.opt .who{display:flex; gap:4px; margin-top:8px; flex-wrap:wrap}

.sites{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,2.4vw,44px)}
@media (max-width:760px){ .sites{grid-template-columns:minmax(0,1fr)} }
.tv .site{font-size:clamp(16px,1.3vw,24px)} .tv .site-name{font-size:clamp(20px,1.8vw,32px)} .tv .site-price{font-size:clamp(26px,2.4vw,44px)}

.score-list{display:grid; gap:12px}
.score-row{display:grid; grid-template-columns:auto auto minmax(0,1fr) auto; gap:16px; align-items:center; background:#fff; color:#1B1A26; border-radius:20px; padding:10px 18px; animation:pop-in .4s ease-out both}
.score-row .pos{font:800 clamp(22px,2vw,36px)/1 var(--display); width:2ch}
.score-row b{font-family:var(--display); font-size:clamp(20px,1.7vw,30px)} .score-row small{display:block; color:#C9440A; font-weight:700}
.score-row .pts{font:800 clamp(24px,2.2vw,40px)/1 var(--display)}
.score-row.first{background:#FF5E1A}
.score-row.first small{color:#3A2416}

.title-card{position:fixed; inset:0; z-index:50; display:grid; place-items:center; background:#FF5E1A; color:#1B1A26; animation:title-in 2.4s ease both; pointer-events:none}
.title-card div{text-align:center; display:grid; gap:12px; justify-items:center}
.title-card .n{font-family:var(--mono); font-size:clamp(18px,1.6vw,30px); text-transform:uppercase; letter-spacing:.1em}
.title-card h2{font-size:clamp(56px,8vw,150px)}
.title-card img{width:clamp(110px,10vw,180px); animation:bob 1s ease-in-out infinite}
@keyframes title-in{0%{opacity:0; transform:scale(1.04)} 10%,82%{opacity:1; transform:none} 100%{opacity:0}}

/* ---------- phone ---------- */
.ph-body{background:#FFFFFF; color:#1B1A26; min-height:100vh}
.ph{max-width:520px; margin:0 auto; min-height:100vh; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); padding-left:max(18px, env(safe-area-inset-left,0px)); padding-right:max(18px, env(safe-area-inset-right,0px)); padding-block:10px 28px}
.ph-top{display:flex; justify-content:space-between; align-items:center; gap:12px; padding-bottom:12px; border-bottom:1px solid #ECE9F2}
.ph-top .logo span{font-size:20px} .ph-top .logo img{width:38px; height:38px}
.ph-main{display:grid; grid-template-columns:minmax(0,1fr); align-content:start; gap:18px; padding-top:22px}
.ph-main > *{min-width:0}
.ph-h{font-family:var(--display); font-weight:800; font-size:clamp(28px,7vw,40px); line-height:1; letter-spacing:-.03em; margin:0; text-wrap:balance}
.ph-p{color:#4A4956; margin:0}
.ph label{font-weight:700; display:grid; gap:6px}
.ph input{font:600 22px/1.2 var(--body); padding:14px 16px; border:1.5px solid #DCD8E4; border-radius:16px; background:#fff; color:#1B1A26; width:100%}
.ph input.code{font:800 34px/1 var(--display); letter-spacing:.2em; text-transform:uppercase; text-align:center}
.ph input:focus-visible{outline:3px solid #FF5E1A; outline-offset:1px; border-color:transparent}
.ph .btn{width:100%; font-size:20px; padding:19px; white-space:normal; text-align:center; line-height:1.15}
.big2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.big2 .btn{padding:32px 10px; font:800 26px/1 var(--display); border-radius:24px}
.choice{display:grid; gap:12px}
.choice .btn{justify-content:flex-start; text-align:left; white-space:normal; line-height:1.25; font-size:19px; padding:16px 18px; border-radius:20px}
.choice .btn .k{width:34px; height:34px; border-radius:50%; background:#1B1A26; color:#FF8A55; display:grid; place-items:center; font:800 18px/1 var(--display); flex:none}
.ph-wait{display:grid; justify-items:center; gap:14px; text-align:center; padding-block:30px}
.ph-wait img{width:120px; animation:bob 1.4s ease-in-out infinite}
.ph-result{border-radius:24px; padding:26px; text-align:center; display:grid; gap:6px}
.ph-result.good{background:#D9F2E6} .ph-result.bad{background:#FDE3DC} .ph-result.neutral{background:#FF5E1A}
.ph-result .pts{font:800 64px/1 var(--display); letter-spacing:-.04em}
.ph-err{background:#E4361B; color:#fff; border-radius:14px; padding:12px 14px; font-weight:700}
.ph-players{display:flex; flex-wrap:wrap; gap:8px}
.ph .tv-player{background:#F4F2F8}
.ph .msg .stamp{right:8px; top:-16px; font-size:28px}

@media (prefers-reduced-motion: reduce){ .title-card{animation-duration:1.2s} }
