/* Tiny Lantern studio site. One theme family (auto light/dark), one accent (lantern amber).
   Radius rule: interactive controls are pills, surfaces 20px, screenshots 14px, phone frames 30px. */

@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-vietnamese.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-latin-ext-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-vietnamese-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-latin-ext-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-vietnamese-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-latin-ext-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-vietnamese-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-latin-ext-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/fonts/bvp-vietnamese-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

:root {
  --bg: #f6f7f9;
  --bg-2: #eef1f5;
  --surface: #ffffff;
  --ink: #131a26;
  --muted: #536074;
  --line: #e2e6ed;
  --accent: #bf5410;
  --accent-ink: #ffffff;
  --accent-soft: rgb(191 84 16 / .09);
  --glow: rgb(255 168 76 / .42);
  --shadow: 0 1px 2px rgb(19 26 38 / .05), 0 12px 32px -12px rgb(19 26 38 / .18);
  --shadow-lg: 0 30px 60px -24px rgb(40 30 20 / .35);
  --r-surface: 20px;
  --r-shot: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d121b;
    --bg-2: #121926;
    --surface: #161e2b;
    --ink: #edf1f7;
    --muted: #9ba7b9;
    --line: #243045;
    --accent: #ffae5e;
    --accent-ink: #1d1206;
    --accent-soft: rgb(255 174 94 / .12);
    --glow: rgb(255 160 70 / .26);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 36px -14px rgb(0 0 0 / .6);
    --shadow-lg: 0 30px 70px -24px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--surface); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.section-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 700; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 14px 0 0; font-size: 18px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-row { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 18px -6px var(--accent); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--display); font-weight: 750; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.nav nav { margin-left: auto; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.lang:hover { color: var(--ink); background: var(--bg-2); }
.nav-cta { height: 40px; padding: 0 18px; font-size: 15px; }
@media (max-width: 900px) { .nav nav { display: none; } .nav-end { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: 56px 0 24px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: min(640px, calc(100dvh - 68px)); }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; font-weight: 750; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--accent); padding-bottom: 4px; }
.lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); max-width: 44ch; margin: 22px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; height: 560px; }
.glow { position: absolute; inset: 8% 4% 2%; background: radial-gradient(closest-side, var(--glow), transparent 72%); filter: blur(10px); }
.phone { position: absolute; margin: 0; width: 42%; aspect-ratio: 460 / 999; border-radius: 30px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 6px color-mix(in srgb, var(--surface) 92%, transparent); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.p-center { left: 29%; top: 0; z-index: 2; }
.p-left { left: 2%; top: 13%; transform: rotate(-7deg); }
.p-right { right: 2%; top: 13%; transform: rotate(7deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .p-center { animation: rise 1s .1s var(--ease) both; }
  .p-left { animation: fan-l 1.1s .25s var(--ease) both; }
  .p-right { animation: fan-r 1.1s .25s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fan-l { from { opacity: 0; transform: translateX(40%) rotate(0); } }
@keyframes fan-r { from { opacity: 0; transform: translateX(-40%) rotate(0); } }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 16px; }
  .hero-art { height: auto; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; margin: 8px auto 0; }
}

/* Facts */
.facts { padding: 24px 0 8px; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 26px 20px 8px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact strong { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: clamp(32px, 4vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.fact .star { width: 26px; height: 26px; color: var(--accent); }
.fact span { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 22ch; }
@media (max-width: 760px) {
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Games: tabs */
.games { padding: 96px 0 40px; }
.game-tabs { display: flex; gap: 8px; margin: 36px 0 24px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-left: -4px; }
.game-tabs::-webkit-scrollbar { display: none; }
.game-tabs [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px; border-radius: 999px; border: 0; background: var(--surface); color: var(--muted); font: 650 16px var(--body); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--ease), color .3s, box-shadow .3s; }
.game-tabs [role="tab"] img { width: 40px; height: 40px; border-radius: 12px; }
.game-tabs [role="tab"]:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
.game-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.game-panel { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: 40px; align-items: center; background: var(--surface); border-radius: var(--r-surface); padding: 36px; box-shadow: var(--shadow); }
.game-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .game-panel:not([hidden]) { animation: rise .6s var(--ease) both; } }
.panel-head { display: flex; align-items: center; gap: 16px; }
.app-icon { border-radius: 22%; box-shadow: 0 8px 20px -10px rgb(0 0 0 / .45); }
.panel-head h3 { font-size: 30px; font-weight: 700; line-height: 1.1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tags span { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.panel-desc { color: var(--muted); margin: 20px 0 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.mini-links { display: flex; gap: 18px; margin: 18px 0 0; font-size: 14px; }
.mini-links a { color: var(--muted); text-underline-offset: 3px; }
.mini-links a:hover { color: var(--ink); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip img { width: 100%; height: auto; border-radius: var(--r-shot); scroll-snap-align: start; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 900px) {
  .game-panel { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .strip { grid-auto-columns: 46%; order: -1; }
}

/* Apps: two-up showcase */
.apps { padding: 72px 0 40px; }
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.app-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-surface); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.app-shots { position: relative; height: 300px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; gap: 14px; padding-top: 32px; }
.app-modeli .app-shots { background: linear-gradient(160deg, #f3e4ea, #e7eef7); }
.app-hiyoko .app-shots { background: linear-gradient(160deg, #fff1c9, #fde2b8); }
@media (prefers-color-scheme: dark) {
  .app-modeli .app-shots { background: linear-gradient(160deg, #2a1f2a, #1a2333); }
  .app-hiyoko .app-shots { background: linear-gradient(160deg, #2e2716, #2a1f12); }
}
.app-shots img { width: 30%; max-width: 170px; border-radius: var(--r-shot); box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.app-shots img:nth-child(1) { transform: translateY(26px) rotate(-5deg); }
.app-shots img:nth-child(3) { transform: translateY(26px) rotate(5deg); }
.app-card:hover .app-shots img:nth-child(2) { transform: translateY(-6px); }
.app-body { padding: 28px 30px 30px; }
@media (max-width: 860px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app-shots { height: 250px; }
  .app-body { padding: 22px; }
}

/* Duo */
.duo { padding: 96px 0 56px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 28px 0 20px; background: var(--bg-2); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.seg [role="tab"] { height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 650 15px var(--body); cursor: pointer; transition: background-color .3s var(--ease), color .3s; }
.seg [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.stage { position: relative; border-radius: calc(var(--r-surface) + 4px); overflow: hidden; background: #1c0f33; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.stage video { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.stage video.swap { opacity: 0; }
.play-toggle { position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgb(15 12 25 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.play-toggle svg { width: 20px; height: 20px; }
.play-toggle .ic-play, .play-toggle[data-state="paused"] .ic-pause { display: none; }
.play-toggle[data-state="paused"] .ic-play { display: block; }

/* Coming soon */
.soon { padding: 56px 0; }
.soon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.soon-item { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: var(--r-surface); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.soon-item img { width: 80px; height: 80px; border-radius: 22%; }
.soon-item h3 { font-size: 22px; }
.soon-item p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 760px) { .soon-grid { grid-template-columns: 1fr; } }

/* Support */
.support { padding: 64px 0 96px; }
.support-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.faq a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Contact: colorful card */
.contact { padding: 24px 0 96px; }
.contact-box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px; border-radius: 32px;
  background:
    radial-gradient(60% 80% at 0% 0%, #ffd7a8 0%, transparent 60%),
    radial-gradient(55% 70% at 100% 0%, #bfe6ff 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, #c6f2e4 0%, transparent 60%),
    radial-gradient(55% 70% at 0% 100%, #ffc9d6 0%, transparent 60%),
    #fff6ec;
  box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) {
  .contact-box { background:
    radial-gradient(60% 80% at 0% 0%, rgb(255 160 80 / .28) 0%, transparent 60%),
    radial-gradient(55% 70% at 100% 0%, rgb(90 170 240 / .25) 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgb(80 200 170 / .22) 0%, transparent 60%),
    radial-gradient(55% 70% at 0% 100%, rgb(240 110 150 / .22) 0%, transparent 60%),
    #172031; }
}
.contact-main { position: relative; }
.mascot { width: 200px; height: auto; margin: -8px 0 6px -10px; filter: drop-shadow(0 14px 24px rgb(200 90 40 / .25)); }
@media (prefers-reduced-motion: no-preference) { .mascot { animation: bob 4s ease-in-out infinite; } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.contact-box h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.contact-box p { color: var(--muted); font-size: 18px; margin: 14px 0 26px; max-width: 40ch; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social { width: 50px; height: 50px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.social:hover { transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
.contact-mail { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; border-bottom: 1.5px solid var(--line); }
.contact-mail:hover { color: var(--ink); border-color: var(--ink); }
.contact-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.contact-tiles li { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-tiles svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; color: #fff; }
.contact-tiles strong { display: block; font-family: var(--display); font-size: 19px; margin-bottom: 4px; }
.contact-tiles span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.t-amber svg { background: #f59e2b; }
.t-pink svg { background: #e8577f; }
.t-teal svg { background: #1ba39c; }
.t-sky svg { background: #3b8fe0; }
@media (max-width: 900px) {
  .contact-box { grid-template-columns: 1fr; padding: 32px 22px; }
  .mascot { width: 150px; }
}
@media (max-width: 600px) {
  .contact-tiles { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .contact-tiles li { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; }
  .contact-tiles svg { flex: none; }
}

/* Official store badges */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-block; border-radius: 10px; transition: transform .3s var(--ease); }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 48px; width: auto; }

/* Brand mark (Codex logo) */
.brand-mark { background: none !important; box-shadow: none !important; width: 40px; height: 40px; }
.brand-mark img { width: 40px; height: 40px; border-radius: 11px; filter: drop-shadow(0 6px 12px rgb(30 140 147 / .3)); }

/* About: profile + tabs */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; margin-top: 36px; }
.about-main .about-tabs { margin-top: 0; }
.profile { position: sticky; top: 92px; background: var(--surface); border-radius: var(--r-surface); overflow: hidden; box-shadow: var(--shadow); }
.portrait { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.profile-body { padding: 22px 24px 26px; }
.profile-body h3 { font-size: 24px; }
.profile-body .role { margin: 4px 0 6px; color: var(--muted); font-weight: 500; }
.profile-body .loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.profile-body .loc svg { color: var(--accent); }
.years { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 18px; }
.years strong { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); }
.years span { font-weight: 600; }
.profile-body h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.certs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.certs li { display: flex; gap: 10px; align-items: flex-start; }
.certs svg { width: 22px; height: 22px; color: #1ba39c; margin-top: 2px; }
.certs strong { display: block; font-size: 14.5px; line-height: 1.3; }
.certs small { color: var(--muted); font-size: 13px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--bg-2); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.profile-links a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.timeline .org { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--accent); margin-left: 6px; }
.panel-sum.small { font-size: 18px; font-weight: 500; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; }
.posts a { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.posts .date { color: var(--muted); font-size: 14px; }
.posts strong { font-weight: 600; line-height: 1.4; }
.posts a:hover strong { color: var(--accent); }
.posts svg { width: 16px; height: 16px; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; margin-top: 14px; }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .profile { position: static; display: grid; grid-template-columns: 160px 1fr; }
  .portrait { height: 100%; }
}
@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4 / 3; }
  .posts a { grid-template-columns: 1fr auto; }
  .posts .date { grid-column: 1 / -1; }
}

/* App cards: undistorted screenshots */
.app-shots { height: 330px; gap: 16px; padding-top: 30px; }
.app-shots img { width: 29%; max-width: 168px; height: auto; aspect-ratio: 460 / 999; object-fit: cover; object-position: top; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); margin: 14px 0 0; max-width: 28ch; font-size: 15px; }
.footer h3 { font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer ul a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-base p { margin: 0; }
.footer-base a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Scroll reveal (JS adds .in). Content stays visible without JS or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Hero eyebrow spacing */
.hero .eyebrow { margin-bottom: 16px; }

/* More link in product cards */
.mini-links .more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.mini-links .more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.mini-links .more:hover { color: var(--accent); }
.mini-links .more:hover svg { transform: translateX(3px); }
.panel-head h3 a, .panel-head h1 a { text-decoration: none; }
.panel-head h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* About (tabs) */
.about { padding: 96px 0 56px; }
.about-tabs { flex-wrap: wrap; border-radius: 26px; }
.about-panel { margin-top: 8px; background: var(--surface); border-radius: var(--r-surface); padding: 36px; box-shadow: var(--shadow); }
.about-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .about-panel:not([hidden]) { animation: rise .6s var(--ease) both; } }
.panel-sum { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; margin: 0 0 28px; max-width: 40ch; line-height: 1.25; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline .when { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 18px; }
.timeline h3 { font-size: 19px; }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.skill-group h3 { font-size: 18px; margin-bottom: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; }
.lessons { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.lesson { padding: 24px; border-radius: 16px; background: var(--bg-2); }
.lesson:first-child { grid-row: span 3; background: var(--accent-soft); display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; }
.lesson:first-child h3 { font-size: 26px; }
.lesson h3 { font-size: 19px; line-height: 1.25; }
.lesson p { margin: 10px 0 0; color: var(--muted); }
.work { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.work-intro p:first-child { font-size: 19px; margin: 0 0 22px; }
.work-intro .muted { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.work-list li { display: flex; gap: 14px; align-items: flex-start; }
.work-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.work-list h3 { font-size: 18px; }
.work-list p { margin: 2px 0 0; color: var(--muted); }
.about .principles { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .about-panel { padding: 22px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .skills, .lessons, .work { grid-template-columns: 1fr; }
  .lesson:first-child { grid-row: auto; min-height: 0; }
}
@media (max-width: 560px) { .about .principles { grid-template-columns: 1fr; } }

/* Detail pages */
.section-title.small { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 20px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { width: 12px; height: 12px; transform: rotate(-90deg); opacity: .6; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.d-hero { padding: 40px 0 40px; overflow: clip; }
.d-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.panel-head.big h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.03em; }
.d-answer { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); margin: 24px 0 16px; max-width: 56ch; }
.rating { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0 0 24px; }
.rating svg { width: 18px; height: 18px; color: var(--accent); }
.rating strong { color: var(--ink); }
.d-hero-art { position: relative; height: 520px; }
.d-hero-art .phone { width: 46%; }
.d-p1 { left: 10%; top: 0; z-index: 2; transform: rotate(-4deg); }
.d-p2 { right: 6%; top: 9%; transform: rotate(5deg); }
@media (prefers-reduced-motion: no-preference) {
  .d-hero-copy > * { animation: rise .9s var(--ease) both; }
  .d-p1 { animation: rise 1s .1s var(--ease) both; }
  .d-p2 { animation: rise 1s .25s var(--ease) both; }
}
.d-shots { padding: 40px 0; }
.strip.wide { grid-auto-columns: max-content; align-items: start; }
.strip.wide img { height: clamp(320px, 42vw, 460px); width: auto; max-width: none; }
.d-video { padding: 40px 0; }
.d-body { padding: 48px 0; }
.d-body-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.checks.big { gap: 14px; margin-bottom: 44px; }
.checks.big li { font-size: 18px; }
.d-who { color: var(--muted); font-size: 18px; margin: 0; max-width: 56ch; }
.d-facts { background: var(--surface); border-radius: var(--r-surface); padding: 28px; box-shadow: var(--shadow); position: sticky; top: 92px; }
.d-facts h2 { font-size: 20px; margin-bottom: 14px; }
.d-facts dl { margin: 0; display: grid; }
.d-facts dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.d-facts dt { color: var(--muted); font-size: 15px; }
.d-facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.d-faq { padding: 48px 0; }
.d-more { padding: 24px 0 72px; }
.more-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.more-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; scroll-snap-align: start; transition: transform .3s var(--ease), box-shadow .3s; }
.more-item:hover { transform: translateY(-2px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.more-item img { width: 56px; height: 56px; border-radius: 22%; }
.more-item strong { display: block; font-family: var(--display); font-size: 17px; }
.more-item small { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .d-hero-grid, .d-body-grid { grid-template-columns: 1fr; }
  .d-hero-art { height: auto; aspect-ratio: 1 / .95; max-width: 460px; width: 100%; margin: 0 auto; }
  .d-facts { position: static; }
}
@media (max-width: 480px) { .d-facts dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Principles (About > How I work) */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px 32px; }
.principles svg { width: 28px; height: 28px; color: var(--accent); }
.principles h3 { font-size: 20px; margin: 14px 0 6px; }
.principles p { margin: 0; color: var(--muted); }

.lang .short { display: none; }
@media (max-width: 480px) { .lang .long { display: none; } .lang .short { display: inline; } .nav-row { gap: 12px; } .nav-end { gap: 6px; } }

.nf { padding: 96px 0 72px; }
.nf h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 750; letter-spacing: -0.03em; }
.nf-row { margin-top: 48px; }

/* ---- Legal pages, guides, Japanese pages (23/11/2026) ---- */
:lang(ja) { font-family: var(--body), "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; }
.legal-page { padding: 40px 0 72px; }
.legal-wrap { max-width: 780px; }
.legal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.legal-tabs { font-size: 15px; color: var(--muted); }
.legal-tabs a { color: var(--muted); text-decoration: none; }
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a[aria-current] { color: var(--ink); font-weight: 700; }
.legal-lang { font-size: 14px; font-weight: 600; color: var(--accent); }
.legal { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 28px 0 8px; }
.legal h2 { font-family: var(--body); font-size: 20px; font-weight: 700; letter-spacing: 0; margin: 34px 0 8px; }
.legal h3 { font-family: var(--body); font-size: 17px; font-weight: 700; letter-spacing: 0; margin: 22px 0 4px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-top: 0; }
.legal a { color: var(--accent); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.legal th { width: 34%; font-weight: 600; }
.legal-back { margin: 48px 0 0; }
.legal-back .more-item { display: inline-flex; }
.legal-back .more-item img { width: 48px; height: 48px; }
.d-guides { padding: 8px 0 32px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.guide-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 16px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; }
.guide-list a:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.guide-list svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.plain-links { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.plain-links a { color: var(--ink); font-weight: 600; }
.ja-foot { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 900px) { .ja-foot { grid-template-columns: 1fr; } }
