/* Don't Drop It! — TV + phone. Builds on /tiles/tiles.css (same show look); Kita's art is in /art/dropit/. */

/* ============================== TV ============================== */
.dtv .tstage { background-image: url(/art/dropit/stage.jpg); }
.dtv .thead .ttitle img { height: 16vh; }
.dtv .thow { top: 15vh; }
.strophy { height: 16vh; filter: drop-shadow(0 0 3vh rgba(255,207,58,.7)); animation: hop .9s ease-in-out infinite; }
.sskip { position: absolute; right: 1.6vw; top: 1.4vh; z-index: 5; padding: .6vh 1.2vw; font-size: 1.8vh; }

.dgrid { position: absolute; left: 22vw; right: 22vw; top: 27vh; bottom: 10vh; display: grid; gap: 1.4vh 1vw; align-content: center;
  grid-template-columns: repeat(var(--cols, 4), 1fr); }
.dcard { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: .6vw; padding: 1.2vh 1vw; border-radius: 1.6vh;
  background: rgba(6,12,52,.86); border: .35vh solid var(--green); box-shadow: 0 0 1.6vh rgba(44,255,106,.4); min-height: 17vh; overflow: hidden; }
.dcard.low { border-color: var(--gold); box-shadow: 0 0 1.6vh rgba(255,207,58,.5); }
.dcard.danger { border-color: var(--red); box-shadow: 0 0 2vh rgba(255,52,72,.6); }
.dcard .who { display: grid; justify-items: center; gap: .4vh; align-self: center; }
.dcard .f { font-size: 6vh; line-height: 1; }
.dcard .n { font: 900 1.9vh Nunito, sans-serif; max-width: 9vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard .left { display: grid; justify-items: end; align-self: start; position: absolute; right: 1vw; top: 1vh; font: 900 1.4vh Nunito, sans-serif; letter-spacing: .04em; text-align: right; line-height: 1.1; }
.dcard .left b { font: 700 5vh/1 Fredoka, sans-serif; color: var(--green); }
.dcard.low .left b { color: var(--gold); } .dcard.danger .left b { color: var(--red); }
.dstack { --bw: 5.6vh; display: flex; flex-direction: column-reverse; align-items: center; justify-self: center; transform-origin: 50% 100%; transition: transform .45s ease-out; }
.dstack img { width: var(--bw); height: calc(var(--bw) * .58); object-fit: contain; display: block; margin-top: calc(var(--bw) * -.12); }
.dstack .tray { width: calc(var(--bw) * 2); height: auto; margin-top: calc(var(--bw) * -.05); }
.dcard.dropped { border-color: #555c7a; box-shadow: none; filter: grayscale(1) brightness(.75); }
.dcard .stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-10deg); padding: .6vh 1.2vw; border: .45vh solid var(--red); border-radius: 1vh;
  font: 700 3.6vh Fredoka, sans-serif; color: #fff; background: rgba(160,10,30,.85); filter: none; box-shadow: 0 0 2vh rgba(255,52,72,.8); animation: tpopin .4s; white-space: nowrap; }
.dcard.lost { animation: dshake .5s; }
@keyframes dshake { 20% { transform: translateX(-1vh); } 40% { transform: translateX(1vh); } 60% { transform: translateX(-.6vh); } 80% { transform: translateX(.6vh); } }

.dlist { top: 19vh; bottom: 46vh; }
.dtv .thost { left: auto; right: 1.6vw; bottom: 5.4vh; width: 15vh; height: 15vh; }
.dtv .thostname { left: auto; right: 1.6vw; bottom: 2.4vh; width: 16vh; }
.dtv .codechip { left: auto; right: 1.6vw; top: 57vh; bottom: auto; }
.prow .h { margin-left: auto; font-weight: 900; color: var(--green); flex: none; }

.dwind { position: absolute; inset: 20vh 0 8vh; z-index: 3; pointer-events: none; overflow: hidden; }
.dwind img { position: absolute; width: 40vw; opacity: .85; animation: dblow 2.6s linear forwards; }
.dwind img:nth-child(1) { top: 10%; } .dwind img:nth-child(2) { top: 45%; width: 22vw; animation-delay: .3s; } .dwind img:nth-child(3) { top: 70%; animation-delay: .6s; }
.dwind.right img { left: -45vw; } .dwind.left img { right: -45vw; transform: scaleX(-1); }
.dwind.right img { animation-name: dblowR; } .dwind.left img { animation-name: dblowL; }
@keyframes dblowR { to { left: 110vw; } }
@keyframes dblowL { to { right: 110vw; } }
.dgust { position: absolute; left: 50%; top: 27vh; transform: translateX(-50%); z-index: 4; padding: 1vh 2.4vw; border-radius: 1.4vh; font: 700 5vh Fredoka, sans-serif;
  color: var(--gold); background: rgba(160,10,30,.9); border: .4vh solid #ffb3bb; box-shadow: 0 0 3vh rgba(255,52,72,.8); animation: tpop .4s; }

/* ============================== PHONE ============================== */
body.dphone2 { background: #061040 url(/art/dropit/stage.jpg) center top / cover no-repeat fixed; overflow: hidden; }
.dphone2 .plogo { width: min(200px, 56vw); }
.dphone2.busy .plogo { display: none; }
.dphone2 .pclock { width: 72px; height: 72px; }
.dphone2 .pclock b { font-size: 24px; }
.dplay { position: relative; width: 100%; max-width: 420px; height: 46vh; min-height: 300px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, rgba(58,160,255,.35), rgba(6,10,44,.75) 70%); border: 2px solid rgba(58,160,255,.6); }
.dplay.gust { animation: dgustbg .3s ease-in-out infinite alternate; }
@keyframes dgustbg { to { box-shadow: inset 0 0 40px rgba(120,200,255,.8); } }
.dtower { position: absolute; left: 50%; bottom: 46px; width: 0; }
.dtower img { position: absolute; left: 0; width: 96px; transform-origin: 50% 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.dtray { position: absolute; left: 50%; bottom: 14px; width: 250px; transform: translateX(-50%); transform-origin: 50% 50%; }
.dfall { position: absolute; width: 96px; pointer-events: none; animation: dfall 1s ease-in forwards; }
@keyframes dfall { to { transform: translate(var(--fx, 160px), 360px) rotate(var(--fr, 120deg)); opacity: 0; } }
.dmeter { position: relative; width: 100%; max-width: 420px; height: 22px; border-radius: 99px; border: 2px solid rgba(255,255,255,.6);
  background: linear-gradient(90deg, #ff3448 0, #ff9d1a 18%, #2cff6a 38%, #2cff6a 62%, #ff9d1a 82%, #ff3448 100%); box-shadow: 0 0 12px rgba(0,0,0,.5); }
.dmeter i { position: absolute; top: -8px; left: 50%; width: 4px; height: 34px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px #fff, 0 0 2px #000; }
.dleft { display: flex; align-items: baseline; gap: 8px; padding: 6px 16px; border-radius: 14px; background: rgba(6,10,44,.88); border: 2px solid var(--green); font: 900 15px Nunito, sans-serif; letter-spacing: .05em; }
.dleft b { font: 700 32px/1 Fredoka, sans-serif; color: var(--green); }
.dleft.low { border-color: var(--gold); } .dleft.low b { color: var(--gold); }
.dleft.danger { border-color: var(--red); } .dleft.danger b { color: var(--red); }
.dpad { width: 100%; max-width: 420px; height: 64px; border-radius: 16px; border: 2px dashed rgba(255,255,255,.5); background: rgba(6,10,44,.8); display: grid; place-items: center;
  font: 800 13px Nunito, sans-serif; color: #cfe0ff; touch-action: none; user-select: none; -webkit-user-select: none; position: relative; }
.dpad i { position: absolute; top: 8px; bottom: 8px; width: 46px; border-radius: 12px; background: rgba(255,207,58,.85); box-shadow: 0 0 12px var(--gold); left: calc(50% - 23px); pointer-events: none; }
.dwarn { padding: 8px 14px; border-radius: 12px; font: 800 15px Nunito, sans-serif; background: rgba(160,10,30,.9); border: 2px solid #ffb3bb; }
.dwarn.gusty { background: rgba(20,60,160,.9); border-color: #9fd4ff; font: 700 20px Fredoka, sans-serif; }
.dmotion { padding: 10px 14px; border-radius: 99px; border: 2px solid var(--gold); background: rgba(6,10,44,.9); color: #fff; font: 800 15px Nunito, sans-serif; cursor: pointer; }

/* layout fixes after the first test (2026-10-05) */
.dtv .codechip > span:nth-child(2), .stv .codechip > span:nth-child(2) { display: none; }
.dtv .codechip { right: auto; left: 1.6vw; top: 40vh; }
.dtv .thost, .stv .thost { bottom: 10vh; }
.dtv .thostname, .stv .thostname { bottom: 7vh; }
.dphone2.busy .preact { display: none; }
.dphone2.busy .pmain { gap: 6px; padding-bottom: 16px; }
.dphone2.busy .pbanner { font-size: 20px; padding: 7px 10px; }
.dphone2 .dplay { height: 40vh; min-height: 260px; }
.dphone2.busy .pclock { width: 60px; height: 60px; }
.dphone2.busy .pclock b { font-size: 20px; }
.dphone2.busy .pclock small { font-size: 7px; }

/* the TV's Restart + Skip buttons, top right */
.sctl { position: absolute; right: 1.6vw; top: 1.4vh; z-index: 7; display: flex; gap: .6vw; }
.sctl .btn { padding: .6vh 1.2vw; font-size: 1.8vh; }

/* big groups (13-50 players): small cards, no stack picture */
.dgrid.compact { gap: .7vh .5vw; top: 26vh; bottom: 3vh; }
.dgrid.compact .dcard { min-height: 0; padding: .5vh .5vw; grid-template-columns: 1fr; border-width: .25vh; }
.dgrid.compact .dstack { display: none; }
.dgrid.compact .who { display: flex; gap: .3vw; justify-content: flex-start; }
.dgrid.compact .f { font-size: 2.4vh; } .dgrid.compact .n { font-size: 1.4vh; max-width: 6vw; }
.dgrid.compact .left { position: static; display: flex; gap: .3vw; justify-content: flex-start; font-size: 1vh; }
.dgrid.compact .left br { display: none; } .dgrid.compact .left b { font-size: 2.2vh; }
.dgrid.compact .stamp { font-size: 1.6vh; padding: .2vh .5vw; }
.dgrid.compact .left { font-size: 0; } .dgrid.compact .left::before { content: '🧱'; font-size: 1.7vh; }
