/* The pile's stage: the plate, the ruler, and the marks on the glass. */
.world { position: fixed; inset: 0; overflow: hidden; color: var(--w-ink); --w-ink: #14131a; --plate: #f7f3e9; --plate-ink: #15141b; --plate-2: rgba(21, 20, 27, 0.62); --plate-line: rgba(21, 20, 27, 0.2); font-family: Anybody, ui-sans-serif, system-ui, sans-serif; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: color 0.3s; }
.world[data-ink="light"] { --w-ink: #f6f2e9; }
html[data-theme="dark"] .world { --plate: #101117; --plate-ink: #f3efe6; --plate-2: rgba(243, 239, 230, 0.62); --plate-line: rgba(243, 239, 230, 0.2); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .world { --plate: #101117; --plate-ink: #f3efe6; --plate-2: rgba(243, 239, 230, 0.62); --plate-line: rgba(243, 239, 230, 0.2); } }
.world > canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; outline: none; }
.plate { position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 14fr); background: var(--plate); color: var(--plate-ink); border-radius: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); }
.p-screen, .p-thing { all: unset; box-sizing: border-box; display: flex; flex-direction: column; padding: 10px 12px 12px; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.p-screen { border-right: 1px solid var(--plate-line); }
.plate .k { font-size: 10.5px; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; font-stretch: 100%; color: var(--plate-2); white-space: nowrap; }
.plate .n { font-size: 38px; line-height: 1.05; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.plate .u { font-size: 12.5px; line-height: 1.2; font-weight: 500; font-stretch: 86%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate b { font-size: 21px; line-height: 1.12; font-weight: 700; font-stretch: 84%; margin-top: 4px; }
.plate .s { font-size: 12.5px; line-height: 1.25; font-weight: 500; font-stretch: 86%; margin-top: 3px; }
.plate .c { font-size: 11px; line-height: 1.2; font-stretch: 86%; color: var(--plate-2); margin-top: 2px; }
.plate .c[hidden] { display: none; }
.p-bar { grid-column: 1 / -1; position: relative; height: 18px; border-top: 1px solid var(--plate-line); overflow: hidden; }
.p-bar i { position: absolute; left: 12px; top: 7px; width: 400px; height: 4px; background: currentColor; transform-origin: 0 50%; }
.p-bar span { position: absolute; right: 12px; top: 3px; font-size: 10.5px; font-weight: 500; }
.ruler { position: absolute; right: 0; top: 74px; bottom: calc(178px + env(safe-area-inset-bottom)); width: 34px; touch-action: none; cursor: ns-resize; }
.ruler canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: difference; }
.ruler i { position: absolute; right: 0; top: 0; width: 26px; height: 2px; margin-top: -1px; background: #ff3d2e; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); will-change: transform; }
.ruler i::after { content: ""; position: absolute; left: -7px; top: -4px; border: 5px solid transparent; border-left-color: #ff3d2e; }
.hint { position: absolute; left: 14px; top: 62px; width: 152px; margin: 0; font-size: 15px; line-height: 1.22; font-weight: 600; font-stretch: 90%; transition: opacity 0.4s; }
.hint.gone { opacity: 0; }
.tip { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity 0.25s; pointer-events: none; will-change: transform; }
.tip.on { opacity: 1; }
.tip::before { content: ""; position: absolute; left: 3px; top: -0.5px; width: 22px; height: 1px; background: currentColor; }
.tip span { position: absolute; left: 30px; top: -8px; width: 126px; font-size: 11px; line-height: 1.2; font-weight: 500; font-stretch: 88%; }
.tip.left::before { left: auto; right: 3px; }
.tip.left span { left: auto; right: 30px; text-align: right; }
.note { position: absolute; left: 14px; right: 44px; top: 62px; font-size: 16px; line-height: 1.25; font-weight: 600; font-stretch: 90%; }
.ghost { position: absolute; left: 50%; bottom: 210px; margin-left: -22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); border: 2px solid #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); pointer-events: none; opacity: 0; }
.ghost span { position: absolute; left: 54px; top: 10px; white-space: nowrap; padding: 3px 8px; border-radius: 3px; background: var(--plate); color: var(--plate-ink); font-size: 13px; font-weight: 700; font-stretch: 92%; }
.ghost.go { animation: ghost 2.6s ease-in-out infinite; }
@keyframes ghost { 0%, 12% { opacity: 0; transform: translateY(40px) scale(1.15); } 22% { opacity: 1; transform: translateY(40px) scale(1); } 62% { opacity: 1; transform: translateY(-190px); } 78%, 100% { opacity: 0; transform: translateY(-210px) scale(1.15); } }
.thumb { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.thumb u { display: block; width: var(--d); height: var(--d); border-radius: 50%; border: 1.5px solid #ff3d2e; box-sizing: border-box; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
.thumb span { position: absolute; left: 0; bottom: calc(100% + 10px); width: 190px; padding: 8px 10px; background: var(--plate); color: var(--plate-ink); border-radius: 3px; font-size: 12px; line-height: 1.25; font-stretch: 90%; }
.thumb b { font-size: 19px; display: block; font-stretch: 90%; }
.thumb i { display: block; font-style: normal; color: var(--plate-2); margin-top: 2px; }
.thumb i::before { content: "As wide as "; }
.thumb.flip span { bottom: auto; top: calc(100% + 10px); }
.thumb.left span { left: auto; right: 0; }
.carry { position: absolute; left: 14px; top: 62px; font-size: 13px; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.has-world body { overflow-x: clip; }
.is-home .world { position: relative; height: 100vh; height: 100svh; }
.is-home .site-head { position: fixed; }
.world-fallback { position: absolute; inset: 80px 20px auto; max-width: 30rem; font-family: var(--d-font-ui, Anybody); }
.world-fallback h1 { font-size: 30px; line-height: 1.05; font-weight: 800; font-stretch: 110%; margin: 0 0 12px; }
.world.is-on .world-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.world:not(.is-on) .plate, .world:not(.is-on) .ruler, .world:not(.is-on) .hint { display: none; }
.below { max-width: 40rem; margin: 0 auto; padding: 56px var(--d-gutter, 16px) 0; box-sizing: content-box; }
.below h2 { font-family: var(--d-font-display); font-size: var(--d-step-3); line-height: 1; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; margin: 0 0 16px; }
.below-links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; font-family: var(--d-font-ui); }
.below-links a { display: flex; min-height: 48px; align-items: center; border-top: 1px solid var(--d-line); font-weight: 700; font-size: 18px; text-decoration: none; }
.below-links a::after { content: "→"; margin-left: auto; color: var(--d-accent); }
.glass { position: absolute; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom) + var(--plate-h, 112px) + 10px); display: flex; flex-direction: row; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 4px; box-sizing: border-box; border-radius: 3px; text-decoration: none; color: var(--plate-ink); background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0.4)); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14), inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.glass img { width: 34px; height: 34px; object-fit: contain; }
.world--inline { position: relative; inset: auto; height: min(78svh, 680px); margin: 18px calc(-1 * var(--d-gutter, 16px)) 0; touch-action: pan-y; border-top: 1.5px solid var(--d-ink, #15141b); border-bottom: 1.5px solid var(--d-ink, #15141b); }
.world--inline > canvas { touch-action: pan-y; }
.world--inline .ruler { top: 14px; }
.world-say { margin: 8px 0 0; font-family: var(--d-font-ui, Anybody); font-size: 13px; font-weight: 600; font-stretch: 92%; color: var(--d-muted, #666); }
.world--inline .plate .k { font-size: 10px; }
@media (min-width: 720px) { .plate { right: auto; width: min(560px, calc(100% - 80px)); left: 16px; bottom: 16px; } .hint { width: 220px; font-size: 18px; top: 74px; left: 20px; } }
.is-carrying .hint, .is-yours .hint { opacity: 0; }
.send { all: unset; position: absolute; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom) + var(--plate-h, 112px) + 10px); display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border-radius: 3px; background: var(--plate); color: var(--plate-ink); font-size: 14px; font-weight: 700; font-stretch: 92%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); cursor: pointer; }
.send svg { width: 18px; height: 18px; }
.send:focus-visible { outline: 2px solid #ff3d2e; }
@media (min-width: 720px) { .send { right: auto; left: calc(16px + min(560px, 100% - 80px) + 10px); bottom: 16px; } }
.glass[hidden], .send[hidden] { display: none; }
.world:not(.is-on) { position: relative; height: auto; min-height: 60vh; touch-action: auto; user-select: text; -webkit-user-select: text; }
.world:not(.is-on) > canvas, .world:not(.is-on) .glass, .world:not(.is-on) .send, .world:not(.is-on) .tip { display: none; }
.world:not(.is-on) .world-fallback { position: static; padding: 88px var(--d-gutter, 16px) 0; max-width: 40rem; margin: 0 auto; }
.plain-pile { padding: 0; margin: 20px 0 0; list-style: none; columns: 2 16rem; column-gap: 24px; font-size: 15px; line-height: 1.35; }
.plain-pile li { break-inside: avoid; padding: 4px 0; border-top: 1px solid var(--d-line, rgba(0, 0, 0, 0.12)); display: flex; gap: 8px; justify-content: space-between; }
.plain-pile span { color: var(--d-muted, #666); white-space: nowrap; }
.world.is-on .plain-pile { display: none; }
.plate .n[data-len="5"], .plate .n[data-len="6"] { font-size: 32px; }
.plate .n[data-len="7"], .plate .n[data-len="8"], .plate .n[data-len="9"] { font-size: 25px; line-height: 1.3; }
.p-bar span { background: var(--plate); padding-left: 8px; }
.is-home .site-head::before { content: ""; position: absolute; inset: 0 0 -26px; z-index: -1; pointer-events: none; background: linear-gradient(var(--here, transparent) 45%, transparent); }
.past-world .site-head::before { display: none; }
