.chain-screen{width:100%;max-width:560px;flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;min-height:0}.chain-stage{flex:1;min-height:0;width:100%;display:grid;place-items:center;overflow:auto}.chain{--cols: 6;--rows: 5;--tile: clamp(30px, min(calc((100vw - 48px) / var(--cols) - 6px), calc((100dvh - 430px) / (var(--rows) * 1.45))), 52px);display:flex;flex-direction:column;align-items:center;perspective:600px}.row{display:flex;gap:6px}.tile{width:var(--tile);height:var(--tile);display:grid;place-items:center;border-radius:calc(var(--tile) * .22);font-size:calc(var(--tile) * .52);font-weight:900;line-height:1;color:var(--text);transition:background .2s,box-shadow .2s}.tile.given{background:linear-gradient(180deg,#8d9bff,#5b6cf5);box-shadow:inset 0 1px #ffffff59,0 3px #3b47b8}.tile.solved{background:linear-gradient(180deg,#4cf0a0,#1fae6b);color:#06281a;box-shadow:inset 0 1px #ffffff73,0 3px #13764a}.tile.shown{background:linear-gradient(180deg,#7fe8ff,#2bb8d8);color:#062530;box-shadow:inset 0 1px #ffffff73,0 3px #17809a}.tile.revealed{background:linear-gradient(180deg,#ffe07a,#f5a50b);color:#3a2300;box-shadow:inset 0 1px #ffffff80,0 3px #b46a00}.tile.typed{background:#2f3878;box-shadow:inset 0 0 0 2px #9aa6ff,0 3px #141838}.tile.empty{background:#00000040;box-shadow:inset 0 0 0 2px var(--line-strong)}.row.active .tile.empty{box-shadow:inset 0 0 0 2px #7c8cffb3,0 0 14px #7c8cff40}.row.active .tile.empty:first-of-type,.row.active .tile.revealed+.tile.empty{animation:caret 1.1s ease-in-out infinite}.row.locked{opacity:.45}@keyframes caret{50%{box-shadow:inset 0 0 0 2px #fff,0 0 18px #fff6}}.link{height:calc(var(--tile) * .45);display:grid;place-items:center}.link i{width:2px;height:70%;border-radius:2px;background:var(--line-strong)}.link.made span{padding:1px 10px;border-radius:99px;font-size:clamp(.62rem,calc(var(--tile) * .26),.8rem);font-weight:900;letter-spacing:.12em;color:var(--good);background:#3ee08f1f;box-shadow:inset 0 0 0 1px #3ee08f66;animation:pop-in .4s var(--ease-spring) both}.hint-btn{min-height:40px;padding:0 18px;font-size:.9rem}@media(orientation:landscape)and (max-height:600px){.chain-screen{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);align-content:center;column-gap:24px;row-gap:8px}.chain-screen>*{grid-column:2}.chain-screen>.chain-stage{grid-column:1;grid-row:1 / span 4;height:100%}.chain{--tile: clamp(22px, min(calc((50vw - 48px) / var(--cols) - 6px), calc((100dvh - 110px) / (var(--rows) * 1.45))), 44px)}.key{height:clamp(30px,10dvh,42px)}.chain-screen>.hint-btn{justify-self:center}}
