/* SoToy! shared tokens and base. Brand colours are variables so they are easy to change. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url('../fonts/poppins-latin-800-normal.woff2') format('woff2'); }

:root {
  --brand: #E63946;        /* chilli red */
  --accent: #FFC93C;       /* mustard */
  --ink: #1E1A1D;
  --paper: #F6EEDF;        /* museum label card */
  --paper-ink: #3A2F2A;
  --wall: #5A1D25;         /* wallpaper base, a deep version of the brand red */
  --wall-motif: #7A2F37;
  --wood: #3B2419;
  --wood-light: #5A3826;
  --gold: #D9A21F;
  --lavender: #E7E0F7;
  --lavender-deep: #CFC3EE;
  --font: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--wall); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Wallpaper: plush museum wall with "sok tahu" question marks and a wooden dado. */
.wallpaper { background: var(--wall) url('/assets/bg/museum-wall.webp') center bottom / cover no-repeat; }

/* Museum exhibit label: the signature detail used everywhere names or answers appear. */
.label {
  background: var(--paper);
  color: var(--paper-ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.35);
  padding: .5em .8em .55em;
  text-align: left;
}
.label .label-title { font-weight: 800; line-height: 1.1; display: block; }
.label .label-sub { font-size: .72em; font-style: italic; opacity: .8; display: block; margin-top: .15em; }

/* Language switch: two words, no flags. */
.lang-switch { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.lang-switch button { border: 0; background: transparent; padding: .35em .9em; font-weight: 800; color: var(--paper-ink); min-height: 44px; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.frame { position: relative; }
.frame-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: 1; pointer-events: none; }
.frame-inner { position: absolute; overflow: hidden; }
.avatar-img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.icon-img, .curator-img, .bust-img, .lamp-img { display: block; width: 100%; height: auto; user-select: none; }

/* Black speech bubble with chunky multicolour letters (gameplay voice). */
.bubble-black { background: var(--ink); color: #fff; border-radius: 28px; padding: .6em 1em; position: relative; }
.rainbow span { font-weight: 800; paint-order: stroke fill; -webkit-text-stroke: .06em var(--ink); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
