/* ZimiGames: one stylesheet for the shelf and every game. Self-contained: the ZIM opens in Kiwix too, where nothing of Zimi's own styles exists. */ /* Tokens. Neutrals, amber and the type, radius and spacing steps are Zimi's own (zimi/static/app.css) under the names the games already use, so a game's CSS follows them without changing. A game's CSS uses a hex literal only for a material (felt, wood, card faces, suits, pieces, tiles), never for a UI neutral: docs/design/games.md. */ :root { --ground: #f2efe8; --surface: #fbfaf6; --surface2: #ffffff; --line: #e4dfd4; --line-strong: #8c826f; --ink: #26241f; --ink2: #6a675e; --ink3: #6f6b60; /* Amber, the only accent. Text and outlines use #9d4a08; white text on it is 7:1, so it also fills a button. */ --accent: #9d4a08; --accent-ink: #ffffff; --accent-glow: rgba(180, 83, 9, 0.10); --accent-line: rgba(180, 83, 9, 0.28); --select-ring: #f59e0b; --legal: rgba(245, 158, 11, 0.3); /* Selection: a dark 1px inner stroke and a 3px amber outer ring, so it reads on wood, felt and amber alike. */ --select: 0 0 0 1px rgba(26, 18, 9, 0.85), 0 0 0 4px var(--select-ring); --shadow-popup: 0 8px 32px rgba(60, 50, 30, 0.16); --scrim: rgba(242, 239, 232, 0.55); /* Felt is the cards' table: one hue, deep and quiet, with a soft vignette. Dark is darker, never brighter. */ --felt: #285c43; --felt-deep: #1a4130; --felt-line: rgba(255, 255, 255, 0.12); --card: #fdfcf8; --card-edge: #c9c4b8; --suit-red: #b3261e; --suit-black: #1b1b1b; --bevel-hi: #ffffff; --bevel-lo: #8a8478; --tile: #d9d3c4; /* Wood is a board frame: one pair for every board. */ --wood: #b88a58; --wood-dark: #8f6538; --wood-grain: 70, 40, 14; --wood-veil: transparent; /* Shape, space, type: three radii (6 chips and cells, 10 buttons and cards, 14 sheets and panels), a 4px grid, six type steps and the display size. */ --r-chip: 6px; --radius: 10px; --r-sheet: 14px; --gap: 12px; --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --gutter: 16px; --fs-caption: 11px; --fs-small: 13px; --fs-body: 15px; --fs-title: 17px; --fs-sheet: 20px; --fs-brand: 26px; --fs-display: 32px; --target: 44px; --bar-h: 56px; --column: 960px; --board-max: 720px; --font: -apple-system, Inter, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color-scheme: light; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ground: #0a0a0b; --surface: #141416; --surface2: #1c1c20; --line: #27272b; --line-strong: #27272b; --ink: #e8e8ed; --ink2: #8a8a94; --ink3: #6e6e7a; --accent: #f59e0b; --accent-ink: #0a0a0b; --accent-glow: rgba(245, 158, 11, 0.08); --accent-line: rgba(245, 158, 11, 0.25); --shadow-popup: 0 8px 32px rgba(0, 0, 0, 0.5); --scrim: rgba(0, 0, 0, 0.6); --felt: #17382a; --felt-deep: #0e2219; --felt-line: rgba(255, 255, 255, 0.1); --wood: #4a3524; --wood-dark: #2e2015; --wood-grain: 0, 0, 0; --wood-veil: rgba(18, 10, 4, 0.5); --bevel-hi: #5a5a62; --bevel-lo: #0c0c0e; --tile: #2e2e34; color-scheme: dark; } } :root[data-theme="dark"] { --ground: #0a0a0b; --surface: #141416; --surface2: #1c1c20; --line: #27272b; --line-strong: #27272b; --ink: #e8e8ed; --ink2: #8a8a94; --ink3: #6e6e7a; --accent: #f59e0b; --accent-ink: #0a0a0b; --accent-glow: rgba(245, 158, 11, 0.08); --accent-line: rgba(245, 158, 11, 0.25); --shadow-popup: 0 8px 32px rgba(0, 0, 0, 0.5); --scrim: rgba(0, 0, 0, 0.6); --felt: #17382a; --felt-deep: #0e2219; --felt-line: rgba(255, 255, 255, 0.1); --wood: #4a3524; --wood-dark: #2e2015; --wood-grain: 0, 0, 0; --wood-veil: rgba(18, 10, 4, 0.5); --bevel-hi: #5a5a62; --bevel-lo: #0c0c0e; --tile: #2e2e34; color-scheme: dark; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; } body { background: var(--ground); color: var(--ink); font: var(--fs-body)/1.45 var(--font); -webkit-tap-highlight-color: transparent; } button { font: inherit; color: inherit; } /* Focus is a 2px amber ring at a 2px offset on everything. */ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* A game's bar: back to the shelf, the game's name, one stat, Undo (or Pause), Menu. 56px tall; the bar and the page share one centred column on wide screens (960px), so Back and Menu never sit a whole desktop apart. */ .ar-bar { flex: none; display: flex; align-items: center; gap: var(--sp-2); min-height: var(--bar-h); padding: 0 max(var(--gutter), calc((100% - var(--column)) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); } .ar-bar > * { flex: none; } .ar-bar h1 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--fs-title); font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* The way back is the ZimiGames mark and a chevron: one 44px target. The page's own text (a single chevron) stays for screen readers and is not drawn. */ .ar-back { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: var(--target); min-height: var(--target); margin-left: -8px; font-size: 0; line-height: 0; text-decoration: none; color: var(--ink2); padding: 0 8px 0 6px; border-radius: var(--radius); } .ar-back::before { content: ""; width: 8px; height: 8px; margin-right: -1px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) scale(0.9); } .ar-back::after { content: ""; width: 24px; height: 24px; background: url(mark.svg) center / contain no-repeat; } .ar-back:hover { color: var(--accent); } /* In dark the pebble gets a 1px ring so it never vanishes into the bar: the one allowed change to it. The ground is no lighter than the bar, so the ring is the ink at 28 percent. */ /* Shown only without scripts (shell.js marks the root gs-js): Kiwix JS's restricted mode strips them. */ html.gs-js .gs-needjs { display: none; } .gs-needjs { margin: 12px auto; max-width: 30em; padding: 0 var(--gutter); font-size: 14px; text-align: center; opacity: .8; } /* The screen's safe edges (the home indicator, a notch in landscape). In a page of its own they are the browser's; inside Zimi's reader the frame hears 0 from WebKit, so the shell measures how far the frame reaches into Zimi's own and sets these on the root (shell.js, hostInsets). Use these, never env(safe-area-inset-*), in a game. */ :root { --host-bottom: 0px; --safe-b: calc(env(safe-area-inset-bottom, 0px) + var(--host-bottom)); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); } :root { --mark-ring: color-mix(in srgb, var(--ink) 28%, transparent); } :root[data-theme="dark"] .gs-m-stamp, :root[data-theme="dark"] .gs-home img, :root[data-theme="dark"] .ar-back::after, :root[data-theme="dark"] body:not(:has(> .ar-bar)) .ar-sheet-card h2::before { filter: drop-shadow(1px 0 0 var(--mark-ring)) drop-shadow(-1px 0 0 var(--mark-ring)) drop-shadow(0 1px 0 var(--mark-ring)) drop-shadow(0 -1px 0 var(--mark-ring)); } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-m-stamp, :root:not([data-theme="light"]) .gs-home img, :root:not([data-theme="light"]) .ar-back::after, :root:not([data-theme="light"]) body:not(:has(> .ar-bar)) .ar-sheet-card h2::before { filter: drop-shadow(1px 0 0 var(--mark-ring)) drop-shadow(-1px 0 0 var(--mark-ring)) drop-shadow(0 1px 0 var(--mark-ring)) drop-shadow(0 -1px 0 var(--mark-ring)); } } /* Inside Zimi's reader the shell already has a way back (its arrow and the ZimiGames crumb): the page's own would be a second one (recent.js sets .in-zimi). */ .in-zimi .ar-back { display: none; } .in-zimi .ar-bar { padding-left: var(--gutter); } /* Buttons: ghost by default (a 1px line, radius 10); 44px on touch, 36px on a fine pointer. One filled amber button per screen. */ .ar-btn { min-height: 36px; padding: 0 var(--sp-3) 1px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; white-space: nowrap; } @media (pointer: coarse) { .ar-btn { min-height: var(--target); } } .ar-btn[hidden] { display: none; } /* A bar button that is not available keeps its room so Menu never moves; it is unseen and unreachable. */ .ar-bar .ar-btn.gs-absent { visibility: hidden; } /* Hover is for a pointer: on a touch screen the last tap leaves the finger's place "hovered" and a second option looks chosen. */ @media (hover: hover) { .ar-btn:hover { border-color: var(--accent); color: var(--accent); } } .ar-btn[aria-pressed="true"], .ar-btn.gs-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } /* Disabled controls keep their place: ink3 text on the line border (the state is also in disabled / aria-disabled). */ .ar-btn:disabled, .ar-btn[aria-disabled="true"] { color: var(--ink3); background: var(--surface); border-color: var(--line); cursor: default; } .ar-btn:disabled:hover, .ar-btn[aria-disabled="true"]:hover { color: var(--ink3); border-color: var(--line); } /* The bar's one stat: a single value in 13px tabular sans. */ .ar-stat { font: 600 var(--fs-small) var(--font); font-variant-numeric: tabular-nums; color: var(--ink2); white-space: nowrap; } /* Pages that are not a felt table: the content starts under the bar, in one centred column. Space falls below it. */ .pl-main, .bg-main, .ms-main, .mj-main { flex: 1 0 auto; justify-content: flex-start; width: 100%; max-width: var(--column); margin-inline: auto; padding-bottom: max(var(--sp-5), var(--safe-b)); } @media (min-width: 700px) { .pl-main, .bg-main, .ms-main, .mj-main { justify-content: center; } } body:has(> main:is(.pl-main, .bg-main, .ms-main, .mj-main)) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; height: auto; } /* A card table runs to the foot of the screen: the felt fills the home indicator's strip and the table keeps its cards above it (padding on the body showed the page colour there, a white band under Blackjack on an iPhone). */ body.zc-game .zc-table { padding-bottom: var(--safe-b); } /* Bare grids (2048, Sudoku, Minesweeper, Sokoban) sit in one frame: radius 14, a 1px line, surface2, 12px padding. A wood board is its own frame and gets no card around it; felt tables stay full bleed. */ .gs-frame, .pl-main :is(.tf-board, .su-board, .sk-board), .ms-main .ms-box { padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--surface2); } /* A sheet over the game: a menu, a start, an end, a choice of backs. One anatomy: the title (20px), one line of text, option rows, actions last with the primary last. The scrim is the ground at 55 percent (black at 60 in dark); in dark the sheet is surface2 with a visible line. */ .ar-sheet { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--gutter); background: var(--scrim); z-index: 50; } .ar-sheet[hidden] { display: none; } /* The end of a game sits at the bottom, under the board just finished (a mate, a solved grid), with the scrim lighter: the position stays to be seen. */ .ar-sheet.gs-end { place-items: end center; padding-bottom: max(var(--gutter), var(--safe-b, 0px)); background: color-mix(in srgb, var(--scrim) 45%, transparent); } .gs-daily-streak { margin: 0 0 var(--sp-2); font-size: var(--fs-small); color: var(--ink2); } /* The veil covers the game, never the bar: Back, the stat and Menu stay at full strength (Menu is how the sheet closes). */ body:has(> .ar-bar) .ar-sheet { top: var(--bar-h); } .ar-sheet-card { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: var(--sp-5) 20px 20px; border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--surface2); color: var(--ink); box-shadow: var(--shadow-popup); } html:not(.gs-hosted) body:has(> .ar-bar) .ar-sheet-card { max-height: calc(100vh - var(--bar-h) - 2 * var(--gutter)); max-height: calc(100dvh - var(--bar-h) - 2 * var(--gutter)); } /* the sheet sits under the bar: its card ends above the screen's foot (inside Zimi's reader it covers the page from the top) */ .ar-sheet-card:focus { outline: none; } .ar-sheet-card h2 { margin: 0 0 var(--sp-3); font-size: var(--fs-sheet); font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; } /* No pebble on a sheet: the bar above it already carries it, and two on one screen is wallpaper. A sheet on a page with no bar (the shelf's) keeps it, 20px. */ body:not(:has(> .ar-bar)) .ar-sheet-card h2::before { content: ""; display: inline-block; width: 20px; height: 20px; margin: -3px 8px 0 0; vertical-align: middle; background: url(mark.svg) center / contain no-repeat; } .ar-sheet-card > p { margin: 0 0 var(--sp-3); color: var(--ink2); } /* A sheet that only closes: its title and a quiet × share the first row. */ .ar-sheet-head { margin: calc(-1 * var(--sp-2)) 0 var(--sp-2); } .ar-sheet-head h2 { margin: 0; } /* One action anatomy on every sheet: a single 44px row across the card. The quiet actions (ghost, a third) sit left and the primary (amber, two thirds) last; a row with no primary shares the width equally. */ .ar-sheet-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); } .ar-sheet-actions .ar-btn { flex: 1 1 0; min-width: 0; min-height: var(--target); padding: 0 var(--sp-2) 1px; } .ar-sheet-actions .ar-btn[aria-pressed="true"], .ar-sheet-actions .ar-btn.gs-primary { flex-grow: 2; } .ar-sheet-actions:has([aria-pressed="true"], .gs-primary) .ar-btn:not([aria-pressed="true"], .gs-primary) { background: transparent; border-color: transparent; color: var(--ink2); } .ar-sheet-actions:has([aria-pressed="true"], .gs-primary) .ar-btn:not([aria-pressed="true"], .gs-primary):hover { color: var(--accent); } /* Option rows: a 13px sentence-case label on the left, a 44px segmented control on the right. */ .gs-row, .zc-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--target); } .gs-row > label, .zc-row > label { flex: 1 1 auto; font-size: var(--fs-small); font-weight: 600; color: var(--ink2); text-transform: none; letter-spacing: 0; } .gs-seg, .zc-seg { display: inline-flex; flex: 0 0 auto; } .gs-seg .ar-btn, .zc-seg .ar-btn { min-height: var(--target); padding: 0 var(--sp-3) 1px; border-radius: 0; margin-left: -1px; } .gs-seg .ar-btn:first-child, .zc-seg .ar-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; } .gs-seg .ar-btn:last-child, .zc-seg .ar-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; } .gs-seg .ar-btn:only-child, .zc-seg .ar-btn:only-child { border-radius: var(--radius); } /* A chosen segment is a selection, not the screen's one amber button: accent glow, accent line, ink text. */ .gs-seg .ar-btn[aria-pressed="true"], .zc-seg .ar-btn[aria-pressed="true"] { background: var(--accent-glow); border-color: var(--accent); color: var(--ink); font-weight: 650; position: relative; z-index: 1; } @media (max-width: 420px) { .gs-row, .zc-row { flex-wrap: wrap; } .gs-seg, .zc-seg { flex: 1 1 100%; } .gs-seg .ar-btn, .zc-seg .ar-btn { flex: 1; } } /* The New game pane's rows fit the card, and a row of more than three choices wraps as separate buttons. */ .gs-row .gs-seg { max-width: 100%; } .gs-row .gs-seg .ar-btn { min-width: 0; padding: 0 var(--sp-3); } .gs-seg.is-wrap { flex-wrap: wrap; gap: var(--sp-2); } .gs-seg.is-wrap .ar-btn { flex: 0 0 auto; } .gs-seg.is-wrap .ar-btn, .gs-seg.is-wrap .ar-btn:first-child, .gs-seg.is-wrap .ar-btn:last-child { margin-left: 0; border-radius: var(--radius); } /* A select or a search box in the New game pane: the row's label above, a 44px control, tokens only. */ .gs-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); } .gs-field > label { font-size: var(--fs-small); color: var(--ink2); } .gs-field :is(select, input) { width: 100%; min-height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: var(--fs-body) var(--font); } .gs-field :is(select, input):focus-visible { outline: 2px solid var(--select-ring); outline-offset: 2px; } .gs-options .bu-quiet { width: auto; text-align: left; } .gs-row[hidden], .gs-field[hidden], .pz-custom[hidden] { display: none; } /* A long setup sheet (Circuit, Kart): each row stays label left and choice right on one line, and Start stays in reach at the bottom of the card as the rows scroll. */ .gs-setup .gs-row { flex-wrap: nowrap; } .gs-setup .gs-row > label { min-width: 0; } .gs-setup .gs-seg { flex: 0 0 auto; } .gs-setup .gs-seg .ar-btn { flex: 0 0 auto; min-width: 44px; padding: 0 var(--sp-3) 1px; } @media (max-width: 360px) { .gs-setup .gs-row { flex-wrap: wrap; } .gs-setup .gs-seg { flex: 1 1 100%; } .gs-setup .gs-seg .ar-btn { flex: 1 1 0; } } .ar-sheet-card:has(.gs-setup) .ar-sheet-actions { position: sticky; z-index: 2; bottom: -20px; margin: var(--sp-3) -20px -20px; padding: var(--sp-2) 20px 20px; background: var(--surface2); box-shadow: 0 -12px 10px -2px var(--surface2); } .ar-sheet-card:has(.gs-setup) { max-height: calc(100vh - var(--bar-h, 0px) - 2 * var(--gutter, 16px)); } /* The player chip: 13px, 28px tall, a pill with a dot, the name and a number. The current player has an amber outline and glow with the name in ink, never white on amber. D marks the dealer; a suit chip marks trump. */ .gs-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-3); } .gs-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink2); font-size: var(--fs-small); white-space: nowrap; } .gs-chip b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; } .gs-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--line-strong)); } .gs-chips .gs-chip::before { display: none; } .gs-chip[aria-current="true"], .gs-chip.is-turn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); color: var(--ink); } .gs-chip .gs-dealer { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-glow); color: var(--ink); font-size: var(--fs-caption); font-weight: 700; } /* Action rows hold moves only (Hint first, at most four); a tray on felt is the same on translucent black. */ .gs-actionrow, .bg-controls, .pl-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; } .gs-actionrow .ar-btn, .gs-tray .ar-btn { min-height: var(--target); } .gs-tray { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; padding: var(--sp-2); border-radius: var(--r-sheet); background: rgba(0, 0, 0, 0.34); } /* The status line is one slot: one sentence, 15px, in ink (shell.js makes it aria-live). */ .gs-status, .bg-status, .pl-msg, .ms-msg { font-size: var(--fs-body); font-weight: 500; color: var(--ink); } .gs-shake { animation: gs-shake 0.12s ease-out; } /* translate, not transform: a card keeps its place (its position is a transform) while it shakes. */ @keyframes gs-shake { 0%, 100% { translate: 0 0; } 30% { translate: -4px 0; } 70% { translate: 4px 0; } } .gs-flash { outline: 2px solid var(--accent); outline-offset: 2px; } /* Reduced motion, once. The shell sets data-anim="off" when the device asks for less motion (unless Animation was chosen), so this one rule serves every game; a page without the shell falls back to the media query. */ html[data-anim="off"] *, html[data-anim="off"] *::before, html[data-anim="off"] *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; } @media (prefers-reduced-motion: reduce) { html:not([data-anim]) *, html:not([data-anim]) *::before, html:not([data-anim]) *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } } /* The shelf (ZimiGames' main page). Plain HTML lists every game; shelf.js adds the views: Lobby (a feed of art tiles) and Index (search first, one section at a time as thumbnail rows). With no data-view the page is Lobby's grid. */ .ar-shelf { max-width: 1180px; margin: 0 auto; padding: 16px 16px 48px; --glow: var(--accent-glow); } .ar-shelf header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; } .ar-brand { flex: none; display: flex; align-items: center; gap: 12px; margin: 0; font-size: var(--fs-brand); font-weight: 700; letter-spacing: -0.02em; line-height: 1; } .ar-brand .ar-lockup { display: block; flex: none; width: 40px; height: 40px; } /* The wordmark's cap height is centred on the icon: the line box centres the em box, and the caps sit 0.67px below it at 26px. */ .ar-brand span { padding-bottom: 1.33px; } .ar-shelf header p { flex: 1 0 100%; margin: 0; color: var(--ink2); max-width: 60ch; } .sh-on header p { display: none; } /* Outside Zimi: the credit line (shell.js homeLine), "© year [mark] Zimi", sized and coloured as a credit. The mark and the name are one link; where the mark sits is zimihome.js's ZIMI_HOME_MARK. Its centre is on the centre of the digits' height: vertical-align -2.3px puts it there at 12px, measured to 0.01px (test_zimi_home_line_browser). */ .gs-home { display: flex; align-items: center; justify-content: center; margin: 0; font-size: 12px; line-height: 16px; color: var(--ink2); font-variant-numeric: tabular-nums; } .gs-home img { display: inline-block; width: 13px; height: 13px; vertical-align: -2.3px; margin-inline: 0 3px; } .gs-home img.gs-mark-end { margin-inline: 3px 0; } .gs-home a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 2px; padding: 14px 12px; margin: -14px -12px; border-radius: var(--r-chip); } .gs-home a:hover { color: var(--ink); text-decoration-color: currentColor; } .gs-home a:focus-visible { outline: 2px solid var(--accent); outline-offset: -13px; } .ar-shelf > .gs-home { margin-top: 20px; } .gs-card > .gs-home { align-self: center; margin-top: 4px; } .sh-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 1 1 0; min-width: 0; } .sh-search { position: relative; display: flex; align-items: center; flex: 1 1 auto; max-width: 340px; color: var(--ink3); } .sh-search svg { position: absolute; left: 11px; pointer-events: none; } .sh-search input { width: 100%; height: 36px; padding: 0 12px 0 33px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; } .sh-search input::placeholder { color: var(--ink3); } .sh-search input:focus-visible { outline-offset: 0; border-color: var(--accent); } @media (min-width: 700px) { .sh-search input { font-size: var(--fs-body); } } /* A control that is drawn smaller than a finger gets a 44px hit area without moving anything. */ @media (pointer: coarse) { .sh-chip, .kk-pill, .pl-peg { position: relative; } .kk-pill::before { content: ""; position: absolute; inset: -8px 0; } .sh-chip::before { content: ""; position: absolute; inset: -9px -1px; } .pl-peg::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; } } /* One line under the header: the room (a pill with its list lying over it), the type chips scrolling sideways, then one button for the view and the order. Every control is a 44px target; nothing wraps at 360px. */ .sh-room-pick { position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; height: 32px; padding: 0 10px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; } .sh-room-pick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; } .sh-room-pick.sh-room-on { background: var(--accent); border-color: transparent; color: var(--accent-ink); } .sh-room-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; } .sh-room-sel { position: absolute; inset: -7px 0; width: 100%; height: auto; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; border: 0; } .sh-opt { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -8px; padding: 0; border: 0; border-radius: var(--radius); background: none; color: var(--ink2); cursor: pointer; } .sh-opt:hover { color: var(--ink); background: var(--ground); } .sh-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .ar-shelf:not([data-sort="sections"]) .sh-opt { color: var(--accent); } .sh-opt-row + .sh-opt-row { margin-top: var(--sp-4); } .sh-opt-seg { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); } .sh-opt-seg .ar-btn { min-height: 44px; } .sh-opt-seg .ar-btn[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); } @media (max-width: 699px) { .ar-shelf header .sh-search { flex: 1 0 100%; max-width: none; } } .sh-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; } .sh-bar .sh-nav, [dir] .sh-bar .sh-nav { padding-inline: 2px 24px; } .sh-bar .sh-nav { flex: 1 1 0; min-width: 0; margin: 0; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); } [dir="rtl"] .sh-bar .sh-nav { margin: 0; -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); } .sh-bar .sh-tools { flex: none; } @media (min-width: 900px) { [data-view="index"] .sh-bar { display: block; margin-bottom: 0; } [data-view="index"] .sh-bar .sh-nav { margin: 0 0 22px; } } html.gs-hosted .ar-shelf header:not(:has(.sh-tools)) { display: none; } /* Section chips (Lobby) and tabs (Index phone); Index desktop turns them into a rail. */ /* Sideways only: no vertical scroll or bounce (touch-action), and the padding is room for the focus ring and the chip's hit area, which the clip would otherwise cut. */ .sh-nav { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; touch-action: pan-x; scrollbar-width: none; margin: -2px -16px 16px; padding: 4px 16px; } .sh-nav::-webkit-scrollbar { display: none; } /* A finger's row: the 28px chips' 44px hit areas need 8px above and below inside the clip. */ @media (pointer: coarse) { .sh-nav { padding-top: 8px; padding-bottom: 8px; margin-top: -6px; margin-bottom: 12px; } .sh-bar .sh-nav, [dir] .sh-bar .sh-nav { margin-top: -4px; margin-bottom: -4px; } } /* The Library Manager's filter pill (app.css .pill): 28px, 12px type, quiet ink, a glow on hover, the chosen one filled with the accent. */ .sh-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; box-sizing: border-box; height: 28px; padding: 0 14px 1px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink2); font: inherit; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; } .sh-chip:hover { border-color: var(--accent-line); color: var(--ink); background: var(--accent-glow); } .sh-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .sh-chip[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; } .sh-chip-n, .sh-count { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink2); } .sh-chip[aria-pressed="true"] .sh-chip-n { color: inherit; } /* ink2 on the accent fill is under 4.5:1 */ /* All types is the state where nothing is chosen: it stays quiet when pressed, and only a chosen type fills with the accent. */ .sh-chip.sh-chip-all[aria-pressed="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); } .sh-chip.sh-chip-all[aria-pressed="true"] .sh-chip-n { color: var(--ink2); } .sh-count { margin-inline-start: 8px; letter-spacing: 0; } .sh-rail-head, .sh-chip-recent { display: none; } /* The rooms lead the row; a thin line, then the types. */ .sh-chip-sep { flex: none; align-self: center; width: 1px; height: 18px; margin: 0 4px; background: var(--line); } .sh-empty { margin: 32px 0; text-align: center; color: var(--ink2); } .sh-empty[hidden] { display: none; } /* Sections and tiles. */ .ar-section[hidden] { display: none; } .ar-section + .ar-section { margin-top: 28px; } .ar-section h2 { margin: 0 0 12px; font-size: var(--fs-small); font-weight: 650; letter-spacing: 0.04em; color: var(--ink2); } .ar-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; } .ar-game { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-sheet); overflow: hidden; background: var(--surface2); border: 1px solid var(--line); transition: transform 0.15s, border-color 0.15s; } .ar-game[hidden] { display: none; } .ar-game:hover { transform: translateY(-2px); border-color: var(--accent); } .ar-game-art { aspect-ratio: 16 / 9; display: block; width: 100%; } .ar-game-live { object-fit: cover; } .ar-game-icon { object-fit: contain; background: var(--tile); padding: 6px; } .ar-game-text { min-width: 0; padding: 10px 12px 12px; } .ar-game-text strong { display: block; font-size: 15px; line-height: 1.3; } .ar-game-text span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ink2); font-size: var(--fs-small); line-height: 1.35; } @media (max-width: 560px) { .ar-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ar-game-text { padding: 9px 10px 11px; } } /* Families: a card that opens to its variants. Without the shelf script the wrapper vanishes and the tiles flow as ever. */ .ar-family, .sh-fam { display: contents; } .sh-fam-card { box-sizing: border-box; min-width: 0; font: inherit; text-align: left; cursor: pointer; padding: 0; position: relative; box-shadow: 5px 5px 0 -1px var(--surface), 5px 5px 0 0 var(--line); } .sh-fam-art { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); overflow: hidden; } .sh-fam-art img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; } .sh-fam-panel { display: none; } /* The disclosure: how many games it holds and a chevron that turns when it is open. */ .sh-fam-tag { position: absolute; top: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-small); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; } .sh-fam-tag svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; } .sh-fam.sh-open .sh-fam-tag svg { transform: rotate(180deg); } .sh-fam-card:hover .sh-fam-tag, .sh-fam-card:focus-visible .sh-fam-tag { border-color: var(--accent); } .sh-fam.sh-open .sh-fam-panel { animation: sh-fam-in 0.24s ease-out; } @keyframes sh-fam-in { from { opacity: 0; transform: translateY(-8px); } } .sh-fam.sh-open { display: block; grid-column: 1 / -1; } .sh-fam.sh-open .sh-fam-card { flex-direction: row; align-items: center; width: 100%; margin-bottom: 14px; box-shadow: none; border-color: var(--accent-line); } .sh-fam.sh-open .sh-fam-art { flex: 0 0 min(34%, 160px); width: min(34%, 160px); aspect-ratio: 16 / 9; } .sh-fam.sh-open .sh-fam-card .ar-game-text { flex: 1; } .sh-fam.sh-open .sh-fam-card .ar-game-text span { -webkit-line-clamp: 3; } .sh-fam.sh-open .sh-fam-panel { display: grid; } [data-sec="search"] .sh-fam, [data-sec="search"] .sh-fam.sh-open, [data-sec="search"] .sh-fam .sh-fam-panel, [data-sec="search"] .sh-fam.sh-open .sh-fam-panel { display: contents; } [data-sec="search"] .sh-fam .sh-fam-card { display: none; } [data-view="index"] .sh-fam-card { box-shadow: none; } [data-view="index"] .sh-fam-art { flex: 0 0 96px; width: 96px; height: 54px; aspect-ratio: auto; border-radius: var(--r-chip); } [data-view="index"] .sh-fam.sh-open .sh-fam-art { flex-basis: 96px; width: 96px; } [data-view="index"] .sh-fam.sh-open .sh-fam-card { margin-bottom: 8px; } [data-view="index"] .sh-fam-panel { padding-left: 14px; } [data-view="index"] .sh-fam-card { width: 100%; } [data-view="index"] .sh-fam-card::after { display: none; } [data-view="index"] .sh-fam-tag { position: static; margin-inline-start: auto; flex: none; } .sh-fam[hidden] { display: none; } /* Lobby: Continue is a row you scroll, the day's game sits beside it. */ .sh-top { display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px; margin-bottom: 26px; } .sh-top[hidden] { display: none; } .sh-top .ar-section { margin: 0; } .ar-continue[hidden] { display: none; } /* Daily: today's edition of each game, one row you scroll sideways only; the ones done carry a tick and sit at the end. */ .ar-daily, :is(.ar-new, .ar-world) { flex: 1 1 100%; min-width: 0; } .ar-daily[hidden], :is(.ar-new, .ar-world)[hidden] { display: none; } .ar-daily > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .ar-daily-line { color: var(--ink2); font-size: var(--fs-small); font-weight: 500; font-variant-numeric: tabular-nums; } .ar-daily-stats { margin-inline-start: auto; font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--accent); background: none; border: 0; padding: 6px 2px; min-height: 44px; cursor: pointer; } .ar-daily .ar-games, :is(.ar-new, .ar-world) .ar-games { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; margin: 0 -16px; padding: 2px 16px 6px; } .ar-daily, :is(.ar-new, .ar-world) { --daily-w: 132px; } .ar-daily .ar-game, :is(.ar-new, .ar-world) .ar-game { flex: 0 0 var(--daily-w); position: relative; scroll-snap-align: start; } .ar-daily .ar-game-text span, :is(.ar-new, .ar-world) .ar-game-text span { display: none; } .ar-daily .ar-game.ar-done .ar-game-art { opacity: 0.5; } /* Every Daily tile the same size: the same art crop, a name on one line. The day's game wears a small badge along the foot of its art (the done tick has the top corner). */ .ar-daily .ar-game-text strong, :is(.ar-new, .ar-world) .ar-game-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ar-daily .ar-game-art, :is(.ar-new, .ar-world) .ar-game-art { aspect-ratio: 16 / 9; height: auto; } .ar-feature-tag { position: absolute; top: calc(var(--daily-w) * 9 / 16 - 26px); inset-inline-start: 6px; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Where the everyday seven end and the rest begin: a little more room, no label. */ .ar-daily .ar-daily-main + .ar-game:not(.ar-daily-main) { margin-inline-start: 14px; } .ar-done-mark { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; line-height: 1; } [data-view="index"] .ar-daily .ar-games, [data-view="index"] :is(.ar-new, .ar-world) .ar-games { display: flex; } [data-view="index"] .ar-daily .ar-game, [data-view="index"] :is(.ar-new, .ar-world) .ar-game { flex: 0 0 var(--daily-w); flex-direction: column; align-items: stretch; gap: 0; padding: 0; } [data-view="index"] .ar-daily .ar-game-art, [data-view="index"] :is(.ar-new, .ar-world) .ar-game-art { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; } [data-view="index"] .ar-daily .ar-game-text, [data-view="index"] :is(.ar-new, .ar-world) .ar-game-text { padding: 8px 10px 10px; } .ar-daily .ar-game .sh-meta, :is(.ar-new, .ar-world) .ar-game .sh-meta, [data-view="index"] :is(.ar-daily, :is(.ar-new, .ar-world)) .ar-game-text span, [data-view="index"] :is(.ar-daily, :is(.ar-new, .ar-world)) .ar-game::after { display: none; } /* Index: rows, one section at a time. */ @media (max-width: 899px) { [data-view="index"] .sh-tools { display: contents; } [data-view="index"] .sh-search { order: 3; flex: 1 0 100%; max-width: none; } } [data-view="index"] .sh-top { display: block; margin-bottom: 18px; } [data-view="index"] .sh-top[hidden] { display: none; } [data-view="index"] .ar-games { grid-template-columns: minmax(0, 1fr); gap: 8px; } [data-view="index"] .ar-game { flex-direction: row; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: var(--r-sheet); } [data-view="index"] .ar-game:hover { transform: none; } [data-view="index"] .ar-game-art, [data-view="index"] .ar-game-icon { flex: 0 0 96px; width: 96px; height: 54px; aspect-ratio: auto; border-radius: var(--r-chip); } [data-view="index"] .ar-game-icon { padding: 4px; } [data-view="index"] .ar-game-text { flex: 1; padding: 0; } [data-view="index"] .ar-game-text strong { font-size: 15px; } [data-view="index"] .ar-game-text span { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } [data-view="index"] .ar-game::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-top: 2px solid var(--ink3); border-right: 2px solid var(--ink3); transform: rotate(45deg); } /* The day's game, under the tabs on a phone: one row, on All only. */ @media (min-width: 900px) { [data-view="index"] .sh-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; } [data-view="index"] .sh-rail { position: sticky; top: 16px; } [data-view="index"] .sh-nav { flex-direction: column; gap: 2px; margin: 0 0 22px; padding: 0; border: 0; overflow: visible; touch-action: auto; } [data-view="index"] .sh-chip { height: 34px; width: 100%; justify-content: space-between; padding: 0 12px; border: 0; border-radius: var(--r-chip); background: none; font-size: 13px; font-weight: 600; } [data-view="index"] .sh-chip[aria-pressed="true"], [data-view="index"] .sh-chip[aria-pressed="true"]:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); } [data-view="index"] .sh-chip:hover { background: var(--surface); } [data-view="index"] .sh-chip-recent:not([hidden]) { display: inline-flex; } [data-view="index"] .sh-chip-sep { width: auto; height: 1px; margin: 10px 12px; } [data-view="index"] .sh-rail-head { display: block; margin: 14px 12px 6px; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); } [data-view="index"] .ar-games { grid-template-columns: 1fr 1fr; } } .ar-foot { margin-top: 32px; color: var(--ink2); font-size: var(--fs-small); } /* The credits: closed until asked for, the long list of licences out of the way of the games. */ .ar-foot > summary { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); cursor: pointer; font-weight: 650; list-style: none; } .ar-foot > summary::-webkit-details-marker { display: none; } .ar-foot > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; } .ar-foot[open] > summary::after { transform: translateY(1px) rotate(225deg); } .ar-foot > summary:hover { color: var(--ink); } .ar-foot > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-chip); } .ar-foot > p { margin: 0 0 8px; line-height: 1.5; } .ar-foot[open] > p { animation: sh-fam-in 0.24s ease-out; } .sh-wait .sh-list { visibility: hidden; } /* What and when, on a tile: small chips. Index shows them on every row; any other order shows them in Lobby too. */ .sh-meta { display: none; flex-wrap: wrap; gap: 4px; margin-top: 6px; font-size: 11px; line-height: 1.3; } [data-view="index"] .sh-meta, .ar-shelf:not([data-sort="sections"]) .sh-meta { display: flex; } [data-view="index"] .sh-meta { flex-wrap: nowrap; overflow: hidden; margin-top: 3px; } .sh-meta em { font-style: normal; padding: 1px 7px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; } .sh-meta .sh-m-age { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; } [data-sort="oldest"] .sh-m-age, [data-sort="quick"] .sh-m-length { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } [data-sort="region"] .sh-m-region, [data-sort="players"] .sh-m-players { display: none; } /* Groups of an order: a header with a note, and for Oldest first a spine with a dot per era; for By region the world with the region lit. */ .sh-group h2 { position: relative; display: flex; align-items: center; gap: 8px; } .sh-group .sh-count { margin-inline-start: 0; } .sh-gt { color: var(--ink); } .sh-note { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink2); } [data-sort="oldest"] .sh-group { margin-left: 6px; padding-left: 18px; border-left: 2px solid var(--line); } [data-sort="oldest"] .sh-group h2::before { content: ""; position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--ground); } [data-sort="oldest"] .sh-gt, [data-sort="region"] .sh-gt { font-size: 15px; letter-spacing: 0; text-transform: none; } [data-sort="region"] .sh-group h2 { gap: 12px; } .sh-map { flex: none; width: 120px; height: 60px; color: var(--ink3); border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } .sh-land { fill: currentColor; opacity: 0.45; } .sh-spot { fill: var(--accent); opacity: 0.75; stroke: var(--accent); stroke-width: 10; stroke-opacity: 0.35; } .sh-map-all .sh-land { fill: var(--accent); opacity: 0.4; } /* The game table: what was played lately, as boxes left out after game night. recent.js draws it over the shelf's own tiles; each box lies at an angle that is a function of its page, so it is the same every visit. */ .ar-table { --bw: 128px; --ov: 34px; position: relative; display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-radius: var(--r-sheet); padding: 24px 20px 28px; color: #2a2118; background: radial-gradient(120% 140% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.28)), linear-gradient(var(--wood-veil), var(--wood-veil)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='240'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.27 0 0 0 0 0.157 0 0 0 0 0.055 3 0 0 0 -1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E") 0 0 / 360px 240px, repeating-linear-gradient(180deg, transparent 0 79px, rgba(var(--wood-grain), 0.22) 79px 80px), linear-gradient(180deg, var(--wood), var(--wood-dark)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22), inset 0 3px 14px rgba(0, 0, 0, 0.3); } .ar-table::-webkit-scrollbar { display: none; } .ar-table-in { display: flex; width: max-content; margin: 0 auto; padding-right: var(--ov); } .ar-box { position: relative; flex: none; display: block; width: var(--bw); margin-right: calc(var(--ov) * -1); padding: 5px; border-radius: var(--r-chip); text-decoration: none; color: inherit; background: #f7f2e7; z-index: var(--z); transform: translateY(var(--dy)) rotate(var(--rot)) scale(var(--s)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 3px 0 #b8ad96, 0 5px 9px rgba(0, 0, 0, 0.38), 3px 8px 16px rgba(0, 0, 0, 0.18); transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1); } .ar-box:hover, .ar-box:focus-visible { z-index: 20; transform: translateY(calc(var(--dy) - 6px)) rotate(0deg) scale(1.04); } .ar-box:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; } .ar-box-lid { display: block; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(42, 33, 24, 0.25); } .ar-box-lid .ar-game-art { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; } .ar-box-lid .ar-game-icon { padding: 4px; } .ar-box-label { display: block; padding: 6px 2px 2px; } .ar-box:not(:first-child) .ar-box-label { padding-left: calc(var(--ov) + 2px); } /* A name wraps onto more lines before it is cut ("Crucigrama mini", "Cinco letras"), and only after three (a narrow box under another) does it end in dots. */ .ar-box-label strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 13px; line-height: 1.25; overflow: hidden; overflow-wrap: normal; word-break: normal; hyphens: manual; } /* recent.js fitNames: a word too wide even at its smallest size ends in an ellipsis on one line, never broken in two. */ .ar-box-label strong.ar-name-cut { display: block; white-space: nowrap; text-overflow: ellipsis; } .ar-box-label small { display: block; margin-top: 1px; font-size: var(--fs-caption); line-height: 1.3; color: #6b5d4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; } .ar-continue { flex: 1 1 360px; min-width: 0; } /* A phone: a tighter fan so about five boxes lie in view and the rest peek from the edge (the table scrolls). Only the top box has room for the time. */ @media (max-width: 699px) { .ar-table { --bw: 116px; --ov: 54px; padding: 22px 12px 26px; } .ar-box-label small { white-space: normal; min-height: 2.6em; } .ar-box:not(:first-child) .ar-box-label { padding-right: 0; padding-left: calc(var(--ov) + 1px); } .ar-box:not(:first-child) .ar-box-label strong { font-size: 12px; } .ar-box:not(:first-child) .ar-box-label small { display: none; } } @media (min-width: 700px) { .ar-table { --bw: 168px; --ov: 36px; padding: 30px 32px 34px; } } .ar-box.ar-settle { animation: ar-settle 0.45s cubic-bezier(0.25, 1, 0.5, 1) backwards; animation-delay: calc(var(--i) * 70ms); } @keyframes ar-settle { from { opacity: 0; transform: translateY(calc(var(--dy) - 18px)) rotate(calc(var(--rot) * 2.5)) scale(1.05); } } /* The "About " link scripts/games_links.py writes at the foot of a page is not shown: the Menu has the row (shell.js clicks this link, which Zimi's reader catches to open the article). */ .gm-about { display: none; } .gs-about .gs-text + .gs-text { margin-top: var(--sp-2); } .gs-about dl.gs-meta + .gs-text { margin-top: var(--sp-2); } .gs-about .gs-text a { color: var(--accent); text-underline-offset: 2px; } .gm-about-page { max-width: 62ch; margin: 0 auto; padding: 24px 16px; } .gm-play { display: inline-flex; align-items: center; text-decoration: none; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } /* ── The shell (shell.js): one bar, one Menu sheet, the settings it applies ── */ .gs-ready .ar-bar { gap: 8px; } .gs-ready .ar-bar .ar-stat { flex: none; } html[data-timer="hide"] [data-gs-timer], html[data-timer="hide"] #zc-stat:empty { display: none; } html.gs-help .bg-help { display: none; } /* Hints off: the dots, rings and ringed points a game draws, and its Hint button. */ html[data-hints="off"] :is([id$="-hint"], .bk-hint, .cc-hint, .gm-hint, .go-hint, .hx-hint, .mc-hint, .mo-hint, .fr-hintarrow, .db-slot.hint) { display: none !important; } html[data-hints="off"] .hint::after { display: none !important; } html[data-hints="off"] .mj-t.hint { outline: 0; animation: none; } /* Animation: fast shortens every transition, off removes them (and follows reduced motion until chosen). */ html[data-anim="fast"] :not(.bg-spin, .gs-turn i) { transition-duration: 0.1s !important; animation-duration: 0.12s !important; animation-delay: 0s !important; } .gs-turn { display: flex; align-items: center; gap: 10px; padding: 4px 16px; background: var(--surface); border-bottom: 1px solid var(--line); } .gs-turn[hidden] { display: none; } .gs-turn i { flex: 1; height: 4px; border-radius: 2px; background: var(--accent); transform-origin: left; transition: transform 0.25s linear; } .gs-turn-n { flex: none; min-width: 3ch; text-align: right; font: 600 var(--fs-small) var(--mono); font-variant-numeric: tabular-nums; color: var(--ink2); } .gs-turn.gs-low i { background: var(--danger, #b3261e); } .gs-turn.gs-low .gs-turn-n { color: var(--danger, #b3261e); } /* The Menu sheet. Same card as every sheet; panes swap inside it. */ .gs-card { display: flex; flex-direction: column; gap: 12px; } .gs-head { display: flex; align-items: center; gap: 8px; min-height: var(--target); } .gs-head h2 { flex: 1; margin: 0; font-size: var(--fs-sheet); letter-spacing: -0.01em; } .gs-back, .gs-x { flex: none; position: relative; width: var(--target); height: var(--target); margin: 0; padding: 0; border: 0; border-radius: var(--radius); background: none; color: var(--ink2); cursor: pointer; } .gs-back { margin-left: -12px; } .gs-x { margin-right: -12px; } .gs-back:hover, .gs-x:hover { background: var(--ground); color: var(--ink); } .gs-back::before { content: ""; position: absolute; left: 18px; top: 17px; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); } .gs-x::before, .gs-x::after { content: ""; position: absolute; left: 15px; top: 21px; width: 14px; height: 2px; background: currentColor; border-radius: 1px; transform: rotate(45deg); } .gs-x::after { transform: rotate(-45deg); } .gs-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); } .gs-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; background: var(--surface); text-align: left; cursor: pointer; font-size: var(--fs-body); } .gs-item + .gs-item { border-top: 1px solid var(--line); } .gs-item:hover { background: var(--ground); } .gs-item-l { font-weight: 600; } .gs-item-r { flex: 1; text-align: right; font-size: var(--fs-small); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gs-item::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 2px solid var(--ink3); border-right: 2px solid var(--ink3); transform: rotate(45deg); } .gs-extras { margin: 0; } .gs-extras .ar-btn { flex: 1 1 auto; } .gs-text { margin: 0; color: var(--ink2); } .gs-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); } .gs-more { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--target); margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3); box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-chip); background: none; color: var(--ink); text-decoration: none; } .gs-more:visited { color: var(--ink); } .gs-more:hover, .gs-more:focus-visible { border-color: var(--accent); } .gs-more-text { display: grid; gap: 2px; min-width: 0; font-size: var(--fs-small); line-height: 1.3; } .gs-more-text small { font-size: 12px; font-weight: 650; letter-spacing: 0.02em; color: var(--ink2); } .gs-more-chev { flex: none; color: var(--ink3); } .gs-more:hover .gs-more-chev { color: var(--accent); } [dir="rtl"] .gs-more-chev { transform: scaleX(-1); } .gs-note { flex: 1 1 100%; margin: 0; font-size: var(--fs-small); color: var(--ink2); } .gs-scope { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .gs-scope > span { font-size: var(--fs-small); font-weight: 600; color: var(--ink2); } .gs-scope .gs-seg { display: flex; } .gs-scope .gs-seg .ar-btn { flex: 1; } .gs-link { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--ink2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; } .gs-link:hover { color: var(--accent); } dl.gs-help { margin: 0; } .gs-help dt { margin: 0 0 2px; font-size: var(--fs-small); font-weight: 650; color: var(--ink2); } .gs-help dd { margin: 0 0 12px; } .gs-help dd:last-child { margin-bottom: 0; } /* The piece key in How to play (ZimiPieceIcons.key): the board's own figure beside its name. The --xw and --jw feed the characters' size. */ .pi-keybox { margin-top: var(--sp-3); } .pi-keytitle { margin: 0 0 var(--sp-1); font-size: var(--fs-small); font-weight: 650; color: var(--ink2); } .pi-key { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); } .pi-k { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: var(--fs-small); color: var(--ink); } .pi-kp { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; --xw: 333px; --jw: 355px; } .pi-kn { min-width: 0; overflow-wrap: anywhere; } .gs-stats { padding: var(--sp-3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); } .gs-statlist { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: var(--fs-small); } .gs-statlist dt { color: var(--ink2); } .gs-statlist dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; } .gs-statlist .gs-stat-alone { grid-column: 1 / -1; } .gs-subhead + .gs-stats, .gs-subhead + .gs-earned { margin-top: var(--sp-2); } .gs-stats + .gs-subhead { margin-top: var(--sp-5); } .gs-earned { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-small); color: var(--ink2); } .gs-earned li { display: flex; gap: 10px; align-items: center; } .gs-earned li > span:first-child { width: 16px; text-align: center; } .gs-earned .gs-got { color: var(--ink); } .gs-earned .gs-got > span:first-child { color: var(--accent); font-weight: 700; } .gs-share-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin: 0 0 var(--sp-3); } .gs-daily-tag { font-size: var(--fs-small); font-weight: 650; color: var(--accent); } .gs-daily-flag { display: none; } /* shown only inside Zimi, where the bar's name is hidden (shell.js HOST_CSS) */ .gs-card .zc-row { margin: 6px 0; } .gs-card .zs-seats { margin: 6px 0; } .gs-seats { display: grid; gap: var(--sp-2); } .gs-subhead { margin: 0; font-size: var(--fs-small); font-weight: 650; color: var(--ink2); text-transform: none; letter-spacing: 0; } .gs-seat-row { flex-wrap: wrap; } .gs-seat-row > label { flex: 0 0 64px; } .gs-seat-row > .gs-seg { flex: 1 1 0; min-width: 0; } @media (max-width: 420px) { .gs-seat-row { flex-wrap: wrap; } .gs-seat-row > .gs-seg { flex: 1 1 0; } .gs-seat-row .gs-seat-name { flex: 1 1 100%; } } .gs-seat-name { flex: 1 1 100%; min-width: 0; min-height: var(--target); padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; } .gs-seat-name:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; } .gs-card .zc-note { margin: 0; } /* Watch and learn: one sentence under the bar, and the controls. */ .gs-watch { display: grid; gap: 8px; padding: 10px 16px 12px; background: var(--accent-glow); border-bottom: 1px solid var(--line); } .gs-watch[hidden] { display: none; } .gs-watch-eyebrow { font-size: var(--fs-small); font-weight: 650; color: var(--ink2); } .gs-watch-text { margin: 0; min-height: 2.8em; font-size: 15px; line-height: 1.4; } .gs-watch-ctl { display: flex; flex-wrap: wrap; gap: 6px; } .gs-watch-ctl .ar-btn { padding: 0 12px; } @media (max-width: 420px) { .gs-watch { padding: 8px 12px 10px; } } .gs-history { color: var(--ink); } .gs-meta:empty { display: none; } dl.gs-meta { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); } /* The bar's second line gives way (with an ellipsis) before the clock or the buttons do. */ .gs-ready .ar-bar h1 { min-width: 0; } .gs-ready .ar-bar h1 small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* shell.js fitTitle: a stat that would cut the title goes under it, small, like the daily tag; Back keeps the first column, the buttons the columns after, each across both lines. */ .ar-bar.gs-bar-stack { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-columns: auto; grid-auto-flow: column; grid-template-rows: auto auto; align-content: center; align-items: center; row-gap: 0; } .ar-bar.gs-bar-stack > * { grid-row: 1 / span 2; } .ar-bar.gs-bar-stack > h1 { grid-row: 1; grid-column: 2; align-self: end; } .ar-bar.gs-bar-stack > .ar-stat { grid-row: 2; grid-column: 2; align-self: start; justify-self: start; margin: 0; max-width: 100%; font-size: var(--fs-caption); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; min-width: 0; } /* A controller is in use: show where focus is, whatever moved it. */ html.gs-pad :focus { outline: 2px solid var(--accent); outline-offset: 2px; } /* Right to left (Arabic, Hebrew): the bar, sheets and Menu mirror through flex order; the Back chevron turns to point the other way. */ [dir="rtl"] .ar-back { margin-left: 0; margin-right: -8px; padding: 0 6px 0 8px; } [dir="rtl"] .ar-back::before { margin-right: 0; margin-left: -1px; transform: rotate(-135deg) scale(0.9); } /* Boards, grids, number pads, hands and card tables are not text: files, ranks, digits and the order of a hand keep their place in a mirrored page. */ [dir="rtl"] :is([class*="-board"], [class*="-grid"], [class*="-pad"], [class*="-keys"], [class*="-hand"], [class*="-felt"], [class$="-table"], [class*="-rows"], [class*="-secret"], [class*="-dice"], [class*="-rack"]):not([class^="gs-"], [class^="ar-"]) { direction: ltr; } /* The header score ("3 · Best 12") and clocks read left to right as one figure. */ [dir="rtl"] .ar-stat { direction: ltr; unicode-bidi: isolate; } /* The menu on a game's tile (tilemenu.js): a popup at the pointer for a mouse and the keyboard, a sheet from the bottom for a finger. Zimi's card menu in the shelf's own tokens. The native link callout is off on tiles only, and a pressed tile does not select. */ .ar-game, .ar-box { -webkit-touch-callout: none; } .gs-lp-armed .ar-game, .gs-lp-armed .ar-box { -webkit-user-select: none; user-select: none; } .gs-tm-back { position: fixed; inset: 0; z-index: 60; } .gs-tm-sheetback { background: var(--scrim); } .gs-tm { position: fixed; min-width: 190px; padding: 4px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); color: var(--ink); box-shadow: var(--shadow-popup); user-select: none; -webkit-user-select: none; } .gs-tm:focus { outline: none; } .gs-tm-item { display: block; width: 100%; padding: 8px 16px; border: 0; background: none; color: inherit; font: inherit; font-size: var(--fs-small); text-align: start; white-space: nowrap; cursor: pointer; } .gs-tm-item:hover, .gs-tm-item:focus-visible { background: var(--accent-glow); color: var(--accent); outline: none; } .gs-tm-danger:hover, .gs-tm-danger:focus-visible { background: rgba(179, 38, 30, 0.1); color: var(--danger, #b3261e); } .gs-tm-head { display: none; } .gs-tm-sheet { left: 0; right: 0; bottom: 0; min-width: 0; max-height: 78vh; overflow-y: auto; overscroll-behavior: contain; border-width: 1px 0 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: var(--sp-2) 0 calc(12px + var(--safe-b)); animation: gs-tm-up 0.2s cubic-bezier(0.25, 1, 0.5, 1); } .gs-tm-sheet::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 6px; border-radius: 2px; background: var(--line-strong); opacity: 0.5; } .gs-tm-sheet .gs-tm-head { display: flex; align-items: center; gap: 12px; padding: 6px 20px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); } .gs-tm-head img { flex: none; width: 64px; height: 36px; border-radius: var(--r-chip); object-fit: cover; } .gs-tm-head b { min-width: 0; font-size: var(--fs-body); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gs-tm-sheet .gs-tm-item { min-height: 48px; padding: 13px 20px; font-size: var(--fs-body); white-space: normal; } @keyframes gs-tm-up { from { transform: translateY(100%); } to { transform: translateY(0); } } @media (prefers-reduced-motion: reduce) { html:not([data-anim="normal"]):not([data-anim="fast"]) .gs-tm-sheet { animation: none; } } /* The end of a game. A win: a pebble stamps the middle of the game under the sheet's scrim level, a ring opens from it and a few pebbles scatter and confetti falls (shell.js, about 1.8 s); the sheet's title is heavier. A loss (about 1.1 s): the board goes quiet under a veil, a ring closes in and the pebble settles; nothing flies over it. Reduced motion never reaches this: shell.js adds nothing then. */ .gs-moment { position: fixed; inset: 0; z-index: 49; pointer-events: none; overflow: hidden; } body:has(> .ar-bar) .gs-moment { top: var(--bar-h); } .gs-moment { transition: opacity 280ms ease-out; } .gs-m-at { position: absolute; left: 50%; top: 62%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; } .gs-moment.gs-m-out { opacity: 0; } .gs-m-at > * { grid-area: 1 / 1; } .gs-m-stamp { width: 84px; height: 84px; opacity: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28)); animation: gs-stamp 520ms cubic-bezier(0.2, 0.9, 0.25, 1.15) 60ms forwards; } .gs-m-ring { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: gs-ring 700ms ease-out 260ms forwards; } .gs-m-bit { width: var(--s); height: var(--s); border-radius: 50%; background: var(--accent); opacity: 0; animation: gs-bit 640ms cubic-bezier(0.1, 0.8, 0.3, 1) 280ms forwards; } .gs-m-bit1 { background: var(--ink2); } .gs-m-bit2 { background: var(--ink); } @keyframes gs-stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-9deg); } 55% { opacity: 1; transform: scale(0.94) rotate(1deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } } @keyframes gs-ring { 0% { opacity: 0.9; transform: scale(0.8); } 100% { opacity: 0; transform: scale(3.2); } } @keyframes gs-bit { 0% { opacity: 1; transform: translate(0, 0) scale(0.6); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } } /* Confetti: the mark's own colours (red, amber, orange) and the ink, falling for about 1.5 s from the top of the game behind the stamp. */ .gs-m-rain { position: absolute; inset: 0; overflow: hidden; } .gs-m-conf { position: absolute; top: -14px; left: var(--x); width: 7px; height: 12px; border-radius: 1.5px; opacity: 0; animation: gs-conf var(--fall) cubic-bezier(0.3, 0.55, 0.5, 1) var(--delay) both; } .gs-m-conf0 { background: #ef4444; } .gs-m-conf1 { background: #f59e0b; } .gs-m-conf2 { background: #f97316; } .gs-m-conf3 { background: var(--ink); width: 6px; height: 6px; border-radius: 50%; } .gs-m-conf4 { background: #fdfcf8; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); } @keyframes gs-conf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sway), 105vh) rotate(var(--turn)); } } /* The result and a big New game stay on a finished board once its sheet is closed (shell.js, showRest): never a dead end. */ .gs-rest { position: fixed; left: 50%; bottom: max(var(--gutter), var(--safe-b)); z-index: 40; width: min(420px, calc(100% - 2 * var(--gutter))); transform: translateX(-50%); display: grid; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--surface2); color: var(--ink); box-shadow: var(--shadow-popup); text-align: center; } .gs-rest p { margin: 0; font-size: var(--fs-sheet); font-weight: 650; letter-spacing: -0.01em; } .gs-rest .gs-rest-new { width: 100%; min-height: 56px; font-size: var(--fs-title); font-weight: 650; } /* inside Zimi the corner holds its small mark: the bar rests above it */ html.gs-hosted .gs-rest { bottom: calc(max(var(--gutter), var(--safe-b, 0px)) + 32px); } .gs-rest { animation: gs-rest-in 240ms ease-out; } @keyframes gs-rest-in { from { opacity: 0; transform: translate(-50%, 12px); } } .gs-end-win h2 { font-weight: 800; animation: gs-title-pop 360ms cubic-bezier(0.2, 0.9, 0.25, 1.2); transform-origin: left center; } .gs-end-win .gs-chip b { color: var(--accent); } @keyframes gs-title-pop { 0% { transform: scale(0.88); opacity: 0.4; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } } .gs-end-lose { animation: gs-settle 480ms ease-out; } @keyframes gs-settle { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } } /* The start splash: the game's art and name, one Play, chips for the choices, one line. Over the playfield, under the bar and every sheet. It leaves at once (no exit); the only motion is the art and name settling in, and reduced motion has none. */ .gs-splash { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--gutter); background: color-mix(in srgb, var(--ground) 93%, transparent); cursor: pointer; } body:has(> .ar-bar) .gs-splash { top: var(--bar-h); } .gs-sp-card { display: grid; justify-items: center; gap: var(--sp-3); width: min(320px, 100%); text-align: center; } .gs-sp-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--shadow-popup); background: var(--surface2); } .gs-sp-card h2 { margin: var(--sp-2) 0 0; font-size: var(--fs-sheet); font-weight: 650; letter-spacing: -0.01em; } .gs-sp-card .gs-chips { justify-content: center; margin: 0; } .gs-sp-play { width: 100%; min-height: 56px; margin-top: var(--sp-2); font-size: var(--fs-title); font-weight: 650; } .gs-sp-hint { margin: 0; font-size: var(--fs-small); color: var(--ink2); } /* The hint is the splash's own; the page's status line under it says the same and would show through as a second copy. */ body:has(> .gs-splash) .pl-msg { visibility: hidden; } :root:not([data-anim="off"]) .gs-sp-card { animation: gs-sp-in 220ms ease-out; } @keyframes gs-sp-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } } @media (max-height: 520px) { .gs-sp-art { display: none; } } /* The loss: the board dims under a veil, a ring closes in on the pebble and the pebble settles into the middle. No confetti, no scatter. */ .gs-moment-lose { background: color-mix(in srgb, var(--ink) 26%, transparent); animation: gs-lose-veil 520ms ease-out both; } /* The pebble is gone the moment the sheet arrives (it would sit on the sheet's text); the veil fades with the scrim. */ .gs-moment-lose.gs-m-out .gs-m-at { display: none; } .gs-moment-lose .gs-m-stamp { width: 72px; height: 72px; filter: grayscale(0.55) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3)); animation: gs-lose-stamp 620ms cubic-bezier(0.25, 0.8, 0.3, 1) 220ms forwards; } .gs-moment-lose .gs-m-ring { border-color: var(--ink2); animation: gs-lose-ring 800ms ease-out 160ms forwards; } @keyframes gs-lose-veil { from { opacity: 0; } to { opacity: 1; } } @keyframes gs-lose-stamp { 0% { opacity: 0; transform: translateY(-18px) scale(1.06); } 100% { opacity: 0.95; transform: translateY(0) scale(1); } } @keyframes gs-lose-ring { 0% { opacity: 0; transform: scale(2.6); } 35% { opacity: 0.55; } 100% { opacity: 0; transform: scale(0.9); } } .gs-end-lose h2 { font-weight: 750; } /* The Menu's root: New game is a button of its own, then one grid of icon tiles (the game's own buttons first). 44px at least, a glance to read. */ .gs-newgame { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); width: 100%; min-height: 56px; padding: 0 var(--sp-4); border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-title); font-weight: 650; cursor: pointer; } .gs-newgame:hover { background: var(--accent); filter: brightness(1.06); } .gs-newgame::after, .gs-tile::after { content: none; } .gs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); border: 0; background: none; overflow: visible; } .gs-grid .gs-tile, .gs-grid .gs-item + .gs-item { border-top: 1px solid var(--line); } .gs-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: auto; min-width: 0; min-height: 72px; padding: var(--sp-2) 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: center; font-size: var(--fs-small); line-height: 1.2; white-space: normal; cursor: pointer; } .gs-tile .gs-item-l { font-weight: 600; overflow-wrap: anywhere; } .gs-tile .gs-icon { flex: none; color: var(--ink2); } @media (hover: hover) { .gs-tile:hover { border-color: var(--accent); background: var(--surface); color: var(--accent); } .gs-tile:hover .gs-icon { color: var(--accent); } } .gs-extras .ar-btn.gs-tile { flex: none; } .gs-tile.ar-btn:disabled .gs-icon { color: var(--ink3); } .gs-grid > .gs-extras { display: contents; } /* Who the stats are (signed in to Zimi): the name, and a quiet way to change it. */ .gs-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; color: var(--ink2); } .gs-person-change { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; } /* The share line's name: the player's choice, beside Share. */ .gs-share-name { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink2); font-size: var(--fs-small); } .gs-share-name input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); } /* This server's boards (shell.js boardSheet): rank, name, result. The player's own row in the accent; an arcade game's house table in the cabinet's own type, so it never reads as people. */ .gs-board { list-style: none; margin: 0 0 var(--sp-3); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); } .gs-board-row { display: grid; grid-template-columns: 2em 1fr auto; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; } .gs-board-row + .gs-board-row { border-top: 1px solid var(--line); } .gs-board-rank { color: var(--ink2); font-variant-numeric: tabular-nums; } .gs-board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gs-board-val { font-variant-numeric: tabular-nums; font-weight: 600; } .gs-board-row.gs-you { color: var(--accent); } .gs-you-mark { font-weight: 500; } /* A daily left unsolved or unfinished: the quiet row, never as loud as a time. */ .gs-board-row.gs-board-quiet .gs-board-val { font-weight: 400; color: var(--ink2); } .gs-board-row.gs-house { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--ink2); } .gs-board-note { margin: 0 0 var(--sp-3); color: var(--ink2); font-size: var(--fs-small); } .gs-board-open { display: block; margin: 4px auto 0; } /* The server's dailies today: a row a game, who leads under its name; a tap opens its board. */ .gs-board-row-day { display: block; padding: 0; } .gs-board-day { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; } .gs-board-day .gs-board-name { display: flex; flex-direction: column; white-space: normal; } .gs-board-day small { color: var(--ink2); font-size: var(--fs-small); } .gs-board-day small.gs-you { color: var(--accent); }