/* Design system — fonts, color tokens (--c-*), and shared button classes. */
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-vietnamese.woff2") format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-latin-ext.woff2") format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-latin.woff2") format('woff2');
  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;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-vietnamese.woff2") format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-latin-ext.woff2") format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-latin.woff2") format('woff2');
  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;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-vietnamese.woff2") format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-latin-ext.woff2") format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/archivo-latin.woff2") format('woff2');
  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: 'Oooh Baby';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/OoohBaby-Regular.woff2") format('woff2');
}

:root {
  /* Type */
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-ending: "Oooh Baby", cursive;
  --fs-caption: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-body: 15px;
  --fs-lead: 19px;
  --fs-title: 24px;
  --fs-display: 52px;
  --fs-hero: 64px;

  -webkit-tap-highlight-color: 'red';

  /* Breakpoints (media queries must repeat the px value; keep in sync) */
  --bp-desktop: 768px;

  /* Phone shell size */
  --frame-w: 100%;
  --frame-h: 100dvh;
  --btn-screen-max: 280px;

  /* Radius */
  --r-xs: 3px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-frame: 0px; /* mobile: flush phone shell */
  --r-phone: 34px;
  --r-pill: 999px;
  --r-full: 50%;

  /* Z-index */
  --z-hud: 10;
  --z-sheet: 30;
  --z-modal: 60;
  --z-phone: 86;
  --z-phone-ui: 88;
  --z-tooltip: 92;
  --z-top: 95;

  /* Motion */
  --ease: ease;
  --ease-out: ease-out;
  --ease-bar: cubic-bezier(.2, .9, .2, 1);
  --dur-instant: .12s;
  --dur-fast: .22s;
  --dur: .5s;
  --dur-med: .6s;
  --dur-slow: 1.1s;
  --dur-fade: .9s;

  /* Space */
  --space-screen-x: 22px;

  /* Room hotspots (% of room image box — tune against assets/room_main.webp) */
  --hot-glow: rgba(14, 156, 255, 0.3);
  --hot-bed-l: 25%;
  --hot-bed-t: 37.5%;
  --hot-bed-w: 28%;
  --hot-phone-l: 9.5%;
  --hot-phone-t: 54.5%;
  --hot-phone-w: 25%;
  /* Wednesday morning — backpack + phone (room_morning.webp) */
  --hot-bag-l: -4.5%;
  --hot-bag-t: 59.5%;
  --hot-bag-w: 25%;
  --hot-phone-am-l: 61%;
  --hot-phone-am-t: 50%;
  --hot-phone-am-w: 25%;
  /* Message toast anchored above phone (same % box as hotspots) */
  --hot-toast-l: 16.5%;
  --hot-toast-t: 56%;
  --hot-toast-am-l: 27%;
  --hot-toast-am-t: 51.5%;
  /* SNS toast anchored below phone */
  --hot-soc-toast-l: 16.5%;
  --hot-soc-toast-t: 60%;
  --hot-soc-toast-am-l: 27%;
  --hot-soc-toast-am-t: 56%;
  /* Notebook on desk (evening + morning room) */
  --hot-nb-l: 50%;
  --hot-nb-t: 72%;
  --hot-nb-w: 28%;
  --hot-nb-am-l: 50%;
  --hot-nb-am-t: 72%;
  --hot-nb-am-w: 28%;
  /* Desk lamp hotspot (blue circle + tap) */
  --hot-lamp-l: 46.5%;
  --hot-lamp-t: 7.5%;
  --hot-lamp-w: 12%;
  /* hint.svg overlay (tune separately from lamp) */
  --hot-hint-l: 54.5%;
  --hot-hint-t: 13%;
  --hot-hint-w: 3%;

  /* Brand / action */
  --c-accent: #0b68da;
  --c-accent-bright: #0b68da;
  --c-accent-pop: #0099ff;
  --c-accent-soft: rgba(27, 79, 224, .1);
  --c-accent-faint: rgba(27, 79, 224, .05);
  --c-accent-wash: #D5DEFA;
  --c-accent-glow: #7C93E8;
  --c-accent-mist: #F1F4FE;
  --c-accent-morning: #DCE8F7;

  /* Chat speaker names (showWho / lightWho) */
  --c-who-nicole: #3295D2;
  --c-who-hanna: #34B3AB;
  --c-who-mia: #0B9A75;
  --c-who-lea: #AC672E;
  --c-who-benito: #FF6160;
  --c-who-nele: #FF8018;
  --c-who-default: var(--c-muted);

  /* Ink / text */
  --c-ink: #111111;
  --c-ink-soft: rgba(17, 17, 17, .14);
  --c-ink-muted: rgba(17, 17, 17, .35);
  --c-ink-dim: rgba(17, 17, 17, .45);
  --c-ink-faint: rgba(17, 17, 17, .5);
  --c-ink-hair: rgba(17, 17, 17, .08);
  --c-ink-ghost: rgba(17, 17, 17, .16);
  --c-ink-overlay: rgba(17, 17, 17, .45);
  --c-ink-scrim: rgba(17, 17, 17, .5);
  --c-ink-heavy: rgba(17, 17, 17, .55);
  --c-ink-strong: rgba(17, 17, 17, .85);
  --c-ink-whisper: rgba(17, 17, 17, .06);
  --c-ink-shadow: rgba(17, 17, 17, .2);
  --c-ink-body: rgba(17, 17, 17, .6);
  --c-muted: #6B6B6B;
  --c-muted-mid: #8A8A8A;
  --c-muted-dark: #4A4A4A;
  --c-muted-deep: #444444;

  /* Surfaces */
  --c-white: #FFFFFF;
  --c-white-soft: rgba(255, 255, 255, .18);
  --c-white-mid: rgba(255, 255, 255, .3);
  --c-white-dim: rgba(255, 255, 255, .55);
  --c-white-muted: rgba(255, 255, 255, .6);
  --c-white-faint: rgba(255, 255, 255, .65);
  --c-white-ghost: rgba(255, 255, 255, .7);
  --c-white-wash: rgba(255, 255, 255, .8);
  --c-white-bare: rgba(255, 255, 255, .12);
  --c-white-fog: rgba(255, 255, 255, .85);
  --c-white-sheet: rgba(255, 255, 255, .94);
  --c-white-bloom: rgba(255, 255, 255, .95);
  --c-tooltip: rgba(255, 255, 255, 1);
  --c-black: #000000;
  --c-black-soft: rgba(0, 0, 0, .2);
  --c-black-mid: rgba(0, 0, 0, .35);
  --c-black-heavy: rgba(0, 0, 0, .5);
  --c-black-strong: rgba(0, 0, 0, .6);
  --c-canvas: #D8D8D8;
  /* Desktop chrome around the phone (non-title screens) — dark enough for white mark */
  --c-canvas-play: #969798;
  --c-frame: #E8E8E8;
  --c-panel: #E4E4E4;
  --c-line: #D4D4D4;
  --c-line-soft: #EEEEEE;
  --c-wash: #EFEFEF;
  --c-wash-alt: #EDEDED;
  --c-wash-warm: #EDE9E1;
  --c-wash-light: #F5F5F5;
  --c-wash-cream: #F4F1EC;
  --c-wash-grey: #E5E5E5;
  --c-silver: #BFBFBF;

  /* Status */
  --c-danger: #E01B1B;
  --c-danger-deep: #D62B2B;
  --c-danger-dark: #8A1C1C;
  --c-warning: #D97706;
  --c-safe: #1A7A5C;

  /* Legacy warm tint */
  --c-warm-soft: rgba(242, 177, 92, .10);
}

