/* Greenhouse design — lifted from prototype/design-variants.prototype.html (variant A). */
* { box-sizing: border-box; }
button { font: inherit; cursor: pointer; }
/* shared bits */
.spk { position: absolute; pointer-events: none; animation: twinkle 2.6s ease-in-out infinite; z-index: 0; }
@keyframes twinkle { 0%,100% { opacity: .15; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }
.tv > * { position: relative; }
.tv > .spk, .tv > .ff, .tv > .abs { position: absolute; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* ======================= VARIANT A — Greenhouse ======================= */
.vA { font-family: 'Fredoka', system-ui, sans-serif; color: #1d3b2a; }
.tv.vA, .vA.phone-page, .vA.tv-page { background: radial-gradient(circle at 12% 8%, #c4f6d8 0, transparent 42%), radial-gradient(circle at 92% 95%, #ffd0e6 0, transparent 48%), linear-gradient(160deg, #e5fff1, #fff7dd 55%, #ffe6f2); }
.vA .spk { color: #ffb400; }
.vA .a-decor { position: absolute; z-index: 0; opacity: .9; pointer-events: none; }
.a-lobby { display: grid; grid-template-columns: 430px 1fr; gap: 52px; padding: 56px 64px; height: 100%; z-index: 1; }
.a-qrcard { background: rgba(255,255,255,.78); backdrop-filter: blur(8px); border: 3px solid #fff; border-radius: 40px; padding: 30px; box-shadow: 0 24px 60px rgba(43,182,115,.2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.a-kicker { font-size: 24px; font-weight: 600; color: #2b8a57; }
.a-qr { width: 300px; height: 300px; padding: 16px; background: #fff; border-radius: 26px; border: 4px dashed #2bb673; }
.a-scan { font-size: 34px; font-weight: 700; color: #14532d; }
.a-url { font-size: 19px; color: #5b8a6d; }
.a-right { display: flex; flex-direction: column; gap: 14px; }
.a-title { font-size: 66px; font-weight: 700; line-height: 1; color: #14532d; letter-spacing: -1px; }
.a-title span { color: #ff5fa2; }
.a-title.sm { font-size: 54px; }
.a-sub { font-size: 23px; color: #3f7a57; }
.a-counts { display: flex; gap: 12px; margin: 4px 0 6px; }
.a-pill { background: #d6f8e4; color: #14532d; border-radius: 999px; padding: 8px 18px; font-size: 24px; font-weight: 500; display: inline-block; }
.a-pill.pink { background: #ffd9ea; color: #a8326b; }
.a-plants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.a-plant { background: rgba(255,255,255,.85); border-radius: 28px; padding: 14px 10px 12px; text-align: center; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(20,83,45,.08); animation: pop .5s both; }
.a-plant.wait { background: rgba(255,255,255,.45); border: 3px dashed #b9e6cb; box-shadow: none; }
.a-pe { font-size: 54px; line-height: 1.1; }
.a-plant:not(.wait) .a-pe { animation: bob 3s ease-in-out infinite; }
.a-pn { font-size: 23px; font-weight: 600; }
.a-ps { font-size: 16px; color: #c2477f; }
.a-plant.wait .a-ps { color: #7a9a86; }
.a-round { padding: 42px 56px 38px; display: flex; flex-direction: column; height: 100%; gap: 26px; z-index: 1; }
.a-head { display: flex; align-items: center; gap: 24px; }
.a-avatar { width: 112px; height: 112px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 66px; box-shadow: 0 0 0 9px rgba(255,201,60,.45), 0 14px 30px rgba(0,0,0,.08); }
.a-head h2 { font-size: 56px; margin: 0; line-height: 1; color: #14532d; }
.a-q { font-size: 25px; color: #3f7a57; margin-bottom: 6px; }
.a-roundtag { margin-left: auto; background: #fff; border-radius: 999px; padding: 10px 22px; font-size: 22px; font-weight: 600; color: #2b8a57; }
.a-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; flex: 1; min-height: 0; }
.a-card { background: #fff; border-radius: 38px; padding: 34px 30px 26px; position: relative; box-shadow: 0 18px 40px rgba(20,83,45,.12); display: flex; flex-direction: column; gap: 20px; border: 4px solid transparent; transition: .3s; }
.a-card p { font-size: 33px; line-height: 1.2; font-weight: 500; margin: 0; }
.a-letter { width: 70px; height: 70px; border-radius: 50% 6px 50% 6px; background: #2bb673; color: #fff; font-size: 38px; font-weight: 700; display: grid; place-items: center; flex: none; }
.a-letter.sm { width: 40px; height: 40px; font-size: 22px; }
.c0 .a-letter, .a-letter.c0 { background: #2bb673; } .c1 .a-letter { background: #ff6fae; } .c2 .a-letter { background: #4fb6f2; }
.a-card.truth { opacity: .78; }
.a-card.lie { transform: rotate(-1.5deg) scale(1.03); border-color: #ff6fae; background: #fff3f8; box-shadow: 0 24px 50px rgba(255,111,174,.3); }
.a-tag { position: absolute; top: -20px; right: 22px; padding: 8px 18px; border-radius: 999px; font-size: 21px; font-weight: 700; background: #d6f8e4; color: #14532d; }
.lie .a-tag { background: #ff6fae; color: #fff; font-size: 24px; }
.a-votes { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a-vc { font-size: 20px; font-weight: 600; color: #5b8a6d; margin-right: 6px; }
.a-vb { width: 46px; height: 46px; border-radius: 50%; background: #f0faf4; display: grid; place-items: center; font-size: 26px; animation: pop .4s both; }
.a-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.a-voted { background: #14532d; color: #fff; border-radius: 999px; padding: 10px 20px; font-size: 22px; font-weight: 600; }
.a-chip { background: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 20px; display: flex; gap: 6px; align-items: center; }
.a-chip.off { opacity: .35; }
.a-big { font-size: 34px; font-weight: 600; color: #14532d; }
.a-big b { color: #e2408a; }
.a-sub2 { font-size: 21px; color: #3f7a57; }
.a-res { padding: 44px 56px; display: grid; grid-template-columns: 1fr 380px; gap: 44px; height: 100%; z-index: 1; }
.a-resL { display: flex; flex-direction: column; gap: 6px; }
.a-podium { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding-top: 10px; }
.a-pod { width: 210px; text-align: center; }
.a-pode { font-size: 80px; animation: bob 2.6s ease-in-out infinite; }
.a-podn { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.a-podbar { border-radius: 28px 28px 10px 10px; color: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 16px; font-weight: 700; }
.a-podbar span { font-size: 56px; line-height: 1; } .a-podbar small { font-size: 22px; opacity: .9; }
.p0 .a-podbar { height: 250px; background: linear-gradient(#ffcf3f, #ffad1f); }
.p1 .a-podbar { height: 180px; background: linear-gradient(#7ad9a6, #2bb673); }
.p2 .a-podbar { height: 130px; background: linear-gradient(#ff9cc6, #ff6fae); }
.a-resR { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.a-award { background: #fff; border-radius: 30px; padding: 20px 24px; box-shadow: 0 14px 30px rgba(255,111,174,.18); border: 3px solid #ffd0e5; }
.a-award.blue { border-color: #c4e7fb; box-shadow: 0 14px 30px rgba(79,182,242,.18); }
.a-aw-k { font-size: 20px; color: #a8326b; font-weight: 600; } .a-award.blue .a-aw-k { color: #2a7fb3; }
.a-aw-v { font-size: 36px; font-weight: 700; } .a-aw-s { font-size: 18px; color: #5b8a6d; }
.a-rest { background: rgba(255,255,255,.6); border-radius: 24px; padding: 12px 20px; font-size: 20px; display: grid; gap: 4px; }
.a-rest div { display: flex; gap: 10px; } .a-rest span { color: #7a9a86; width: 20px; } .a-rest b { margin-left: auto; }
/* A phone */
.a-ph { padding: 58px 18px 26px; display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.a-phtop { display: flex; justify-content: space-between; align-items: center; }
.a-logo { font-size: 18px; font-weight: 700; color: #14532d; }
.a-me { background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 15px; font-weight: 500; }
.a-box { background: rgba(255,255,255,.88); border-radius: 26px; padding: 16px; box-shadow: 0 8px 24px rgba(20,83,45,.08); display: flex; flex-direction: column; gap: 10px; }
.a-box label { font-size: 15px; font-weight: 600; color: #3f7a57; }
.a-in { width: 100%; border: 2px solid #cdeedb; border-radius: 16px; padding: 11px 13px; font: inherit; font-size: 17px; background: #fff; color: inherit; resize: none; outline: none; }
.a-in:focus { border-color: #2bb673; }
.a-emg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.a-em { aspect-ratio: 1; border-radius: 14px; background: #f1fdf6; font-size: 24px; border: 2px solid transparent; padding: 0; transition: .15s; }
.a-em.on { border-color: #2bb673; background: #d6f8e4; transform: scale(1.1); }
.a-sts { display: flex; flex-direction: column; gap: 10px; }
.a-st { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 18px; padding: 10px; border: 2px solid #e6f5ec; }
.a-st.lie { border-color: #ff6fae; background: #fff4f9; }
.a-lie { align-self: flex-start; border-radius: 999px; padding: 5px 12px; font-size: 14px; border: 2px solid #ffd0e5; background: #fff; color: #c2477f; }
.a-lie.on { background: #ff6fae; color: #fff; border-color: #ff6fae; }
.a-btn { background: linear-gradient(#36c981, #22a564); color: #fff; font-size: 21px; font-weight: 700; border: 0; border-radius: 999px; padding: 17px; box-shadow: 0 7px 0 #157a46; margin: 4px 0 8px; }
.a-ghost { background: #fff; border: 2px solid #cdeedb; color: #2b8a57; border-radius: 999px; padding: 12px 18px; font-size: 16px; font-weight: 600; }
.a-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.a-center .a-box { align-self: stretch; text-align: left; }
.a-bloom { font-size: 110px; line-height: 1; animation: pop .6s both, bob 3s 0.6s ease-in-out infinite; }
.a-h { font-size: 30px; font-weight: 700; color: #14532d; line-height: 1.1; }
.a-h.md { font-size: 24px; } .a-h.sm { font-size: 20px; }
.a-p { font-size: 17px; color: #3f7a57; line-height: 1.35; } .a-p.sm { font-size: 14px; } .a-p.center { text-align: center; }
.a-prog { height: 14px; background: #e2f5ea; border-radius: 99px; overflow: hidden; }
.a-prog i { display: block; height: 100%; background: linear-gradient(90deg, #2bb673, #ffc93c); border-radius: 99px; }
.a-mini { display: flex; gap: 6px; font-size: 26px; flex-wrap: wrap; } .a-mini .off { opacity: .25; filter: grayscale(1); }
.a-subj { flex-direction: row; align-items: center; gap: 12px; }
.a-se { font-size: 44px; }
.a-opt { display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border-radius: 22px; padding: 15px; border: 3px solid transparent; font-size: 18px; color: inherit; box-shadow: 0 6px 16px rgba(20,83,45,.08); transition: .15s; }
.a-opt.on { border-color: #ff6fae; background: #fff1f8; transform: scale(1.02); }
.a-lieis { display: flex; gap: 10px; align-items: center; font-size: 18px; font-weight: 500; }
.a-dock { background: #14532d; color: #fff; border-radius: 22px; padding: 13px 15px; display: flex; flex-direction: column; gap: 6px; }
.a-dk { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #a6e9c2; }
.a-ds { font-size: 19px; font-weight: 600; } .a-dsub { font-size: 13px; color: #b9dcc7; }
.a-dbtns { display: flex; gap: 8px; margin-top: 4px; }
.a-dbtn { flex: 1; background: #ffc93c; color: #14532d; border: 0; border-radius: 14px; padding: 11px; font-size: 16px; font-weight: 700; }
.a-dbtn.sec { background: rgba(255,255,255,.14); color: #fff; flex: .7; }

/* ======================= app additions (not in the prototype) ======================= */
html, body { margin: 0; }
.vA.phone-page, .vA.tv-page { background-attachment: fixed; }

/* --- TV: a fixed 1280×720 stage scaled to fill the screen --- */
.tv-page { height: 100vh; overflow: hidden; cursor: default; }
.tv-page.idle { cursor: none; }
.tv { width: 1280px; height: 720px; position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; overflow: hidden; }
.tv .a-qr svg { width: 100%; height: 100%; display: block; }
.a-plants.many { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.a-plants.many .a-plant { padding: 10px 6px 8px; border-radius: 22px; }
.a-plants.many .a-pe { font-size: 40px; }
.a-plants.many .a-pn { font-size: 19px; }
.a-plants.many .a-ps { font-size: 14px; }
.a-plants.lots { grid-template-columns: repeat(6, 1fr); gap: 9px; }
.a-plants.lots .a-plant { padding: 7px 4px 6px; border-radius: 18px; border-width: 2px; }
.a-plants.lots .a-pe { font-size: 30px; }
.a-plants.lots .a-pn { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-plants.lots .a-ps { font-size: 12px; }
.a-pn { overflow: hidden; text-overflow: ellipsis; }
.a-plant.offline { opacity: .45; filter: grayscale(.6); }
.a-plant.seed { background: rgba(255,255,255,.35); border: 3px dashed #cdeedb; box-shadow: none; animation: none; }
.a-plant.seed .a-pe { opacity: .5; }
.a-card p.md { font-size: 27px; } .a-card p.sm { font-size: 22px; }
.a-chip.offline { opacity: .35; filter: grayscale(1); }
.a-pod { width: 210px; }
.a-podn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-rest .more { color: #7a9a86; justify-content: center; }
.a-empty { font-size: 26px; color: #3f7a57; text-align: center; padding: 30px; }
.tv-hint { position: fixed; right: 16px; bottom: 14px; font: 600 14px 'Fredoka', system-ui, sans-serif; color: #2b8a57; background: rgba(255,255,255,.8); border-radius: 999px; padding: 8px 14px; transition: opacity .6s; z-index: 10; }
.tv-hint.gone { opacity: 0; pointer-events: none; }

/* --- connection badge (TV + phone) --- */
.conn { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 50; background: #14532d; color: #fff; font: 600 14px 'Fredoka', system-ui, sans-serif; padding: 7px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(20,83,45,.25); }
.conn[hidden] { display: none; }

/* --- phone page --- */
.phone-page { min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
.phone-page .a-ph { padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px calc(env(safe-area-inset-bottom, 0px) + 26px); min-height: 100dvh; max-width: 480px; margin: 0 auto; }
.phone-page .a-box label small { font-weight: 500; color: #7a9a86; }
.a-btn:active { transform: translateY(3px); box-shadow: 0 4px 0 #157a46; }
.a-btn:disabled, .a-dbtn:disabled { opacity: .5; cursor: not-allowed; }
.a-err { background: #ffe1ee; color: #a8326b; border-radius: 16px; padding: 10px 14px; font-size: 15px; font-weight: 500; }
.a-err:empty { display: none; }
.a-count { font-size: 12px; color: #7a9a86; text-align: right; margin-top: -4px; }
.a-opt { width: 100%; }
.a-opt:disabled { cursor: default; }
.a-rows { display: flex; flex-direction: column; gap: 6px; }
.a-row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.a-row b { margin-left: auto; }
.a-row.me { font-weight: 700; color: #14532d; }
.a-dlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.a-dx { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: 5px 10px; font-size: 13px; }
.a-takeover { background: #fff7dd; border: 2px dashed #ffc93c; border-radius: 22px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.a-takeover .a-p { font-size: 14px; }
.a-link { background: none; border: 0; color: #2b8a57; font-size: 15px; font-weight: 600; text-decoration: underline; padding: 6px; }
.slot { display: contents; }
.a-toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; max-width: 440px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 60; pointer-events: none; text-align: center;
  background: #a8326b; color: #fff; border-radius: 18px; padding: 12px 16px; font: 600 16px 'Fredoka', system-ui, sans-serif; box-shadow: 0 10px 30px rgba(168,50,107,.35); animation: pop .3s both; }
.a-toast[hidden] { display: none; }
.a-dbtn { animation: arm .6s both; } /* new host buttons "arm" visibly; taps during this are ignored (double-tap guard) */
@keyframes arm { from { opacity: .4; } to { opacity: 1; } }
.a-dbtn:disabled { animation: none; }
