/* Where in the World: the map, the question, the pins. Shared tokens: games.css, play.css, library.css. */ /* The map is a material: a warm neutral sea and a land pulled from the felt green, in light and dark. */ .wm-main, .wm-frame { --wm-sea: var(--cell); --wm-land: color-mix(in srgb, var(--felt) 62%, var(--surface2)); --wm-coast: var(--felt); --wm-grid: color-mix(in srgb, var(--ink) 10%, transparent); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm-main, :root:not([data-theme="light"]) .wm-frame { --wm-land: color-mix(in srgb, var(--felt) 72%, #fff); --wm-coast: color-mix(in srgb, var(--felt) 50%, #fff); } } :root[data-theme="dark"] .wm-main, :root[data-theme="dark"] .wm-frame { --wm-land: color-mix(in srgb, var(--felt) 72%, #fff); --wm-coast: color-mix(in srgb, var(--felt) 50%, #fff); } .wm-main { width: min(760px, 100%); margin: 0 auto; } .wm-n { margin: 0; min-height: 1.2em; font-size: var(--fs-small); color: var(--ink2); } .wm-q { text-align: center; } .wm-q h2 { margin: 0; font-size: 26px; letter-spacing: -0.01em; text-wrap: balance; } .wm-q p { margin: 2px 0 0; min-height: 1.3em; color: var(--ink2); font-size: var(--fs-small); } .wm-frame { position: relative; width: 100%; border: 1px solid var(--line); border-radius: var(--r-sheet); overflow: hidden; background: var(--wm-sea); } .wm-svg { display: block; width: 100%; aspect-ratio: 1.6 / 1; height: auto; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; } .wm-sea { fill: var(--wm-sea); } .wm-land { fill: var(--wm-land); stroke: var(--wm-coast); stroke-width: 0.4; vector-effect: non-scaling-stroke; } .wm-grid line { stroke: var(--wm-grid); stroke-width: 1; vector-effect: non-scaling-stroke; } .wm-pin { stroke: var(--surface2); } .wm-pin.guess { fill: var(--accent); } .wm-pin.target { fill: var(--ok); } .wm-line { stroke: var(--ink); opacity: 0.7; } .wm-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; } .wm-zoom .ar-btn { width: var(--target); height: var(--target); padding: 0; font-size: var(--fs-sheet); line-height: 1; } .wm-info { max-width: 52ch; margin: 0; text-align: center; font-size: var(--fs-small); color: var(--ink2); } .wm-info a { color: var(--accent); font-weight: 600; text-decoration: none; } .wm-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } @media (max-width: 520px) { .wm-svg { aspect-ratio: 1.2 / 1; } }