:root { color-scheme:light; --canvas:#eef4f7; --ink:#263443; }
@font-face {
  font-family: nyt-franklin;
  src: local("NYT Franklin Bold"), local("NYTFranklin-Bold");
  font-style: normal;
  font-weight: 700;
}
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; background:var(--canvas); font-family:"Trebuchet MS","Avenir Next",system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
button { font:inherit; }
.console { position:relative; isolation:isolate; min-height:100vh; min-height:100svh; display:grid; align-items:center; overflow:hidden; }
.backdrop { position:absolute; z-index:-1; inset:0; display:grid; grid-template:100% / 100%; place-items:center; overflow:hidden; pointer-events:none; }
.backdrop .icon-frame { --icon-size:112vmax; grid-area:1/1; width:var(--icon-size); border:0; border-radius:0; background:var(--tile); box-shadow:none; filter:blur(9.6px) saturate(.62); opacity:.418; }
.backdrop .icon-frame::before,.backdrop .icon-frame::after { display:none; }
.backdrop .glyph { width:86%; height:86%; }
.backdrop .glyph.custom-image { width:100%; height:100%; border-radius:0; }
.backdrop .glyph.custom-image img { object-fit:cover; }
.backdrop::after { content:""; position:absolute; inset:0; background:linear-gradient(110deg,rgba(248,251,253,.67),rgba(243,248,251,.19) 63%,rgba(248,251,253,.36)); }
.library { --icon-size:clamp(104px,16vw,232px); --gutter:clamp(32px,8vw,156px); min-width:0; padding-block:env(safe-area-inset-top) env(safe-area-inset-bottom); }
.game-grid { --end-space:calc(var(--icon-size) * .16 + clamp(28px,4vw,48px) + env(safe-area-inset-right, 0px)); position:relative; display:flex; align-items:center; gap:calc(var(--icon-size) * .32); overflow-x:auto; scrollbar-width:none; scroll-snap-type:x mandatory; scroll-padding-inline-start:var(--gutter); padding:calc(var(--icon-size) * .22) 0 calc(var(--icon-size) * .22 + 48px) var(--gutter); }
.game-grid::-webkit-scrollbar { display:none; }
.game-grid { cursor:grab; user-select:none; }
.game-grid.manual-scroll { scroll-snap-type:none; }
.game-grid.dragging,.game-grid.dragging .game { cursor:grabbing; }
.game { position:relative; flex:0 0 var(--icon-size); min-width:0; border:0; background:transparent; padding:0; cursor:pointer; display:grid; justify-items:center; scroll-snap-align:start; -webkit-tap-highlight-color:transparent; }
.game:focus-visible { outline:0; }
.game:last-child { flex-basis:calc(var(--icon-size) + var(--end-space)); padding-inline-end:var(--end-space); scroll-snap-align:end; }
.icon-frame { position:relative; width:min(100%,var(--icon-size)); aspect-ratio:1; display:grid; place-items:center; container-type:inline-size; overflow:hidden; border-radius:27%; border:1px solid rgba(255,255,255,.76); background:var(--tile); box-shadow:0 9px 24px rgba(36,51,77,.18); transition:transform .16s ease,box-shadow .16s ease; }
.icon-frame::before { content:""; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(152deg,rgba(255,255,255,.46),rgba(239,245,255,.12) 48%,rgba(55,67,103,.2)); }
.icon-frame::after { content:""; position:absolute; z-index:3; inset:0; border-radius:inherit; pointer-events:none; box-shadow:inset 0 1px 2px rgba(255,255,255,.92),inset 1px 0 6px rgba(255,255,255,.46),inset 0 -2px 6px rgba(78,93,126,.23); }
.game.selected .icon-frame { transform:scale(1.32); box-shadow:0 13px 30px rgba(36,51,77,.24),0 0 22px rgba(255,255,255,.44); }
.game:focus-visible .icon-frame { outline:3px solid #274663; outline-offset:4px; }
.glyph { position:relative; z-index:2; display:grid; place-items:center; width:72%; height:72%; color:white; font-size:clamp(2.5rem,11vw,9rem); font-size:48cqi; font-weight:1000; line-height:1; text-shadow:0 4px 0 rgba(0,52,105,.28); }
.glyph.wordle { grid-template-columns:repeat(2,1fr); gap:4px; font-size:clamp(1.1rem,4.8vw,4.4rem); font-size:20cqi; text-shadow:none; }
.glyph.wordle i { width:100%; aspect-ratio:1; display:grid; place-items:center; border-radius:4px; background:#49ad57; border:2px solid rgba(255,255,255,.75); font-style:normal; }
.glyph.connections { grid-template-columns:repeat(4,1fr); gap:4px; }
.glyph.connections i { width:100%; aspect-ratio:1; border-radius:5px; background:var(--dot); box-shadow:inset 0 2px 2px rgba(255,255,255,.6); }
.glyph.custom-image { width:84%; height:84%; overflow:hidden; border-radius:22%; background:#000; }
.glyph.custom-image img { display:block; width:100%; height:100%; object-fit:cover; transform:scale(1.72); }
.glyph.dilgoble-image img { object-position:55.25% center; transform:translateY(-7.05%) scale(1.72); }
.glyph.krillion-image img { object-fit:contain; transform:none; }
.glyph.noillirk-image img { object-position:63% center; transform:none; }
.glyph.dilgetudle-image img { transform:none; }
.game .icon-frame:has(.custom-image) { border:0; background:none; box-shadow:none; }
.game .icon-frame:has(.custom-image)::before,
.game .icon-frame:has(.custom-image)::after { display:none; }
.game .glyph.custom-image { width:100%; height:100%; border-radius:inherit; background:none; }
.game .glyph.custom-image img { object-fit:cover; }
.game .glyph.noillirk-image img { object-position:68% center; transform:scale(1.095); }
.game-name { position:absolute; top:calc(100% + var(--icon-size) * .16 + 18px); left:calc(var(--icon-size) / 2); transform:translateX(-50%); white-space:nowrap; pointer-events:none; visibility:hidden; color:var(--ink); font-family:nyt-franklin,"Libre Franklin","Franklin Gothic","Helvetica Neue",Arial,sans-serif; font-size:clamp(1.3rem,2.7vw,2.25rem); font-weight:700; letter-spacing:-.02em; }
.game.selected .game-name { visibility:visible; }
@media (prefers-reduced-motion:reduce) { *{transition:none!important} }
