/* lrlr-play.com home, about and privacy pages, in the lrlr-master.com look:
   black screen, IBM Plex, the LRLR logo in its own colours. The toys keep their own look (/fun/kit/kit.css). */
:root {
  color-scheme: dark;
  --bg: #050505; --panel: #0d0d0d; --line: #1f1f1f;
  --fg: #ededed; --fg-2: #a3a3a3; --fg-3: #7a7a7a;
  --l1: #949494; --r1: #c5c505; --l2: #07d908; --r2: #bb0001; --slash: #45a531; --cursor: #51f32e;
  --focus: #e3e34a;
  --mono: "IBM Plex Mono", "IBM Plex Sans KR", ui-monospace, Menlo, Consolas, monospace;
  --body: "IBM Plex Sans KR", "IBM Plex Sans", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Top bar, as on lrlr-master.com */
.top { position: sticky; top: 0; z-index: 5; background: rgba(5, 5, 5, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 15px; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; height: 52px; margin: 0 auto; padding: 0 var(--gutter); }
.top a { text-decoration: none; }
.top nav a { padding: 8px 10px; color: var(--fg); opacity: .72; border-radius: 6px; }
.top nav a:hover { opacity: 1; background: rgba(255, 255, 255, .07); }

.brand { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px; margin-inline-start: -8px; text-decoration: none; }
.brand .logo { display: inline-flex; align-items: baseline; font: 700 19px/1 var(--mono); letter-spacing: -0.045em; }
.brand .b-s { color: var(--slash); margin-right: 0.02em; }
.brand .b-l1 { color: var(--l1); }
.brand .b-r1 { color: var(--r1); }
.brand .b-l2 { color: var(--l2); }
.brand .b-r2 { color: var(--r2); }
.brand .b-c { display: inline-block; width: 0.56em; height: 0.98em; margin-left: 0.07em; background: var(--cursor); transform: translateY(0.17em); animation: blink 1.1s steps(1) infinite; }
.brand .b-gap { white-space: pre; }
.brand .b-p { color: var(--fg); }
.brand .typing-hide { display: none; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brand .b-c { animation: none; } }

/* Language menu: a native select, as on lrlr-master.com */
.lang { position: relative; display: inline-flex; align-items: center; color: var(--fg); opacity: .72; border-radius: 6px; }
.lang:hover { opacity: 1; background: rgba(255, 255, 255, .07); }
.lang select { appearance: none; -webkit-appearance: none; padding: 8px 26px 8px 10px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: 500 15px/1 var(--body); cursor: pointer; }
.lang::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.lang option { background: #111111; color: #ededed; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(28px, 7vw, 36px); margin: 40px 0 12px; }
h2 { font-size: clamp(20px, 5vw, 24px); margin: 40px 0 10px; padding-top: 28px; border-top: 1px solid var(--line); }
h3 { font-size: 17px; margin: 24px 0 6px; }
.lead { font-size: 17px; color: var(--fg-2); margin: 0 0 8px; }
.doc p, .doc li { font-size: 15px; color: #d4d4d4; }
.doc ul { padding-left: 20px; }
.doc a { text-underline-offset: 3px; }

/* Home: app tiles like the strip on lrlr-master.com */
.home main { min-height: calc(100svh - 52px - 160px); display: flex; align-items: center; justify-content: center; }
.toys { list-style: none; padding: 0; margin: 48px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); justify-content: center; gap: 12px; }
.toy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 12px; border-radius: 14px; text-decoration: none; transition: background-color .15s; }
.toy:hover { background: rgba(255, 255, 255, .05); }
.toy img { width: 72px; height: 72px; margin-bottom: 10px; border-radius: 16px; box-shadow: 0 0 28px rgba(255, 255, 255, .06); }
.toy strong { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--fg); }
.toy em { font-style: normal; font-size: 13px; line-height: 1.4; color: var(--fg-3); }

.toy div { display: flex; flex-direction: column; gap: 4px; }
/* Language: the head script sets html[data-l] before paint; only that language's blocks show. */
html:not([data-l="zh-Hant"]) [data-lang="zh-Hant"], html[data-l="zh-Hant"] [data-lang="ko"] { display: none !important; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { white-space: nowrap; }
.top-in { min-width: 0; }
@media (max-width: 420px) { .top nav a { padding: 8px 6px; } .lang select { padding-left: 6px; } }

/* Footer, as on lrlr-master.com */
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--fg-3); font-size: 14px; line-height: 1.6; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a, .legal a { color: var(--fg-2); text-decoration: none; }
.foot-links a:hover, .legal a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.foot-policy { flex-basis: 100%; }
.foot-policy strong { color: var(--fg); font-weight: 600; }
.legal { margin: 0; }
.foot .note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--fg-3); }
.wrap { padding-bottom: 72px; }