/* Desktop: phone mockup width + rounded shell (height is flexible in game.css) */
@media (min-width: 768px) {
  :root {
    --frame-w: 390px;
    --frame-h: auto;
    --r-frame: 32px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
}

/* — buttons (g-btn-*) — */

.g-btn {
  font-family: var(--font-body);
  cursor: pointer;
  border: 0;
  border-radius: 0;
  text-align: left;
  box-sizing: border-box;
}

.g-btn:disabled {
  cursor: not-allowed;
}

.g-btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.g-btn-primary {
  background: var(--c-accent-pop);
  color: var(--c-ink);
  padding: 14px 26px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
}

/* Full-width screen CTA — same width/height as title Start */
.g-btn-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--btn-screen-max);
  min-height: 58px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 28px;
  box-sizing: border-box;
}

.g-btn-primary-lg {
  padding: 16px 28px;
  min-width: 220px;
}

.g-btn-primary-sm {
  padding: 13px 22px;
  font-size: 15px;
}

.g-btn-primary-block {
  width: 100%;
  height: 52px;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.g-btn-secondary {
  background: transparent;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 15px;
}

.g-btn-ghost {
  background: transparent;
  border: 0;
  color: var(--c-muted);
  padding: 0;
  font-size: 13px;
  text-align: left;
}

.g-btn-ghost:hover {
  color: var(--c-ink);
}

.g-btn-ghost-pad {
  padding: 10px 0 0;
}

.g-skip {
  position: absolute;
  top: 16px;
  right: 12px;
  z-index: 20;
  background: transparent;
  border: 0;
  color: var(--c-muted);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 8px 12px;
  min-height: 44px;
  text-align: right;
  -webkit-tap-highlight-color: transparent;
}

.g-skip--inline {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
  padding: 0;
  min-height: 0;
}

.g-skip:hover {
  color: var(--c-ink);
}

.g-btn-nav {
  background: transparent;
  border: 0;
  color: var(--c-accent);
  font-size: 15px;
  padding: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.g-btn-nav-icon {
  font-size: 20px;
  min-width: 44px;
  justify-content: center;
}

.g-btn-choice {
  width: 100%;
  background: var(--c-accent-faint);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  padding: 13px 15px;
  font-size: 15px;
  text-align: left;
}

.g-btn-footer {
  width: 100%;
  background: var(--c-accent);
  color: var(--c-frame);
  border: 0;
  border-radius: 10px;
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.g-btn-footer-row {
  display: flex;
  gap: 10px;
}

.g-btn-footer-row .g-btn-footer {
  width: auto;
  flex: 1;
}

.g-btn-footer-back {
  flex: 1;
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.g-btn-footer-back:hover {
  border-color: var(--c-accent);
}
