body{display:flex;justify-content:center;background:#04110d}
.app{position:relative;width:100%;max-width:430px;height:100vh;height:100dvh;overflow:hidden}
.scroller{height:100%;overflow-y:auto;overflow-x:hidden;padding:0 16px 16px;display:flex;flex-direction:column;gap:10px}
.garland{flex:none;margin:0 -16px}
.logo{height:66px;width:auto;align-self:center;filter:invert(1);mix-blend-mode:screen}
h1{margin:0;font-size:38px;line-height:1;text-align:center;color:var(--gold);text-shadow:0 2px 0 rgba(0,0,0,.35)}
.status{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tag{font-size:14px;font-weight:600}.right{display:flex;align-items:center;gap:10px}
.count{font-size:13px;font-weight:700;color:var(--gold);white-space:nowrap}
.reset{border:1.5px solid var(--gold);background:transparent;color:var(--cream);font:600 12px 'Lora',serif;border-radius:999px;padding:0 12px;min-height:44px;cursor:pointer}
.reset:hover{background:var(--gold);color:#0d3327}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cell{position:relative;aspect-ratio:1;perspective:420px;border:0;padding:0;border-radius:10px;background:radial-gradient(circle at 60% 40%,#5a1a1f 0%,#2b0d10 75%);color:var(--cream);font-family:'Lora',serif;cursor:pointer;text-align:left;box-shadow:inset 0 0 0 1.5px var(--gold)}
.cell.open{z-index:0}
.under{position:absolute;inset:0;overflow:hidden;border-radius:10px;padding:9px 4px 7px 22px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}
.under svg{fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:26px;height:26px}
.under span{font-size:10px;font-weight:700;line-height:1.1;white-space:nowrap}
.door{position:absolute;inset:0;border-radius:10px;overflow:hidden;transform-origin:left center;transition:transform .7s cubic-bezier(.2,.7,.2,1);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.35)}
.cell.open .door{transform:rotateY(-80deg)}
.cell.locked{opacity:.4;cursor:not-allowed}
.door .v{position:absolute;top:0;bottom:0;left:50%;width:10px;margin-left:-5px}
.door .h{position:absolute;left:0;right:0;top:50%;height:10px;margin-top:-5px}
.door .n{position:absolute;left:50%;top:50%;width:42px;height:42px;margin:-21px 0 0 -21px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Berkshire Swash',cursive;font-size:22px;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.note{margin:0;font-size:12px;line-height:1.4;color:var(--gold);text-align:center}
#pad{flex:none;height:16px;transition:height .3s}
.app.sheet-open #pad{height:250px}
.sheet{position:absolute;left:0;right:0;bottom:0;z-index:5;background:var(--cream);color:var(--ink);border-top:3px solid var(--gold);border-radius:22px 22px 0 0;padding:16px;display:flex;flex-direction:column;gap:12px;transform:translateY(105%);transition:transform .35s ease}
.app.sheet-open .sheet{transform:none;transition-delay:.55s}
.row1{display:flex;justify-content:space-between;align-items:center}.rl{display:flex;align-items:center;gap:8px}
.date{font-size:13px;font-weight:700;color:#14503a}
.pill{font-size:11px;font-weight:700;background:var(--red);color:var(--cream);border-radius:999px;padding:3px 10px;white-space:nowrap}
.close{width:44px;height:44px;border:0;background:transparent;border-radius:50%;color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.close:hover{background:#ead9b8}.close svg,.cta svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.row2{display:flex;gap:12px;align-items:flex-start}
.round{flex:none;width:56px;height:56px;border-radius:50%;background:#14503a;display:flex;align-items:center;justify-content:center}
.round svg{fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.row2 h2{margin:0 0 4px;font-size:25px;line-height:1.1;color:#9c1c26}.row2 p{margin:0;font-size:15px;line-height:1.45}
.cta{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:999px;background:var(--red);color:var(--cream);font-size:16px;font-weight:700;text-decoration:none;box-shadow:0 3px 0 #7a141c}
.cta:hover{background:#9c1c26}
@media (min-width:431px){.app{height:min(100vh,860px);margin:auto;border-radius:28px;box-shadow:0 20px 50px rgba(0,0,0,.5)}body{align-items:center}}
