/* Landing page. Sizes are in px (as before), so Larger text (html.large) overrides each one explicitly at ×1.25. */
:root { --paper: #f3ecdf; --ink: #23302e; --soft: #5d6b67; --felt: #1f4a45; --night: #141a33; --card: #fbf7ef; --line: #d8cdb9; --link: #1f4a45; --warn: #8a3b12; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #171d1c; --ink: #efe7d8; --soft: #a6b1ad; --card: #1f2726; --line: #34403e; --link: #8fd0c6; --warn: #f0a77a; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font-family: Figtree, sans-serif; display: grid; place-items: center; padding: 24px 16px; }
main { max-width: 440px; width: 100%; }
h1 { font-family: Fraunces, serif; font-size: 44px; margin: 0 0 8px; }
h2 { font-family: Fraunces, serif; font-size: 24px; margin: 0 0 8px; }
p { color: var(--soft); font-size: 16px; line-height: 1.5; margin: 0 0 24px; }
a.game { display: block; text-decoration: none; color: #f6efe2; border-radius: 20px; padding: 22px; margin-bottom: 12px; }
a.game strong { display: block; font-family: Fraunces, serif; font-size: 28px; }
a.game span { opacity: .8; font-size: 16px; }
.pp { background: var(--felt); } .do { background: var(--night); }
small { color: var(--soft); font-size: 13px; line-height: 1.5; display: block; } small a { color: var(--link); }

/* Play with someone */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 12px 0; }
.card:empty { display: none; }
.card p { margin: 0 0 12px; }
.card p.note { font-size: 14px; }
.card p.msg { color: var(--warn); font-weight: 600; }
.card p.names { color: var(--ink); font-size: 16px; }
label { display: block; font-weight: 600; font-size: 16px; margin: 4px 0 6px; }
input[type="text"], textarea { width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
input[type="text"]:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
button { font: inherit; font-size: 16px; min-height: 48px; min-width: 48px; border-radius: 12px; cursor: pointer; }
button.primary { background: var(--felt); color: #f6efe2; border: 0; padding: 0 20px; font-weight: 600; }
button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 0 16px; }
button:disabled { opacity: .6; cursor: default; }
button.linkish { background: none; border: 0; padding: 0 6px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.primary { background: #2f6b64; } }
.link { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; padding: 12px; overflow-wrap: anywhere; user-select: all; margin: 0 0 12px; }
.status { min-height: 1.5em; margin: 0; font-size: 14px; color: var(--soft); }
.status:empty { min-height: 0; }
/* In-circle footer: one wrapping line of text and link-styled buttons, each still a 48 px target. */
.footer { color: var(--soft); font-size: 16px; line-height: 1.5; margin: 0; }
.footer button.linkish { display: inline-block; vertical-align: middle; }
.footer .sep { padding: 0 2px; }
.footer .who { color: var(--ink); font-weight: 600; }
.footer button.linkish { font-size: 16px; }
.footer button.rm { font-size: 14px; padding: 0 4px; }
#large { display: block; margin: 4px 0 8px -6px; }

/* Larger text: explicit px overrides (×1.25). */
html.large h1 { font-size: 55px; }
html.large h2 { font-size: 30px; }
html.large p, html.large .footer, html.large .card p.names, html.large label { font-size: 20px; }
html.large .card p.note, html.large .status, html.large .link, html.large .footer button.rm { font-size: 18px; }
html.large a.game strong { font-size: 35px; }
html.large a.game span { font-size: 20px; }
html.large small { font-size: 16px; }
html.large input[type="text"], html.large textarea, html.large button, html.large .footer button.linkish { font-size: 20px; }
html.large input[type="text"], html.large button { min-height: 56px; }
.card h2.inline { font-family: Figtree, sans-serif; font-size: 18px; font-weight: 700; }
html.large .card h2.inline { font-size: 23px; }
.footer .confirm { color: var(--ink); font-weight: 600; }
.footer .confirm button.linkish { font-weight: 600; }
a.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 600; text-decoration: none; }
a.btn.primary { background: var(--felt); color: #f6efe2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a.btn.primary { background: #2f6b64; } }
html.large a.btn { font-size: 20px; min-height: 56px; }
