/* Presentation and inline IGG challenges. */ [hidden] { display: none !important; } .talk { margin: 44px auto 0; } .talk video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #f2f6fa; border: 1px solid var(--line); border-radius: 12px; } #just-for-fun { width: min(1120px, calc(100vw - 32px)); margin: 32px 0 0 50%; transform: translateX(-50%); scroll-margin-top: 12px; } #play-title { margin: 0 0 12px; font-size: 1.65rem; line-height: 1.25; } .playground { margin-top: 8px; border: 1px solid #d9e2e9; border-radius: 12px; overflow: hidden; background: #fff; scroll-margin-top: 12px; } .playground button { font: inherit; cursor: pointer; } .playground button:focus-visible, .playground [tabindex]:focus-visible { outline: 3px solid #2879ba; outline-offset: 3px; } .play-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 14px; background: #edf4fb; color: var(--navy); } #play-mode { margin: 0; font-size: 1.4rem; font-weight: 700; line-height: 1.25; } .play-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .95rem; } #play-progress { font-weight: 600; } .is-recorded .play-topline { background: #e5f2eb; } .is-recorded #play-mode { color: #245d49; } .play-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 12px; } .play-picker button { border: 1px solid transparent; border-radius: 6px; background: #f4f6f8; color: var(--navy); padding: 6px 8px; font-size: .9rem; line-height: 1.3; text-align: left; } .play-picker button span { font-weight: 600; } .play-picker button[aria-pressed="true"] { background: #eaf3fa; border-color: #a8cbe5; color: var(--navy); } .play-picker button.solved span::after { content: ' ✓'; color: #27745b; } .play-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); background: #f8fafc; padding: 8px 14px; } .play-task p { margin: 0; font-size: .94rem; line-height: 1.4; font-weight: 600; color: var(--navy); } .play-task button { flex-shrink: 0; padding: 4px 8px; border: 1px solid #d9e2e9; border-radius: 5px; color: var(--navy); background: #fff; font-size: .72rem; } /* Fit the unchanged 1440 × 900 mockup into the available screen height. */ .play-viewport { position: relative; width: min(calc(100% - 24px), calc((100svh - 350px) * 1.6)); min-width: min(480px, calc(100% - 24px)); margin: 7px auto; } .is-recorded .play-viewport { width: min(calc(100% - 24px), calc((100svh - 240px) * 1.6)); } .play-viewport.is-enlarged { width: calc(100% - 24px); } .play-stage { border: 1px solid #dfe5ec; border-radius: 7px; overflow: hidden; background: #f5f7fa; position: relative; aspect-ratio: 1440 / 900; font-size: .85rem; } .mockup-canvas { position: relative; } .play-stage iframe { display: block; border: 0; width: 1440px; height: 900px; transform-origin: top left; background: #fff; } .play-stage.is-enlarged { overflow: auto; height: min(70svh, 900px); aspect-ratio: auto; overscroll-behavior: contain; } .play-stage.is-loading iframe { visibility: hidden; } .play-stage.is-finished iframe { pointer-events: none; } .play-loading { padding: 20px; color: var(--muted); } .play-feedback { margin: 6px 14px; color: var(--text); font-size: .95rem; line-height: 1.4; } .play-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 12px 9px; } .play-actions button { border: 1px solid #dce4ec; border-radius: 6px; background: #fff; color: #52657b; padding: 5px 10px; font-size: .75rem; } .play-actions #play-next { margin-left: auto; color: var(--navy); background: #eef5fb; border-color: #d9e8f4; } .play-hint { margin: 0 12px 10px; padding: 8px 12px; border-radius: 6px; background: #fff8e8; color: #664d22; font-size: .95rem; } .ranked-start { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); } .ranked-start p { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.5; } .ranked-entry { display: flex; flex-wrap: wrap; gap: 8px; } .ranked-entry input { min-width: 0; width: 160px; border: 1px solid #b8d0c2; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: .95rem; } .ranked-entry button { border: 0; border-radius: 6px; background: #28674f; color: #fff; padding: 8px 12px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; } #ranked-status { margin: 8px 14px; font-size: .95rem; } button:disabled { cursor: default; opacity: .55; } #play-clock { font-variant-numeric: tabular-nums; color: #765118; font-weight: 600; } .play-result { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; border-radius: 7px; padding: 16px; background: rgb(12 27 42 / 58%); backdrop-filter: blur(2px); animation: result-in 150ms ease-out; } .result-card { width: min(340px, 100%); max-height: 100%; overflow: auto; padding: 26px; border-radius: 14px; background: #fff; box-shadow: 0 12px 40px rgb(0 0 0 / 18%); text-align: center; } .result-card h3 { margin: 0; color: #27745b; font-family: "Nunito", "Inter", sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.15; } .play-result.is-neutral h3 { color: var(--navy); } #result-time { margin: 8px 0 0; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy); line-height: 1.3; } #result-detail { margin: 10px 0 0; color: var(--text); font-size: .95rem; line-height: 1.5; white-space: pre-line; } .result-card button { display: block; width: 100%; border: 0; border-radius: 7px; padding: 11px 12px; margin-top: 18px; font-size: .88rem; font-weight: 600; background: #28674f; color: #fff; } .result-card #result-secondary { margin-top: 6px; padding: 6px; background: transparent; color: var(--navy); font-weight: 500; font-size: .9rem; } @keyframes result-in { from { opacity: 0; } to { opacity: 1; } } @media (prefers-reduced-motion: reduce) { .play-result { animation: none; } } @media (max-width: 600px) { #play-title { font-size: 1.4rem; } .ranked-start { padding: 9px 11px; } .ranked-entry { width: 100%; } .ranked-entry input, .ranked-entry button { width: 100%; } .play-picker { gap: 4px; padding-inline: 8px; } .play-picker button { padding: 6px 4px; font-size: .8rem; } .play-task { padding: 8px 10px; gap: 7px; } .play-task p { font-size: .85rem; } .play-viewport, .is-recorded .play-viewport, .play-viewport.is-enlarged { width: calc(100% - 16px); min-width: 0; } .play-topline { flex-wrap: wrap; padding-inline: 10px; } .play-actions { padding-inline: 8px; } .play-result { padding: 8px; } .result-card { width: min(280px, 100%); padding: 14px; } .result-card h3 { font-size: 1.5rem; } #result-time { font-size: 1.15rem; margin-top: 5px; } .result-card button { padding: 8px; margin-top: 10px; font-size: .8rem; } #result-detail { font-size: .9rem; margin-top: 6px; } .talk { margin-top: 28px; } } #human-leaderboard { width: min(980px, calc(100vw - 40px)); margin: 36px 0 0 50%; transform: translateX(-50%); scroll-margin-top: 28px; } .human-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; } .human-heading h2 { text-align: left; margin: 0; } .human-heading button, .human-table button { background: #fff; border: 1px solid #d9e2e9; border-radius: 6px; padding: 7px 10px; color: var(--navy); font: inherit; font-size: .72rem; cursor: pointer; } .human-explainer { color: var(--text); font-size: 1rem; line-height: 1.7; margin: 12px 0; } #board-status { font-size: .95rem; color: var(--text); } .human-table-wrap { overflow-x: auto; border: 1px solid #d9e2e9; border-radius: 12px; } .human-table { width: 100%; border-collapse: collapse; font-size: .82rem; text-align: left; font-variant-numeric: tabular-nums; } .human-table th { position: relative; background: #f1f5f8; padding: 14px 16px; font-size: .72rem; white-space: nowrap; } .human-table td { padding: 14px 16px; border-top: 1px solid #e5ebef; white-space: nowrap; } .human-table tr.is-own { background: #f0f8f3; } .human-table td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; min-width: 100px; } .human-play-link { text-align: center; font-size: .82rem; margin: 20px 0; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } @media (max-width: 760px) { .human-table td, .human-table th { padding: 12px 10px; } } .human-own-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .72rem; color: var(--muted); } .human-own-actions button { font: inherit; color: var(--muted); border: 1px solid #d9e2e9; border-radius: 6px; padding: 7px 10px; background: #fff; cursor: pointer; } #ranked-status:empty, #board-status:empty, .play-feedback:empty, #result-detail:empty { display: none; }