/*!
 * 
 *   simple-keyboard v3.8.135
 *   https://github.com/hodgef/simple-keyboard
 *
 *   Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
 *
 *   This source code is licensed under the MIT license found in the
 *   LICENSE file in the root directory of this source tree.
 *
 */.hg-theme-default{background-color:#ececec;border-radius:5px;box-sizing:border-box;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;overflow:hidden;padding:5px;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.hg-theme-default .hg-button span,.hg-theme-default .hg-button span svg{pointer-events:none}.hg-theme-default button.hg-button{border-width:0;font-size:inherit}.hg-theme-default .hg-button{display:inline-block;flex-grow:1}.hg-theme-default .hg-row{display:flex}.hg-theme-default .hg-row:not(:last-child){margin-bottom:5px}.hg-theme-default .hg-row .hg-button-container,.hg-theme-default .hg-row .hg-button:not(:last-child){margin-right:5px}.hg-theme-default .hg-row>div:last-child{margin-right:0}.hg-theme-default .hg-row .hg-button-container{display:flex}.hg-theme-default .hg-button{align-items:center;background:#fff;border-bottom:1px solid #b5b5b5;border-radius:5px;box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-sizing:border-box;cursor:pointer;display:flex;height:40px;justify-content:center;padding:5px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.hg-theme-default .hg-button.hg-standardBtn{width:20px}.hg-theme-default .hg-button.hg-activeButton{background:#efefef}.hg-theme-default.hg-layout-numeric .hg-button{align-items:center;display:flex;height:60px;justify-content:center;width:33.3%}.hg-theme-default .hg-button.hg-button-numpadadd,.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.hg-theme-default .hg-button.hg-button-com{max-width:85px}.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px}.hg-candidate-box{background:#ececec;border-bottom:2px solid #b5b5b5;border-radius:5px;display:inline-flex;margin-top:-10px;position:absolute;transform:translateY(-100%);-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.hg-candidate-box-list{display:flex;flex:1;list-style:none;margin:0;padding:0}li.hg-candidate-box-list-item{align-items:center;display:flex;height:40px;justify-content:center;width:40px}li.hg-candidate-box-list-item:hover{background:rgba(0,0,0,.03);cursor:pointer}li.hg-candidate-box-list-item:active{background:rgba(0,0,0,.1)}.hg-candidate-box-prev:before{content:"◄"}.hg-candidate-box-next:before{content:"►"}.hg-candidate-box-next,.hg-candidate-box-prev{align-items:center;color:#969696;cursor:pointer;display:flex;padding:0 10px}.hg-candidate-box-next{border-bottom-right-radius:5px;border-top-right-radius:5px}.hg-candidate-box-prev{border-bottom-left-radius:5px;border-top-left-radius:5px}.hg-candidate-box-btn-active{color:#444}/* ── CSS variables (classic / dark theme) ──────────────────────────────────── */
._fullKeyboard_a3f8j_2 {
  --font-scale: 1;               /* controlled by keyFontScale prop */
  --ks:  58px;                   /* fixed key size — font scales independently */
  --gap:  4px;
  --rad:  6px;
  --key-bg:           #1e1e30;
  --key-border:       #2e2e4a;
  --key-hover:        #28284a;
  --key-active-bg:    #6c63ff;
  --key-active-shadow:#6c63ff66;
  --key-active-text:  rgba(255,255,255,0.95);   /* text color on highlighted key */
  --key-active-phys:  rgba(255,255,255,0.50);   /* physical label on highlighted key */
  --key-error:        #ff405c;
  --key-error-rgb:    255, 64, 92;
  --fixed-bg:         #14142a;
  --fixed-color:      #b7bdd6;
  --lang-altgr:       #a8dcff;
  --lang-shift:       #d8dbf2;
  --lang-phys:        #8b93b3;
  --lang-normal:      #f7f8ff;
  --key-hint:         #ffdc3a;
  --key-hint-rgb:     255, 220, 58;
  --key-hint-ring:    rgba(20,20,20,0.44);
  --key-label-shadow:  0 1px 1px rgba(0,0,0,0.62), 0 0 2px rgba(255,255,255,0.30);
  --key-label-shadow-active: 0 1px 1px rgba(0,0,0,0.42);
  --font: 'Noto Sans Khmer', 'Inter', sans-serif;

  display: inline-flex;
  flex-direction: column;
  padding: 12px;
  background: #0f0f1e;
  border-radius: 14px;
  border: 1px solid #2a2a40;
  user-select: none;
  /* no base box-shadow — each theme defines its own shadow where appropriate */
}

/* ── Key base ──────────────────────────────────────────────────────────────── */
._key_a3f8j_40 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: var(--ks);
  min-width: var(--ks);
  flex: 1;
  padding: 2px 4px;
  background: var(--key-bg);
  border: 1px solid var(--key-border);
  border-radius: var(--rad);
  border-bottom: 3px solid #333360;
  cursor: default;
  pointer-events: none;
  font-family: var(--font);
  transition: background 0.08s, transform 0.06s, box-shadow 0.08s;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

._key_a3f8j_40 span {
  box-sizing: border-box;
  max-width: 100%;
}

._keyLabel_a3f8j_67,
._cellAltGr_a3f8j_68,
._cellShift_a3f8j_69,
._cellPhys_a3f8j_70,
._cellNormal_a3f8j_71,
._jisShift_a3f8j_72,
._jisKanaShift_a3f8j_73,
._jisPhys_a3f8j_74,
._jisKana_a3f8j_73,
._koTopLeft_a3f8j_76,
._koTopRight_a3f8j_77,
._koBottomLeft_a3f8j_78,
._koHangul_a3f8j_79 {
  text-shadow: var(--key-label-shadow);
}

._key_a3f8j_40:active,
._active_a3f8j_84 {
  background:   var(--key-active-bg) !important;
  border-color: var(--key-active-bg) !important;
  box-shadow:   0 0 0 3px var(--key-active-shadow);
  transform:    translateY(1px);
}

/* Text inside a highlighted key switches to a contrasting color */
._active_a3f8j_84 ._cellAltGr_a3f8j_68,
._active_a3f8j_84 ._cellShift_a3f8j_69,
._active_a3f8j_84 ._cellNormal_a3f8j_71,
._active_a3f8j_84 ._keyLabel_a3f8j_67 {
  color: var(--key-active-text) !important;
  text-shadow: var(--key-label-shadow-active);
}

._active_a3f8j_84 ._cellPhys_a3f8j_70 {
  color: var(--key-active-phys) !important;
  text-shadow: var(--key-label-shadow-active);
}

._hint_a3f8j_105 {
  border-color: var(--key-hint) !important;
  box-shadow:
    0 0 0 2px rgba(var(--key-hint-rgb), 0.82),
    inset 1px 1px 0 rgba(255,255,255,0.16);
}

._modifierHint_a3f8j_112 {
  border-color: rgba(var(--key-hint-rgb), 0.62) !important;
}

._activeWrong_a3f8j_116 {
  background: var(--key-error) !important;
  border-color: var(--key-error) !important;
  box-shadow:
    0 0 0 3px rgba(var(--key-error-rgb), 0.36),
    0 0 18px rgba(var(--key-error-rgb), 0.72) !important;
}

._activeCorrect_a3f8j_124 {
  box-shadow:
    0 0 0 3px var(--key-active-shadow),
    0 0 14px var(--key-active-shadow) !important;
}

/* ── Fixed key (Tab, Esc, Shift …) ────────────────────────────────────────── */
._fixedKey_a3f8j_131 { background: var(--fixed-bg); }

._keyLabel_a3f8j_67 {
  font-size: min(calc(0.62rem * var(--font-scale)), calc(var(--ks) * 0.23));
  color: var(--custom-key-text, var(--fixed-color));
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.05;
  max-height: calc(100% - 2px);
}

/* ── Language key — four corner labels with room for tall scripts ─────────── */
._langKey_a3f8j_144 {
  align-items: stretch;
  justify-content: stretch;
  padding: 3px;
}

._keyGrid_a3f8j_150 {
  flex: 1;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

/*
 * Corner labels use the full key as their clipping box instead of four
 * half-height grid cells. This prevents tall Khmer glyphs from being cut off.
 */
._cellAltGr_a3f8j_68 {
  position: absolute;
  top: 1px;
  left: 0;
  font-family: var(--font);
  font-size: min(calc(0.94rem * var(--font-scale)), calc(var(--ks) * 0.31));
  color: var(--custom-key-top-left, var(--custom-key-text, var(--lang-altgr)));
  line-height: 1.28;
  overflow: visible;
  max-width: 48%;
  text-align: left;
}

._cellShift_a3f8j_69 {
  position: absolute;
  top: 1px;
  right: 0;
  font-family: var(--font);
  font-size: min(calc(0.94rem * var(--font-scale)), calc(var(--ks) * 0.31));
  color: var(--custom-key-top-right, var(--custom-key-text, var(--lang-shift)));
  line-height: 1.28;
  overflow: visible;
  max-width: 48%;
  text-align: right;
}

._cellPhys_a3f8j_70 {
  position: absolute;
  left: 0;
  bottom: 1px;
  font-family: 'Inter', sans-serif;
  font-size: min(calc(0.76rem * var(--font-scale)), calc(var(--ks) * 0.25));
  color: var(--custom-key-bottom-left, var(--custom-key-text, var(--lang-phys)));
  line-height: 1.1;
  font-weight: 400;
  overflow: visible;
  max-width: 48%;
  text-align: left;
}

._cellNormal_a3f8j_71 {
  position: absolute;
  right: 0;
  bottom: 1px;
  font-family: var(--font);
  font-size: min(calc(0.94rem * var(--font-scale)), calc(var(--ks) * 0.31));
  color: var(--custom-key-bottom-right, var(--custom-key-text, var(--lang-normal)));
  font-weight: 600;
  line-height: 1.28;
  overflow: visible;
  max-width: 48%;
  text-align: right;
}

/* ── Key width variants ─────────────────────────────────────────────────────── */
._wBksp_a3f8j_220   { flex: 2;    }
._wTab_a3f8j_221    { flex: 1.5;  }
._wCaps_a3f8j_222   { flex: 1.75; }
._wEnter_a3f8j_223  { flex: 2.25; }
._wShiftL_a3f8j_224 { flex: 2.25; }
._wShiftR_a3f8j_225 { flex: 2.75; }
._wCtrl_a3f8j_226   { flex: 1.25; }
._wMeta_a3f8j_227   { flex: 1.25; }
._wAlt_a3f8j_228    { flex: 1.25; }
._wSpace_a3f8j_229  { flex: 6.25; }
._wFn_a3f8j_230     { flex: 1; min-width: 38px; }

/* ── Keyboard body ─────────────────────────────────────────────────────────── */
._body_a3f8j_233 {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* ── Left column: fn row + main section ────────────────────────────────────── */
._leftCol_a3f8j_240 {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Function key row — 4 groups separated by larger gap */
._fnRow_a3f8j_247 {
  display: flex;
  gap: 8px;
}

/* Each fn group (Esc | F1-F4 | F5-F8 | F9-F12) */
._fnGroup_a3f8j_253 {
  display: flex;
  gap: var(--gap);
  flex: 4;   /* F-key groups each get equal share */
}

/* Esc is a single key; give it proportional space */
._fnEsc_a3f8j_260 { flex: 1; }

._mainSection_a3f8j_262 {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

._mainRow_a3f8j_268 {
  display: flex;
  gap: var(--gap);
}

/* ── Nav column ─────────────────────────────────────────────────────────────── */
._navCol_a3f8j_274 {
  display: flex;
  flex-direction: column;
}

/*
 * Nav grid layout:
 *   fn shown  → 6 rows: print(1) | nav(2-3) | spacer(4) | arrows(5-6)
 *   fn hidden → 5 rows: print(1) | nav(2-3) | spacer(4) | arrows(4-5)
 *                        Print/Scroll/Pause always visible.
 * data-fn is on the root .fullKeyboard element.
 */
._navGrid_a3f8j_286 {
  display: grid;
  grid-template-columns: repeat(3, var(--ks));
  grid-template-rows: repeat(6, var(--ks));
  gap: var(--gap);
}

/* Print cluster — row 1 (always visible) */
._navPrt_a3f8j_294  { grid-area: 1 / 1; }
._navScl_a3f8j_295  { grid-area: 1 / 2; }
._navPse_a3f8j_296  { grid-area: 1 / 3; }
/* Nav cluster — rows 2-3 */
._navIns_a3f8j_298  { grid-area: 2 / 1; }
._navHome_a3f8j_299 { grid-area: 2 / 2; }
._navPgup_a3f8j_300 { grid-area: 2 / 3; }
._navDel_a3f8j_301  { grid-area: 3 / 1; }
._navEnd_a3f8j_302  { grid-area: 3 / 2; }
._navPgdn_a3f8j_303 { grid-area: 3 / 3; }
/* row 4 is empty spacer */
._arrowUp_a3f8j_305    { grid-area: 5 / 2; }
._arrowLeft_a3f8j_306  { grid-area: 6 / 1; }
._arrowDown_a3f8j_307  { grid-area: 6 / 2; }
._arrowRight_a3f8j_308 { grid-area: 6 / 3; }

/*
 * Without fn row: collapse to 5 rows (print stays at 1, nav stays at 2-3,
 * arrows move from 5-6 → 4-5 so total height matches the 5-row main section).
 */
._fullKeyboard_a3f8j_2:not([data-fn]) ._navGrid_a3f8j_286 {
  grid-template-rows: repeat(5, var(--ks));
}

._fullKeyboard_a3f8j_2:not([data-fn]) ._arrowUp_a3f8j_305    { grid-area: 4 / 2; }
._fullKeyboard_a3f8j_2:not([data-fn]) ._arrowLeft_a3f8j_306  { grid-area: 5 / 1; }
._fullKeyboard_a3f8j_2:not([data-fn]) ._arrowDown_a3f8j_307  { grid-area: 5 / 2; }
._fullKeyboard_a3f8j_2:not([data-fn]) ._arrowRight_a3f8j_308 { grid-area: 5 / 3; }

/* With fn row: pad numpad top so it aligns with the main section start */
._fullKeyboard_a3f8j_2[data-fn] ._numpadCol_a3f8j_324 {
  padding-top: calc(var(--ks) + var(--gap));
}

/* ── Numpad column ──────────────────────────────────────────────────────────── */
._numpadCol_a3f8j_324 {
  display: flex;
  flex-direction: column;
}

._numpadGrid_a3f8j_334 {
  display: grid;
  grid-template-columns: repeat(4, var(--ks));
  grid-template-rows: repeat(5, var(--ks));
  gap: var(--gap);
}

/* Numpad grid placements */
._numLock_a3f8j_342  { grid-area: 1 / 1; }
._numDiv_a3f8j_343   { grid-area: 1 / 2; }
._numMul_a3f8j_344   { grid-area: 1 / 3; }
._numSub_a3f8j_345   { grid-area: 1 / 4; }
._num7_a3f8j_346     { grid-area: 2 / 1; }
._num8_a3f8j_347     { grid-area: 2 / 2; }
._num9_a3f8j_348     { grid-area: 2 / 3; }
._numAdd_a3f8j_349   { grid-area: 2 / 4 / 4 / 5; height: auto; }  /* spans rows 2-3 */
._num4_a3f8j_350     { grid-area: 3 / 1; }
._num5_a3f8j_351     { grid-area: 3 / 2; }
._num6_a3f8j_352     { grid-area: 3 / 3; }
._num1_a3f8j_353     { grid-area: 4 / 1; }
._num2_a3f8j_354     { grid-area: 4 / 2; }
._num3_a3f8j_355     { grid-area: 4 / 3; }
._numEnter_a3f8j_356 { grid-area: 4 / 4 / 6 / 5; height: auto; }  /* spans rows 4-5 */
._num0_a3f8j_357     { grid-area: 5 / 1 / 6 / 3; width: auto; }   /* spans cols 1-2 */
._numDot_a3f8j_358   { grid-area: 5 / 3; }

._numAdd_a3f8j_349,
._numEnter_a3f8j_356 {
  min-width: var(--ks);
  display: flex;
  align-items: center;
  justify-content: center;
}

._num0_a3f8j_357 {
  min-height: var(--ks);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Themes  (applied via data-style attribute on .fullKeyboard)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Pixel / Aseprite (sharp-edged, pixel-art aesthetic) ───────────────────── */
[data-style="pixel"] {
  --key-hint:          #ffdc3a;
  --key-hint-rgb:      255, 220, 58;
  --key-hint-ring:     rgba(5,5,20,0.72);
  --key-bg:            #2c2c54;
  --key-border:        #1a1a3a;
  --key-hover:         #3a3a6e;
  --key-active-bg:     #4040cc;
  --key-active-shadow: #4040cc66;
  --fixed-bg:          #1a1a38;
  --fixed-color:       #eef2ff;
  --lang-altgr:        #93c5fd;
  --lang-shift:        #e0e7ff;
  --lang-phys:         #c7d2fe;
  --lang-normal:       #ffffff;
  background: #13132a;
  border: 2px solid #1a1a3a;
  border-radius: 0;
  box-shadow: 4px 4px 0 #0a0a1a, 0 0 0 1px #0a0a1a;
}

[data-style="pixel"] ._key_a3f8j_40 {
  border-radius: 0;
  border: 1px solid #1a1a3a;
  border-bottom: 3px solid #0a0a1a;
  border-right: 2px solid #0a0a1a;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.12);
  transition: none;
}

[data-style="pixel"] ._key_a3f8j_40:hover  { background: var(--key-hover); }

[data-style="pixel"] ._key_a3f8j_40:active,
[data-style="pixel"] ._active_a3f8j_84 {
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.4) !important;
  border-bottom-width: 1px !important;
  border-right-width: 1px !important;
  transform: translate(1px, 1px) !important;
}

[data-style="pixel"] ._fixedKey_a3f8j_131 {
  background: var(--fixed-bg);
  border-bottom-color: #08081a;
}

._fullKeyboard_a3f8j_2:is(
  [data-style="pixel"],
  [data-style="classic"],
  [data-style="modern"],
  [data-style="glass"],
  [data-style="retro"],
  [data-style="neon"],
  [data-style="lava"],
  [data-style="forest"],
  [data-style="ocean"],
  [data-style="ancient"]
) ._cellAltGr_a3f8j_68,
._fullKeyboard_a3f8j_2:is(
  [data-style="pixel"],
  [data-style="classic"],
  [data-style="modern"],
  [data-style="glass"],
  [data-style="retro"],
  [data-style="neon"],
  [data-style="lava"],
  [data-style="forest"],
  [data-style="ocean"],
  [data-style="ancient"]
) ._cellShift_a3f8j_69,
._fullKeyboard_a3f8j_2:is(
  [data-style="pixel"],
  [data-style="classic"],
  [data-style="modern"],
  [data-style="glass"],
  [data-style="retro"],
  [data-style="neon"],
  [data-style="lava"],
  [data-style="forest"],
  [data-style="ocean"],
  [data-style="ancient"]
) ._cellNormal_a3f8j_71 {
  font-weight: 850;
}

._fullKeyboard_a3f8j_2:is(
  [data-style="pixel"],
  [data-style="classic"],
  [data-style="modern"],
  [data-style="glass"],
  [data-style="retro"],
  [data-style="neon"],
  [data-style="lava"],
  [data-style="forest"],
  [data-style="ocean"],
  [data-style="ancient"]
) ._cellPhys_a3f8j_70 {
  font-weight: 750;
}

/* ── Standard (light, macOS-like) ──────────────────────────────────────────── */
[data-style="standard"] {
  --key-label-shadow: 0 1px 0 rgba(255,255,255,0.72);
  --key-hint:          #8b35ff;
  --key-hint-rgb:      139, 53, 255;
  --key-hint-ring:     rgba(255,255,255,0.88);
  --key-bg:            #e9e9ed;
  --key-border:        #c4c4c8;
  --key-hover:         #d8d8dd;
  --key-active-bg:     #0070f3;
  --key-active-shadow: #0070f355;
  --fixed-bg:          #d1d1d6;
  --fixed-color:       #1f2937;
  --lang-altgr:        #003f9e;
  --lang-shift:        #111827;
  --lang-phys:         #475569;
  --lang-normal:       #050505;
  background: #c8c8cc;
  border-color: #b0b0b5;
  box-shadow: 0 4px 16px #0003;
}

[data-style="standard"] ._key_a3f8j_40 {
  border-bottom: 3px solid #a8a8b0;
  box-shadow: 0 2px 4px #0002;
}

[data-style="standard"] ._fixedKey_a3f8j_131 { --fixed-color: #1f2937; }

/* ── Modern (dark flat) ─────────────────────────────────────────────────────── */
[data-style="modern"] {
  --key-hint:          #00e5ff;
  --key-hint-rgb:      0, 229, 255;
  --key-hint-ring:     rgba(2,8,18,0.78);
  --key-bg:            #1a1a2e;
  --key-border:        #16213e;
  --key-hover:         #0f3460;
  --key-active-bg:     #e94560;
  --key-active-shadow: #e9456066;
  --fixed-bg:          #16213e;
  --fixed-color:       #dbeafe;
  --lang-altgr:        #7dd3fc;
  --lang-shift:        #cbd5e1;
  --lang-phys:         #bfdbfe;
  --lang-normal:       #ffffff;
  background: #0d0d1a;
  border-color: #16213e;
  border-radius: 8px;
}

[data-style="modern"] ._key_a3f8j_40 {
  border-radius: 4px;
  border-bottom: 2px solid #16213e;
}

/* ── Glass ──────────────────────────────────────────────────────────────────── */
[data-style="glass"] {
  --key-hint:          #ffdc3a;
  --key-hint-rgb:      255, 220, 58;
  --key-hint-ring:     rgba(0,0,0,0.72);
  --key-bg:            rgba(255,255,255,0.07);
  --key-border:        rgba(255,255,255,0.14);
  --key-hover:         rgba(255,255,255,0.13);
  --key-active-bg:     rgba(108,99,255,0.7);
  --key-active-shadow: rgba(108,99,255,0.35);
  --fixed-bg:          rgba(255,255,255,0.04);
  --fixed-color:       rgba(255,255,255,0.92);
  --lang-altgr:        rgba(186,230,253,0.96);
  --lang-shift:        rgba(224,231,255,0.96);
  --lang-phys:         rgba(255,255,255,0.78);
  --lang-normal:       rgba(255,255,255,0.98);
  background: rgba(12,12,30,0.55);
  border-color: rgba(255,255,255,0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

[data-style="glass"] ._key_a3f8j_40 {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 2px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Cartoon ────────────────────────────────────────────────────────────────── */
[data-style="cartoon"] {
  --key-label-shadow: 0 1px 0 rgba(255,255,255,0.70);
  --key-hint:          #1565ff;
  --key-hint-rgb:      21, 101, 255;
  --key-hint-ring:     rgba(255,255,255,0.86);
  --key-bg:            #fff9c4;
  --key-border:        #f9a825;
  --key-hover:         #fff59d;
  --key-active-bg:     #ff6f00;
  --key-active-shadow: #ff6f0066;
  --fixed-bg:          #ffe082;
  --fixed-color:       #3f241d;
  --lang-altgr:        #064ca8;
  --lang-shift:        #4a136f;
  --lang-phys:         #5a352b;
  --lang-normal:       #063d12;
  background: #fffde7;
  border: 3px solid #f9a825;
  border-radius: 20px;
  box-shadow: 4px 4px 0 #f57f17;
}

[data-style="cartoon"] ._key_a3f8j_40 {
  border: 2px solid #f9a825;
  border-bottom: 5px solid #f57f17;
  border-radius: 10px;
  font-weight: 700;
}

[data-style="cartoon"] ._key_a3f8j_40:hover  { background: #fff59d; }
[data-style="cartoon"] ._fixedKey_a3f8j_131   { background: var(--fixed-bg); }

/* ── Colorful ───────────────────────────────────────────────────────────────── */
[data-style="colorful"] {
  --key-hint:          #fff45c;
  --key-hint-rgb:      255, 244, 92;
  --key-hint-ring:     rgba(4,12,36,0.82);
  --key-bg:            #3f51b5;
  --key-border:        #283593;
  --key-hover:         #5c6bc0;
  --key-active-bg:     #ff5722;
  --key-active-shadow: #ff572266;
  --fixed-bg:          #283593;
  --fixed-color:       #f5f7ff;
  --lang-altgr:        #b2ebf2;
  --lang-shift:        #ffffff;
  --lang-phys:         #e8ecff;
  --lang-normal:       #ffffff;
  background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
  border-color: #1a237e;
}

[data-style="colorful"] ._key_a3f8j_40 {
  border-bottom: 3px solid #1a237e;
}

[data-style="colorful"] ._mainRow_a3f8j_268 ._key_a3f8j_40:nth-child(3n+1) { --key-bg: #3f51b5; }
[data-style="colorful"] ._mainRow_a3f8j_268 ._key_a3f8j_40:nth-child(3n+2) { --key-bg: #7b1fa2; }
[data-style="colorful"] ._mainRow_a3f8j_268 ._key_a3f8j_40:nth-child(3n+3) { --key-bg: #00838f; }

/* ── Physical 3D (raised keys with real depth, like the reference image) ────── */
[data-style="physical"] {
  --key-label-shadow: 0 1px 0 rgba(255,255,255,0.74);
  --key-hint:          #d1008f;
  --key-hint-rgb:      209, 0, 143;
  --key-hint-ring:     rgba(255,255,255,0.9);
  --key-bg:            #f0f0f0;
  --key-border:        #c8c8cc;
  --key-hover:         #e4e4e8;
  --key-active-bg:     #6b9ed2;
  --key-active-shadow: #6b9ed244;
  --fixed-bg:          #b8c8dc;
  --fixed-color:       #1f2937;
  --lang-altgr:        #315d82;
  --lang-shift:        #1f3347;
  --lang-phys:         #52677a;
  --lang-normal:       #050505;
  background: #a8b0bc;
  border: 2px solid #8a9aaa;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}

[data-style="physical"] ._key_a3f8j_40 {
  border-radius: 8px;
  border: 1px solid #c0c0c8;
  border-bottom: 6px solid #a0a0a8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-style="physical"] ._fixedKey_a3f8j_131 {
  background: var(--fixed-bg);
  border-color: #9ab0c8;
  border-bottom-color: #7890a8;
}

[data-style="physical"] ._key_a3f8j_40:hover { background: #e8e8ec; }

[data-style="physical"] ._key_a3f8j_40:active,
[data-style="physical"] ._active_a3f8j_84 {
  transform: translateY(4px) !important;
  border-bottom-width: 2px !important;
  box-shadow: none !important;
}

/* ── Retro (vintage terminal — amber on dark) ───────────────────────────────── */
[data-style="retro"] {
  --key-hint:          #00f0b5;
  --key-hint-rgb:      0, 240, 181;
  --key-hint-ring:     rgba(0,0,0,0.82);
  --key-active-text:   #1a0e00;
  --key-active-phys:   rgba(26,14,0,0.45);
  --key-bg:            #1c1c08;
  --key-border:        #3a3a10;
  --key-hover:         #282808;
  --key-active-bg:     #d4a017;
  --key-active-shadow: #d4a01766;
  --fixed-bg:          #0e0e00;
  --fixed-color:       #ffe08a;
  --lang-altgr:        #ffd166;
  --lang-shift:        #ffdc73;
  --lang-phys:         #e5b84f;
  --lang-normal:       #fff2a8;
  --font: 'Courier New', 'Lucida Console', monospace;
  background: #080800;
  border: 2px solid #3a3a10;
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(212,160,23,0.08), 0 8px 32px #000;
}

[data-style="retro"] ._key_a3f8j_40 {
  border-radius: 3px;
  border-bottom: 4px solid #060600;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
}

[data-style="retro"] ._fixedKey_a3f8j_131 { border-bottom-color: #060600; }

/* ── Minimal (paper white, barely-there keys) ───────────────────────────────── */
[data-style="minimal"] {
  --key-label-shadow: 0 1px 0 rgba(255,255,255,0.80);
  --key-hint:          #e0004d;
  --key-hint-rgb:      224, 0, 77;
  --key-hint-ring:     rgba(255,255,255,0.92);
  --key-bg:            transparent;
  --key-border:        #dde0e4;
  --key-hover:         #f2f4f6;
  --key-active-bg:     #1a1a1a;
  --key-active-shadow: #1a1a1a18;
  --fixed-bg:          #f0f2f4;
  --fixed-color:       #334155;
  --lang-altgr:        #64748b;
  --lang-shift:        #475569;
  --lang-phys:         #64748b;
  --lang-normal:       #0d1117;
  background: #f8f9fa;
  border: 1px solid #e4e8ec;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

[data-style="minimal"] ._key_a3f8j_40 {
  border: 1px solid var(--key-border);
  border-bottom: 1px solid var(--key-border);
  border-radius: 6px;
  box-shadow: none;
}

[data-style="minimal"] ._key_a3f8j_40:active,
[data-style="minimal"] ._active_a3f8j_84 {
  box-shadow: none !important;
  transform: none !important;
}

/* ── Neon (cyberpunk glow) ──────────────────────────────────────────────────── */
[data-style="neon"] {
  --key-hint:          #ffe600;
  --key-hint-rgb:      255, 230, 0;
  --key-hint-ring:     rgba(0,0,0,0.84);
  --key-bg:            #06060f;
  --key-border:        #1a0a3a;
  --key-hover:         #0c0828;
  --key-active-bg:     #ff0090;
  --key-active-shadow: #ff009055;
  --fixed-bg:          #08041a;
  --fixed-color:       #a5f3fc;
  --lang-altgr:        #ffb86b;
  --lang-shift:        #67e8f9;
  --lang-phys:         #d8b4fe;
  --lang-normal:       #9dff8a;
  background: #020208;
  border-color: #2a0a5a;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(57,255,20,0.04), 0 0 20px rgba(0,229,255,0.04), 0 8px 32px #000;
}

[data-style="neon"] ._key_a3f8j_40 {
  border-bottom: 3px solid #08041a;
  box-shadow: 0 0 6px rgba(57,255,20,0.08), inset 0 0 10px rgba(57,255,20,0.02);
}

[data-style="neon"] ._key_a3f8j_40:hover {
  box-shadow: 0 0 12px rgba(57,255,20,0.18), inset 0 0 10px rgba(57,255,20,0.05);
}

[data-style="neon"] ._active_a3f8j_84 {
  box-shadow: 0 0 20px rgba(255,0,144,0.6), 0 0 40px rgba(255,0,144,0.2) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NEW PIXEL-ART THEMES
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Lava (Molten rock — volcanic pixel dungeon) ─────────────────────────────
   Palette: deep obsidian body, ember-orange keys, magma-crack glow.
   Each key has a bottom "lava seam" shadow. Active keys erupt in bright orange.
   ─────────────────────────────────────────────────────────────────────────── */
[data-style="lava"] {
  --key-hint:          #00d9ff;
  --key-hint-rgb:      0, 217, 255;
  --key-hint-ring:     rgba(0,0,0,0.82);
  --key-active-text:   #1a0800;
  --key-active-phys:   rgba(26,8,0,0.50);
  --key-bg:            #2a1208;
  --key-border:        #4a1e08;
  --key-hover:         #3c1a0a;
  --key-active-bg:     #ff6a00;
  --key-active-shadow: #ff6a0077;
  --fixed-bg:          #18080000;
  --fixed-color:       #ffd7b5;
  --lang-altgr:        #ffc46b;
  --lang-shift:        #ffb077;
  --lang-phys:         #ffcfad;
  --lang-normal:       #fff3e8;
  background: #100600;
  border: 2px solid #4a1e08;
  border-radius: 0;
  /* Pixel drop-shadow identical to the 'pixel' style */
  box-shadow: 4px 4px 0 #0a0200, 0 0 0 1px #0a0200,
              0 0 48px rgba(255,100,0,0.10);
}

[data-style="lava"] ._key_a3f8j_40 {
  border-radius: 0;
  border: 1px solid #4a1e08;
  border-bottom: 3px solid #080200;
  border-right:  2px solid #080200;
  /* Subtle warm highlight at top-left corner (pixel inset) */
  box-shadow: inset 1px 1px 0 rgba(255,160,60,0.14);
  transition: none;
}

[data-style="lava"] ._fixedKey_a3f8j_131 {
  background: #18080000;
  border-bottom-color: #050100;
}

[data-style="lava"] ._key_a3f8j_40:hover { background: var(--key-hover); }

[data-style="lava"] ._key_a3f8j_40:active,
[data-style="lava"] ._active_a3f8j_84 {
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.4) !important,
              0 0 14px rgba(255,106,0,0.55) !important;
  border-bottom-width: 1px !important;
  border-right-width:  1px !important;
  transform: translate(1px, 1px) !important;
}

/* Lava crack accent — every 4th key gets a slightly brighter seam */
[data-style="lava"] ._mainRow_a3f8j_268 ._key_a3f8j_40:nth-child(4n) {
  border-bottom-color: #661800;
}

/* ── Forest (Mossy RPG dungeon — deep emerald pixel art) ─────────────────────
   Palette: bark-brown case, moss-green keys, golden rune accents.
   Feels like a pixel-RPG spell-book keyboard hidden in an ancient forest.
   ─────────────────────────────────────────────────────────────────────────── */
[data-style="forest"] {
  --key-hint:          #ff4fb8;
  --key-hint-rgb:      255, 79, 184;
  --key-hint-ring:     rgba(0,0,0,0.82);
  --key-active-text:   #f0ffe8;
  --key-active-phys:   rgba(240,255,232,0.45);
  --key-bg:            #1a2e14;
  --key-border:        #0e1e0a;
  --key-hover:         #243d1c;
  --key-active-bg:     #5dbc3c;
  --key-active-shadow: #5dbc3c66;
  --fixed-bg:          #101c0c;
  --fixed-color:       #dcfce7;
  --lang-altgr:        #f0f871;
  --lang-shift:        #bbf7d0;
  --lang-phys:         #c4f4a8;
  --lang-normal:       #f4ffe8;
  background: #0c1408;
  border: 2px solid #0e1e0a;
  border-radius: 0;
  box-shadow: 4px 4px 0 #060a04, 0 0 0 1px #060a04,
              0 0 40px rgba(40,120,20,0.08);
}

[data-style="forest"] ._key_a3f8j_40 {
  border-radius: 0;
  border: 1px solid #0e1e0a;
  border-bottom: 3px solid #060a04;
  border-right:  2px solid #060a04;
  box-shadow: inset 1px 1px 0 rgba(120,220,80,0.10);
  transition: none;
}

[data-style="forest"] ._fixedKey_a3f8j_131 { border-bottom-color: #040804; }

[data-style="forest"] ._key_a3f8j_40:hover { background: var(--key-hover); }

[data-style="forest"] ._key_a3f8j_40:active,
[data-style="forest"] ._active_a3f8j_84 {
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.4) !important,
              0 0 12px rgba(93,188,60,0.50) !important;
  border-bottom-width: 1px !important;
  border-right-width:  1px !important;
  transform: translate(1px, 1px) !important;
}

/* Alternating moss-tone tint on language keys for a dappled-light effect */
[data-style="forest"] ._mainRow_a3f8j_268 ._langKey_a3f8j_144:nth-child(odd)  { --key-bg: #1e3418; }
[data-style="forest"] ._mainRow_a3f8j_268 ._langKey_a3f8j_144:nth-child(even) { --key-bg: #162810; }

/* ── Ocean (Deep-sea bioluminescence — pixel aquatic) ────────────────────────
   Palette: midnight-navy case, teal keys, cyan bio-glow.
   Active keys flash like glowing jellyfish in the abyss.
   ─────────────────────────────────────────────────────────────────────────── */
[data-style="ocean"] {
  --key-hint:          #ffd23a;
  --key-hint-rgb:      255, 210, 58;
  --key-hint-ring:     rgba(0,0,0,0.82);
  --key-active-text:   #e0ffff;
  --key-active-phys:   rgba(224,255,255,0.40);
  --key-bg:            #0a1e38;
  --key-border:        #061228;
  --key-hover:         #102848;
  --key-active-bg:     #00d4aa;
  --key-active-shadow: #00d4aa66;
  --fixed-bg:          #060e1e;
  --fixed-color:       #d6f7ff;
  --lang-altgr:        #a5f3fc;
  --lang-shift:        #bae6fd;
  --lang-phys:         #bfdbfe;
  --lang-normal:       #f0fdff;
  background: #040c18;
  border: 2px solid #061228;
  border-radius: 0;
  box-shadow: 4px 4px 0 #020810, 0 0 0 1px #020810,
              0 0 60px rgba(0,200,180,0.06);
}

[data-style="ocean"] ._key_a3f8j_40 {
  border-radius: 0;
  border: 1px solid #061228;
  border-bottom: 3px solid #020810;
  border-right:  2px solid #020810;
  box-shadow: inset 1px 1px 0 rgba(0,200,255,0.10);
  transition: none;
}

[data-style="ocean"] ._fixedKey_a3f8j_131 { border-bottom-color: #010408; }

[data-style="ocean"] ._key_a3f8j_40:hover { background: var(--key-hover); }

[data-style="ocean"] ._key_a3f8j_40:active,
[data-style="ocean"] ._active_a3f8j_84 {
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.4) !important,
              0 0 16px rgba(0,212,170,0.65) !important;
  border-bottom-width: 1px !important;
  border-right-width:  1px !important;
  transform: translate(1px, 1px) !important;
}

/* Ripple depth: every 3rd lang key is slightly lighter (like light shafts) */
[data-style="ocean"] ._mainRow_a3f8j_268 ._langKey_a3f8j_144:nth-child(3n+1) { --key-bg: #0c2440; }
[data-style="ocean"] ._mainRow_a3f8j_268 ._langKey_a3f8j_144:nth-child(3n+2) { --key-bg: #0a1e38; }
[data-style="ocean"] ._mainRow_a3f8j_268 ._langKey_a3f8j_144:nth-child(3n+3) { --key-bg: #06162e; }

/* ── Sakura (Cherry-blossom temple — soft pixel pastel) ──────────────────────
   Palette: warm ivory case, blush-pink keys, rose-red active glow.
   Delicate and feminine; evokes spring pixel-art RPG towns.
   ─────────────────────────────────────────────────────────────────────────── */
[data-style="sakura"] {
  --key-label-shadow: 0 1px 0 rgba(255,255,255,0.72);
  --key-hint:          #006dff;
  --key-hint-rgb:      0, 109, 255;
  --key-hint-ring:     rgba(255,255,255,0.86);
  --key-active-text:   #fff0f4;
  --key-active-phys:   rgba(255,240,244,0.50);
  --key-bg:            #f7d8e4;
  --key-border:        #e0a8be;
  --key-hover:         #fce8f0;
  --key-active-bg:     #e8326a;
  --key-active-shadow: #e8326a55;
  --fixed-bg:          #eec0d0;
  --fixed-color:       #6b1438;
  --lang-altgr:        #5b197d;
  --lang-shift:        #8f244c;
  --lang-phys:         #88425c;
  --lang-normal:       #240018;
  background: #fdf0f4;
  border: 2px solid #e0a8be;
  border-radius: 0;
  /* Warm pink pixel drop-shadow */
  box-shadow: 4px 4px 0 #d080a0, 0 0 0 1px #d080a0;
}

[data-style="sakura"] ._key_a3f8j_40 {
  border-radius: 0;
  border: 1px solid #e0a8be;
  border-bottom: 3px solid #d080a0;
  border-right:  2px solid #d080a0;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.55);
  transition: none;
}

[data-style="sakura"] ._fixedKey_a3f8j_131 {
  background: var(--fixed-bg);
  border-bottom-color: #c06080;
}

[data-style="sakura"] ._key_a3f8j_40:hover { background: var(--key-hover); }

[data-style="sakura"] ._key_a3f8j_40:active,
[data-style="sakura"] ._active_a3f8j_84 {
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.15) !important,
              0 0 12px rgba(232,50,106,0.45) !important;
  border-bottom-width: 1px !important;
  border-right-width:  1px !important;
  transform: translate(1px, 1px) !important;
}

/* Petal shimmer — slight tint variation across rows */
[data-style="sakura"] ._mainRow_a3f8j_268:nth-child(odd)  ._langKey_a3f8j_144 { --key-bg: #f9dce8; }
[data-style="sakura"] ._mainRow_a3f8j_268:nth-child(even) ._langKey_a3f8j_144 { --key-bg: #f2d0de; }

/* ── Ancient (Stone temple inscription — aged pixel relic) ───────────────────
   Palette: worn stone grey case, dusty sandstone keys, golden rune glow.
   Feels like chiseled hieroglyphs on a pixel-art Khmer temple wall.
   ─────────────────────────────────────────────────────────────────────────── */
[data-style="ancient"] {
  --key-hint:          #31e6ff;
  --key-hint-rgb:      49, 230, 255;
  --key-hint-ring:     rgba(0,0,0,0.82);
  --key-active-text:   #fff8e8;
  --key-active-phys:   rgba(255,248,232,0.45);
  --key-bg:            #4a3e2e;
  --key-border:        #2e2418;
  --key-hover:         #584830;
  --key-active-bg:     #c8960a;
  --key-active-shadow: #c8960a66;
  --fixed-bg:          #302418;
  --fixed-color:       #ffe8bc;
  --lang-altgr:        #ffd166;
  --lang-shift:        #f0c074;
  --lang-phys:         #e8c99a;
  --lang-normal:       #fff4d6;
  background: #241c10;
  border: 2px solid #2e2418;
  border-radius: 0;
  /* Stone-slab offset shadow */
  box-shadow: 4px 4px 0 #120e08, 0 0 0 1px #120e08,
              0 0 40px rgba(200,150,10,0.06);
}

[data-style="ancient"] ._key_a3f8j_40 {
  border-radius: 0;
  border: 1px solid #2e2418;
  border-bottom: 3px solid #120e08;
  border-right:  2px solid #120e08;
  /* Stone highlight — looks like a chiseled ridge */
  box-shadow: inset 1px 1px 0 rgba(255,220,140,0.12),
              inset -1px -1px 0 rgba(0,0,0,0.25);
  transition: none;
}

[data-style="ancient"] ._fixedKey_a3f8j_131 {
  background: var(--fixed-bg);
  border-bottom-color: #0e0a06;
}

[data-style="ancient"] ._key_a3f8j_40:hover { background: var(--key-hover); }

[data-style="ancient"] ._key_a3f8j_40:active,
[data-style="ancient"] ._active_a3f8j_84 {
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.5) !important,
              0 0 14px rgba(200,150,10,0.60) !important;
  border-bottom-width: 1px !important;
  border-right-width:  1px !important;
  transform: translate(1px, 1px) !important;
}

/* Worn stone texture — alternating slightly darker/lighter rows */
[data-style="ancient"] ._mainRow_a3f8j_268:nth-child(odd)  ._langKey_a3f8j_144 { --key-bg: #4e4232; }
[data-style="ancient"] ._mainRow_a3f8j_268:nth-child(even) ._langKey_a3f8j_144 { --key-bg: #44382a; }

/* ── Game Boy (chunky white keys — pixel handheld console aesthetic) ──────────
   Reference: the 8-bit pixel keyboard image.
   Body:        pure black (#0a0a0a)
   Lang keys:   white (#f0f0f0) with 4px black bottom/right pixel border
   Fixed keys:  mid-grey (#a8a8a8) — Tab, CapsLock, Shift, Ctrl, Alt, Esc, Fn
   Pink accent: Space bar + Win/Meta key (#d9607a)
   Labels:      bold black text, large, centered
   No rounded corners. No transitions. Hard pixel offset shadow on body.
   ──────────────────────────────────────────────────────────────────────────── */
[data-style="gameboy"] {
  --key-label-shadow: none;
  --key-hint:          #d9607a;
  --key-hint-rgb:      217, 96, 122;
  --key-hint-ring:     rgba(255,255,255,0.96);
  /* Colour tokens */
  --key-active-text:   #ffffff;
  --key-active-phys:   rgba(255,255,255,0.55);
  --key-bg:            #f0f0f0;         /* white letter keys */
  --key-border:        #111111;
  --key-hover:         #e0e0e0;
  --key-active-bg:     #111111;         /* inverted on press: black face */
  --key-active-shadow: rgba(0,0,0,0.5);
  --fixed-bg:          #a8a8a8;         /* grey modifier keys */
  --fixed-color:       #111111;
  --lang-altgr:        #333333;
  --lang-shift:        #222222;
  --lang-phys:         #4a4a4a;
  --lang-normal:       #111111;         /* big bold black character */

  /* Body */
  background: #0a0a0a;
  border: 3px solid #111111;
  border-radius: 0;
  padding: 10px;
  /* Chunky pixel drop-shadow — identical visual language to the reference */
  box-shadow: 5px 5px 0 #000000, 0 0 0 1px #000000;
}

/* ── All keys: square, thick black pixel edge ─────────────────────────────── */
[data-style="gameboy"] ._key_a3f8j_40 {
  border-radius: 0;
  border: 2px solid #111111;
  /* Heavy bottom + right edge = pressed-tile depth */
  border-bottom: 4px solid #000000;
  border-right:  3px solid #000000;
  /* Bright top-left inner highlight mimics the plastic gloss in the image */
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.70),
              inset -1px -1px 0 rgba(0,0,0,0.20);
  transition: none;
  /* Slightly larger gap between the inner highlight and text */
  padding: 3px 5px;
}

/* Language keys: large bold black characters on white */
[data-style="gameboy"] ._langKey_a3f8j_144 {
  background: #f0f0f0;
}

[data-style="gameboy"] ._cellNormal_a3f8j_71 {
  font-weight: 900;
  font-size: min(calc(1.1rem * var(--font-scale)), calc(var(--ks) * 0.50));
  color: #111111;
}

[data-style="gameboy"] ._cellShift_a3f8j_69 {
  font-size: min(calc(0.65rem * var(--font-scale)), calc(var(--ks) * 0.32));
  color: #222222;
}

[data-style="gameboy"] ._cellAltGr_a3f8j_68 {
  font-size: min(calc(0.60rem * var(--font-scale)), calc(var(--ks) * 0.28));
  color: #333333;
}

[data-style="gameboy"] ._cellPhys_a3f8j_70 {
  font-size: min(calc(0.55rem * var(--font-scale)), calc(var(--ks) * 0.26));
  color: #444444;
}

/* Fixed / modifier keys: grey */
[data-style="gameboy"] ._fixedKey_a3f8j_131 {
  background: var(--fixed-bg);     /* #a8a8a8 */
  border-bottom-color: #333333;
  border-right-color:  #444444;
}

[data-style="gameboy"] ._keyLabel_a3f8j_67 {
  font-size: calc(0.58rem * var(--font-scale));
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Pink accent: Space bar ───────────────────────────────────────────────── */
[data-style="gameboy"] [data-code="Space"] {
  background: #d9607a;
  border-color: #7a1a2e;
  border-bottom-color: #4a0010;
  border-right-color:  #5a0818;
  box-shadow: inset 2px 2px 0 rgba(255,200,210,0.55),
              inset -1px -1px 0 rgba(0,0,0,0.25);
}

/* ── Pink accent: Win / Meta keys ─────────────────────────────────────────── */
[data-style="gameboy"] [data-code="MetaLeft"],
[data-style="gameboy"] [data-code="MetaRight"] {
  background: #d9607a;
  border-color: #7a1a2e;
  border-bottom-color: #4a0010;
  border-right-color:  #5a0818;
  box-shadow: inset 2px 2px 0 rgba(255,200,210,0.55),
              inset -1px -1px 0 rgba(0,0,0,0.25);
}

[data-style="gameboy"] [data-code="MetaLeft"]  ._keyLabel_a3f8j_67,
[data-style="gameboy"] [data-code="MetaRight"] ._keyLabel_a3f8j_67,
[data-style="gameboy"] [data-code="Space"]     ._keyLabel_a3f8j_67 {
  color: #ffffff;
  font-weight: 800;
}

/* ── Pressed state: key pushes down (pixel translate) ─────────────────────── */
[data-style="gameboy"] ._key_a3f8j_40:active,
[data-style="gameboy"] ._active_a3f8j_84 {
  /* Simulate the key pressing into the board */
  border-bottom-width: 1px !important;
  border-right-width:  1px !important;
  transform: translate(2px, 2px) !important;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.30) !important;
}

/* Active lang key inverts: black face, white text */
[data-style="gameboy"] ._active_a3f8j_84._langKey_a3f8j_144 {
  background: #111111 !important;
}

[data-style="gameboy"] ._active_a3f8j_84 ._cellNormal_a3f8j_71,
[data-style="gameboy"] ._active_a3f8j_84 ._cellShift_a3f8j_69,
[data-style="gameboy"] ._active_a3f8j_84 ._cellAltGr_a3f8j_68  { color: #f0f0f0 !important; }
[data-style="gameboy"] ._active_a3f8j_84 ._cellPhys_a3f8j_70   { color: #888888 !important; }
[data-style="gameboy"] ._active_a3f8j_84 ._keyLabel_a3f8j_67   { color: #f0f0f0 !important; }

/* ── Fn row keys: slightly smaller grey ──────────────────────────────────── */
[data-style="gameboy"] ._wFn_a3f8j_230 {
  background: #b8b8b8;
  border-bottom-color: #444444;
}

._fullKeyboard_a3f8j_2[data-custom-key-text]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._cellAltGr_a3f8j_68,
._fullKeyboard_a3f8j_2[data-custom-key-text]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._cellShift_a3f8j_69,
._fullKeyboard_a3f8j_2[data-custom-key-text]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._cellPhys_a3f8j_70,
._fullKeyboard_a3f8j_2[data-custom-key-text]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._cellNormal_a3f8j_71,
._fullKeyboard_a3f8j_2[data-custom-key-text]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._keyLabel_a3f8j_67 {
  color: var(--custom-key-text) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-top-left]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._cellAltGr_a3f8j_68 {
  color: var(--custom-key-top-left) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-top-right]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._cellShift_a3f8j_69 {
  color: var(--custom-key-top-right) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-bottom-left]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._cellPhys_a3f8j_70 {
  color: var(--custom-key-bottom-left) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-bottom-right]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._key_a3f8j_40:not(._active_a3f8j_84) ._cellNormal_a3f8j_71 {
  color: var(--custom-key-bottom-right) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-weight]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._cellAltGr_a3f8j_68,
._fullKeyboard_a3f8j_2[data-custom-key-weight]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._cellShift_a3f8j_69,
._fullKeyboard_a3f8j_2[data-custom-key-weight]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._cellPhys_a3f8j_70,
._fullKeyboard_a3f8j_2[data-custom-key-weight]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._cellNormal_a3f8j_71,
._fullKeyboard_a3f8j_2[data-custom-key-weight]:not([data-layout="ja-JP"]):not([data-layout="ko-KR"]) ._keyLabel_a3f8j_67 {
  font-weight: var(--custom-key-weight) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-text],
._fullKeyboard_a3f8j_2[data-custom-key-top-left],
._fullKeyboard_a3f8j_2[data-custom-key-top-right],
._fullKeyboard_a3f8j_2[data-custom-key-bottom-left],
._fullKeyboard_a3f8j_2[data-custom-key-bottom-right] {
  --key-label-shadow: 0 1px 1px rgba(0,0,0,0.58), 0 0 2px rgba(255,255,255,0.42);
}

/* ── Universal visibility boost for guided and pressed keys ──────────────── */
._fullKeyboard_a3f8j_2 ._hint_a3f8j_105 {
  outline: 3px solid var(--key-hint) !important;
  outline-offset: 2px;
  box-shadow:
    0 0 0 5px rgba(var(--key-hint-rgb), 0.24),
    0 0 18px rgba(var(--key-hint-rgb), 0.7),
    inset 1px 1px 0 rgba(255,255,255,0.20) !important;
  z-index: 3;
}

._fullKeyboard_a3f8j_2 ._modifierHint_a3f8j_112 {
  outline-style: dashed !important;
}

._fullKeyboard_a3f8j_2 ._active_a3f8j_84 {
  outline: 2px solid rgba(255,255,255,0.92) !important;
  outline-offset: -3px;
  z-index: 4;
}

/* ==========================================================================
   Reference physical layouts: Japanese JIS and Korean Dubeolsik
   Scoped by layout code so other languages keep the selected keyboard theme.
   ========================================================================== */

._fullKeyboard_a3f8j_2[data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] {
  --gap: 3px;
}

._fullKeyboard_a3f8j_2[data-style="pixel"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="classic"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="modern"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="glass"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="colorful"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="retro"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="neon"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="lava"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="forest"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="ocean"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="ancient"][data-layout="ja-JP"],
._fullKeyboard_a3f8j_2[data-style="pixel"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="classic"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="modern"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="glass"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="colorful"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="retro"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="neon"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="lava"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="forest"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="ocean"][data-layout="ko-KR"],
._fullKeyboard_a3f8j_2[data-style="ancient"][data-layout="ko-KR"] {
  --layout-top-left: #f8fafc;
  --layout-top-right: #dbeafe;
  --layout-phys: #cbd5e1;
  --layout-main: #ffffff;
  --layout-fixed: #dbeafe;
  --key-label-shadow: 0 1px 1px rgba(0,0,0,0.82), 0 0 3px rgba(255,255,255,0.28);
}

._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._leftCol_a3f8j_240,
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._mainSection_a3f8j_262,
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._mainRow_a3f8j_268,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._leftCol_a3f8j_240,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._mainSection_a3f8j_262,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._mainRow_a3f8j_268 {
  gap: var(--gap);
}

._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._key_a3f8j_40,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._key_a3f8j_40 {
  height: 58px;
  min-width: 58px;
  padding: 3px 5px;
}

._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._fixedKey_a3f8j_131,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._fixedKey_a3f8j_131 {
  align-items: flex-start;
  justify-content: center;
}

._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._keyLabel_a3f8j_67,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._keyLabel_a3f8j_67 {
  color: var(--custom-key-text, var(--layout-fixed, var(--fixed-color)));
  font-size: min(calc(0.72rem * var(--font-scale)), calc(var(--ks) * 0.22));
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  text-align: left;
  text-transform: none;
  white-space: pre-line;
  width: 100%;
  max-height: none;
}

._fullKeyboard_a3f8j_2[data-layout="ja-JP"] [data-code="KanaMode"] ._keyLabel_a3f8j_67 {
  font-size: min(calc(0.58rem * var(--font-scale)), calc(var(--ks) * 0.20));
  line-height: 1.02;
  overflow-wrap: anywhere;
}

._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wBksp_a3f8j_220 { flex: 1.5; }
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wBksp_a3f8j_220 { flex: 1.45; }
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wTab_a3f8j_221,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wTab_a3f8j_221 { flex: 1.6; }
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wCaps_a3f8j_222,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wCaps_a3f8j_222 { flex: 1.85; }
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wEnter_a3f8j_223,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wEnter_a3f8j_223 { flex: 2.2; }
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wShiftL_a3f8j_224,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wShiftL_a3f8j_224 { flex: 2.35; }
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wShiftR_a3f8j_225,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wShiftR_a3f8j_225 { flex: 2.05; }
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wCtrl_a3f8j_226,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wCtrl_a3f8j_226,
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wMeta_a3f8j_227,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wMeta_a3f8j_227,
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wAlt_a3f8j_228,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wAlt_a3f8j_228 { flex: 1.08; }
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._wSpace_a3f8j_229,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._wSpace_a3f8j_229 {
  flex: 3.6;
}

._jisKeyGrid_a3f8j_1381,
._koKeyGrid_a3f8j_1382 {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  font-family: var(--font), 'Inter', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  line-height: 1;
  overflow: hidden;
}

._jisShift_a3f8j_72,
._jisKanaShift_a3f8j_73,
._jisPhys_a3f8j_74,
._jisKana_a3f8j_73,
._koTopLeft_a3f8j_76,
._koTopRight_a3f8j_77,
._koBottomLeft_a3f8j_78,
._koHangul_a3f8j_79 {
  position: absolute;
  overflow: hidden;
}

._jisShift_a3f8j_72 {
  top: 0;
  left: 0;
  font-size: min(calc(1.12rem * var(--font-scale)), calc(var(--ks) * 0.32));
  font-weight: 850;
  color: var(--custom-key-top-left, var(--custom-key-text, var(--layout-top-left, var(--lang-shift))));
  line-height: 0.95;
}

._jisKanaShift_a3f8j_73 {
  top: 1px;
  right: 0;
  font-size: min(calc(0.78rem * var(--font-scale)), calc(var(--ks) * 0.24));
  font-weight: 750;
  color: var(--custom-key-top-right, var(--custom-key-text, var(--layout-top-right, var(--lang-shift))));
  line-height: 0.95;
}

._jisPhys_a3f8j_74 {
  top: 0;
  left: 0;
  max-width: 70%;
  font-family: 'Inter', sans-serif;
  font-size: min(calc(0.78rem * var(--font-scale)), calc(var(--ks) * 0.23));
  font-weight: 850;
  line-height: 1;
  white-space: pre-line;
  color: var(--custom-key-bottom-left, var(--custom-key-text, var(--layout-phys, var(--lang-phys))));
}

._jisHasShift_a3f8j_1434 ._jisPhys_a3f8j_74 {
  top: auto;
  bottom: 0;
}

._jisKana_a3f8j_73 {
  right: 0;
  bottom: -1px;
  font-size: min(calc(1.42rem * var(--font-scale)), calc(var(--ks) * 0.43));
  font-weight: 850;
  color: var(--custom-key-bottom-right, var(--custom-key-text, var(--layout-main, var(--lang-normal))));
  line-height: 0.95;
}

._koTopLeft_a3f8j_76 {
  top: 0;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-size: min(calc(1.15rem * var(--font-scale)), calc(var(--ks) * 0.34));
  font-weight: 900;
  color: var(--custom-key-top-left, var(--custom-key-text, var(--layout-top-left, var(--lang-phys))));
  line-height: 0.95;
}

._koTopRight_a3f8j_77 {
  top: 0;
  right: -1px;
  font-size: min(calc(1.02rem * var(--font-scale)), calc(var(--ks) * 0.32));
  font-weight: 950;
  color: var(--custom-key-top-right, var(--custom-key-text, var(--layout-top-right, var(--lang-shift))));
  line-height: 0.95;
}

._koBottomLeft_a3f8j_78 {
  left: 0;
  bottom: 0;
  font-family: 'Inter', sans-serif;
  font-size: min(calc(1.16rem * var(--font-scale)), calc(var(--ks) * 0.34));
  font-weight: 900;
  color: var(--custom-key-bottom-left, var(--custom-key-text, var(--layout-phys, var(--lang-phys))));
  line-height: 0.95;
}

._koHangul_a3f8j_79 {
  right: 1px;
  bottom: 0;
  font-size: min(calc(1.5rem * var(--font-scale)), calc(var(--ks) * 0.42));
  font-weight: 900;
  color: var(--custom-key-bottom-right, var(--custom-key-text, var(--layout-main, var(--lang-normal))));
  line-height: 0.95;
}

._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._active_a3f8j_84 ._jisShift_a3f8j_72,
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._active_a3f8j_84 ._jisKanaShift_a3f8j_73,
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._active_a3f8j_84 ._jisPhys_a3f8j_74,
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._active_a3f8j_84 ._jisKana_a3f8j_73,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._active_a3f8j_84 ._koTopLeft_a3f8j_76,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._active_a3f8j_84 ._koTopRight_a3f8j_77,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._active_a3f8j_84 ._koBottomLeft_a3f8j_78,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._active_a3f8j_84 ._koHangul_a3f8j_79,
._fullKeyboard_a3f8j_2[data-layout="ja-JP"] ._active_a3f8j_84 ._keyLabel_a3f8j_67,
._fullKeyboard_a3f8j_2[data-layout="ko-KR"] ._active_a3f8j_84 ._keyLabel_a3f8j_67 {
  color: var(--key-active-text) !important;
  text-shadow: var(--key-label-shadow-active);
}

._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._cellAltGr_a3f8j_68,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._cellShift_a3f8j_69,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._cellPhys_a3f8j_70,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._cellNormal_a3f8j_71,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._keyLabel_a3f8j_67,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._jisShift_a3f8j_72,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._jisKanaShift_a3f8j_73,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._jisPhys_a3f8j_74,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._jisKana_a3f8j_73,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._koTopLeft_a3f8j_76,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._koTopRight_a3f8j_77,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._koBottomLeft_a3f8j_78,
._fullKeyboard_a3f8j_2[data-custom-key-text] ._key_a3f8j_40:not(._active_a3f8j_84) ._koHangul_a3f8j_79 {
  color: var(--custom-key-text) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-top-left] ._key_a3f8j_40:not(._active_a3f8j_84) ._cellAltGr_a3f8j_68,
._fullKeyboard_a3f8j_2[data-custom-key-top-left] ._key_a3f8j_40:not(._active_a3f8j_84) ._jisShift_a3f8j_72,
._fullKeyboard_a3f8j_2[data-custom-key-top-left] ._key_a3f8j_40:not(._active_a3f8j_84) ._koTopLeft_a3f8j_76 {
  color: var(--custom-key-top-left) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-top-right] ._key_a3f8j_40:not(._active_a3f8j_84) ._cellShift_a3f8j_69,
._fullKeyboard_a3f8j_2[data-custom-key-top-right] ._key_a3f8j_40:not(._active_a3f8j_84) ._jisKanaShift_a3f8j_73,
._fullKeyboard_a3f8j_2[data-custom-key-top-right] ._key_a3f8j_40:not(._active_a3f8j_84) ._koTopRight_a3f8j_77 {
  color: var(--custom-key-top-right) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-bottom-left] ._key_a3f8j_40:not(._active_a3f8j_84) ._cellPhys_a3f8j_70,
._fullKeyboard_a3f8j_2[data-custom-key-bottom-left] ._key_a3f8j_40:not(._active_a3f8j_84) ._jisPhys_a3f8j_74,
._fullKeyboard_a3f8j_2[data-custom-key-bottom-left] ._key_a3f8j_40:not(._active_a3f8j_84) ._koBottomLeft_a3f8j_78 {
  color: var(--custom-key-bottom-left) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-bottom-right] ._key_a3f8j_40:not(._active_a3f8j_84) ._cellNormal_a3f8j_71,
._fullKeyboard_a3f8j_2[data-custom-key-bottom-right] ._key_a3f8j_40:not(._active_a3f8j_84) ._jisKana_a3f8j_73,
._fullKeyboard_a3f8j_2[data-custom-key-bottom-right] ._key_a3f8j_40:not(._active_a3f8j_84) ._koHangul_a3f8j_79 {
  color: var(--custom-key-bottom-right) !important;
}

._fullKeyboard_a3f8j_2[data-custom-key-weight] ._cellAltGr_a3f8j_68,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._cellShift_a3f8j_69,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._cellPhys_a3f8j_70,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._cellNormal_a3f8j_71,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._keyLabel_a3f8j_67,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._jisShift_a3f8j_72,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._jisKanaShift_a3f8j_73,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._jisPhys_a3f8j_74,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._jisKana_a3f8j_73,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._koTopLeft_a3f8j_76,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._koTopRight_a3f8j_77,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._koBottomLeft_a3f8j_78,
._fullKeyboard_a3f8j_2[data-custom-key-weight] ._koHangul_a3f8j_79 {
  font-weight: var(--custom-key-weight) !important;
}
/* ── Overlay ─────────────────────────────────────────────────────────────── */
._overlay_wq0o3_2 {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(18, 20, 21, 0.56);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: _fadeIn_wq0o3_1 0.15s ease;
}

@keyframes _fadeIn_wq0o3_1 {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Panel ───────────────────────────────────────────────────────────────── */
._panel_wq0o3_21 {
  width: min(1320px, calc(100% - 32px));
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(42, 166, 161, 0.18);
  border-radius: 12px 12px 0 0;
  background: #e8e5d9;
  box-shadow: 0 -20px 56px rgba(0, 0, 0, 0.34);
  animation: _slideUp_wq0o3_1 0.2s ease;
}

@keyframes _slideUp_wq0o3_1 {
  from { transform: translateY(34px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
._header_wq0o3_40 {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(42, 166, 161, 0.16);
  background: rgba(255, 255, 255, 0.24);
}

._headerTitle_wq0o3_51 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #2aa6a1;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

._headerTitle_wq0o3_51 svg {
  color: #8aa000;
}

._closeBtn_wq0o3_65 {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 166, 161, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: #2aa6a1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

._closeBtn_wq0o3_65:hover {
  background: rgba(138, 160, 0, 0.1);
  color: #8aa000;
  transform: translateY(-1px);
}

/* ── Body ────────────────────────────────────────────────────────────────── */
._body_wq0o3_86 {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 18px;
  padding: 18px;
}

._settingsTabs_wq0o3_96 {
  position: sticky;
  top: -18px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 0 10px;
  background: #e8e5d9;
  border-bottom: 1px solid rgba(42, 166, 161, 0.12);
}

._settingsTab_wq0o3_96 {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid rgba(42, 166, 161, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: #2aa6a1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

._settingsTab_wq0o3_96:hover {
  border-color: rgba(138, 160, 0, 0.38);
  background: rgba(138, 160, 0, 0.1);
  color: #8aa000;
}

._settingsTabActive_wq0o3_130 {
  border-color: #8aa000;
  background: #8aa000;
  color: #fff;
  box-shadow: 0 8px 18px rgba(138, 160, 0, 0.14);
}

._controlsGrid_wq0o3_137 {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: 12px;
}

._section_wq0o3_145 {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(42, 166, 161, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
}

._sectionWide_wq0o3_156 {
  grid-column: span 2;
}

._sectionTitle_wq0o3_160 {
  margin: 0;
  color: #2aa6a1;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

._sectionHeading_wq0o3_170 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

._helpBtn_wq0o3_178 {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 166, 161, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(42, 166, 161, 0.72);
  cursor: help;
  flex-shrink: 0;
}

._helpBtn_wq0o3_178[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: min(260px, 70vw);
  padding: 8px 10px;
  border: 1px solid rgba(42, 166, 161, 0.18);
  border-radius: 8px;
  background: #e8e5d9;
  color: #2f3335;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

._helpBtn_wq0o3_178:hover::after,
._helpBtn_wq0o3_178:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── Controls ────────────────────────────────────────────────────────────── */
._btnRow_wq0o3_224 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

._optBtn_wq0o3_230 {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(42, 166, 161, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: #2aa6a1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

._optBtn_wq0o3_230:hover {
  border-color: rgba(138, 160, 0, 0.38);
  background: rgba(138, 160, 0, 0.1);
  color: #8aa000;
  transform: translateY(-1px);
}

._optBtn_wq0o3_230:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

._optActive_wq0o3_262 {
  border-color: #8aa000 !important;
  background: #8aa000 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(138, 160, 0, 0.16);
}

._hint_wq0o3_269 {
  color: rgba(42, 166, 161, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
}

._hint_wq0o3_269 code {
  color: #8aa000;
  font-size: 0.72rem;
}

._statusText_wq0o3_281 {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(138, 160, 0, 0.1);
  color: #758900;
  font-size: 0.78rem;
  font-weight: 800;
}

._sizeRow_wq0o3_291 {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

._slider_wq0o3_298 {
  width: 100%;
  accent-color: #8aa000;
  cursor: pointer;
}

._slider_wq0o3_298:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

._sizeLabel_wq0o3_309 {
  color: #8aa000;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

._stackControls_wq0o3_316 {
  display: grid;
  gap: 10px;
}

._stackControlsRow_wq0o3_321 {
  grid-template-columns: repeat(4, 1fr);
}

._rangeControl_wq0o3_325 {
  display: grid;
  grid-template-columns: 46px minmax(110px, 1fr) 48px;
  align-items: center;
  gap: 10px;
  color: #2aa6a1;
  font-size: 0.82rem;
  font-weight: 800;
}

._rangeControl_wq0o3_325 strong {
  color: #8aa000;
  font-size: 0.82rem;
  text-align: right;
}

._controlRow_wq0o3_341 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #2aa6a1;
}

._segBtn_wq0o3_351 {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(42, 166, 161, 0.25);
}

._segBtn_wq0o3_351 button {
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 700;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #2aa6a1;
  cursor: pointer;
  white-space: nowrap;
}

._segBtn_wq0o3_351 button + button {
  border-left: 1px solid rgba(42, 166, 161, 0.2);
}

._segBtnActive_wq0o3_373 {
  background: #2aa6a1 !important;
  color: #fff !important;
}

._soundCard_wq0o3_378 {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(42, 166, 161, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

._soundCardHeader_wq0o3_387,
._cleanRange_wq0o3_388 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

._soundCardHeader_wq0o3_387 span {
  min-width: 0;
  color: #2aa6a1;
  font-size: 0.82rem;
  font-weight: 850;
}

._miniToggle_wq0o3_402 {
  min-width: 44px;
  min-height: 28px;
  border: 1px solid rgba(42, 166, 161, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: rgba(42, 166, 161, 0.72);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

._miniToggleActive_wq0o3_415 {
  border-color: #8aa000;
  background: #8aa000;
  color: #fff;
}

._cleanRange_wq0o3_388 {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 44px;
  color: #8aa000;
  font-size: 0.8rem;
  font-weight: 850;
}

._cleanRange_wq0o3_388 strong {
  text-align: right;
}

._miniHint_wq0o3_433 {
  margin: 0;
  color: rgba(42, 166, 161, 0.6);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
}

._colorGrid_wq0o3_441 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

._colorControl_wq0o3_447 {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #2aa6a1;
  font-size: 0.72rem;
  font-weight: 850;
}

._colorControl_wq0o3_447 input {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(42, 166, 161, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

._keyColorRow_wq0o3_465 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

._cornerColorGrid_wq0o3_472 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

._cornerColorCard_wq0o3_478 {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(42, 166, 161, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

._promptColorGrid_wq0o3_490 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

._promptColorCard_wq0o3_496 {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(42, 166, 161, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

._keyTextSection_wq0o3_508 {
  align-self: start;
}

._keyTextControls_wq0o3_512 {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.2fr);
  gap: 12px;
}

._keyTextColumn_wq0o3_519 {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

._presetPicker_wq0o3_526 {
  position: relative;
  z-index: 20;
}

._presetSearch_wq0o3_531 {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(42, 166, 161, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: #2aa6a1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  outline: none;
  padding: 7px 10px;
}

._presetSearch_wq0o3_531::placeholder {
  color: rgba(42, 166, 161, 0.48);
}

._presetMenu_wq0o3_549 {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 216px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(42, 166, 161, 0.2);
  border-radius: 8px;
  background: #e8e5d9;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

._presetBtn_wq0o3_566 {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #2aa6a1;
  padding: 5px 6px;
  cursor: pointer;
}

._presetBtn_wq0o3_566:hover {
  background: rgba(42, 166, 161, 0.08);
}

._presetName_wq0o3_584 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 850;
}

._presetDots_wq0o3_593 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
}

._presetDots_wq0o3_593 i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
}

._presetEmpty_wq0o3_609 {
  padding: 8px;
  color: rgba(42, 166, 161, 0.58);
  font-size: 0.8rem;
  font-weight: 800;
}

._savedThemeManager_wq0o3_616 {
  display: grid;
  gap: 7px;
}

._themeSaveRow_wq0o3_621 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}

._themeNameInput_wq0o3_627 {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(42, 166, 161, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: #2aa6a1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  outline: none;
  padding: 7px 10px;
}

._themeNameInput_wq0o3_627::placeholder {
  color: rgba(42, 166, 161, 0.48);
}

._savedThemeList_wq0o3_645 {
  display: grid;
  gap: 6px;
}

._savedThemeCard_wq0o3_650 {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px 32px;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(42, 166, 161, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

._savedThemeApply_wq0o3_662 {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #2aa6a1;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 6px;
}

._savedThemeApply_wq0o3_662:hover {
  background: rgba(42, 166, 161, 0.08);
}

._savedThemeName_wq0o3_682 {
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._savedThemeDots_wq0o3_693 {
  display: inline-flex;
  gap: 4px;
}

._savedThemeDots_wq0o3_693 i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

._iconBtn_wq0o3_707 {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 166, 161, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
  color: #2aa6a1;
  cursor: pointer;
}

._iconBtn_wq0o3_707:hover {
  border-color: rgba(138, 160, 0, 0.36);
  background: rgba(138, 160, 0, 0.1);
  color: #8aa000;
}

._dangerBtn_wq0o3_726 {
  color: #ca4754;
}

._dangerBtn_wq0o3_726:hover {
  border-color: rgba(202, 71, 84, 0.28);
  background: rgba(202, 71, 84, 0.1);
  color: #ca4754;
}

._inlineLabel_wq0o3_736 {
  color: #2aa6a1;
  font-size: 0.72rem;
  font-weight: 850;
}

._sectionFull_wq0o3_742 {
  grid-column: 1 / -1;
}

._backgroundPicker_wq0o3_746 {
  display: grid;
  gap: 9px;
}

._bgCategoryTabs_wq0o3_751 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

._bgCategoryTab_wq0o3_751 {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgba(42, 166, 161, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.34);
  color: #2aa6a1;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

._bgCategoryTab_wq0o3_751:hover {
  border-color: rgba(138, 160, 0, 0.38);
  background: rgba(138, 160, 0, 0.1);
  color: #8aa000;
}

._bgCategoryTabActive_wq0o3_782 {
  border-color: #8aa000 !important;
  background: #8aa000 !important;
  color: #fff !important;
}

._backgroundOptionsScroll_wq0o3_788 {
  max-height: min(48vh, 430px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  align-items: start;
  gap: 8px;
  padding-right: 2px;
}

._backgroundOptions_wq0o3_788 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}

._backgroundOption_wq0o3_788 {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(42, 166, 161, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
  color: #2aa6a1;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 850;
}

._backgroundOption_wq0o3_788 img,
._backgroundNone_wq0o3_820 {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(42, 166, 161, 0.12), rgba(138, 160, 0, 0.12)),
    rgba(255, 255, 255, 0.28);
}

._backgroundOption_wq0o3_788 strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

._backgroundActive_wq0o3_836 {
  border-color: #8aa000;
  background: rgba(138, 160, 0, 0.12);
  color: #8aa000;
}

._languageChoiceRow_wq0o3_842 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

._languageBtn_wq0o3_848 {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(42, 166, 161, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: #2aa6a1;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

._languageBtn_wq0o3_848:hover {
  border-color: rgba(138, 160, 0, 0.38);
  background: rgba(138, 160, 0, 0.1);
  color: #8aa000;
  transform: translateY(-1px);
}

._languageBtn_wq0o3_848 span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

._languageBtn_wq0o3_848 strong,
._languageBtn_wq0o3_848 small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

._languageBtn_wq0o3_848 strong {
  font-size: 0.82rem;
  font-weight: 850;
}

._languageBtn_wq0o3_848 small {
  color: currentColor;
  font-size: 0.66rem;
  font-weight: 750;
  opacity: 0.62;
}

._languageFlag_wq0o3_898 {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

._languageActive_wq0o3_906 {
  border-color: #8aa000 !important;
  background: rgba(138, 160, 0, 0.13) !important;
  color: #758900 !important;
  box-shadow: 0 8px 18px rgba(138, 160, 0, 0.14);
}

/* ── Theme color chips keep their identity while matching the panel ──────── */
._theme_pixel_wq0o3_914,
._theme_classic_wq0o3_915,
._theme_standard_wq0o3_916,
._theme_modern_wq0o3_917,
._theme_glass_wq0o3_918,
._theme_cartoon_wq0o3_919,
._theme_colorful_wq0o3_920,
._theme_physical_wq0o3_921,
._theme_retro_wq0o3_922,
._theme_minimal_wq0o3_923,
._theme_neon_wq0o3_924,
._theme_lava_wq0o3_925,
._theme_forest_wq0o3_926,
._theme_ocean_wq0o3_927,
._theme_sakura_wq0o3_928,
._theme_ancient_wq0o3_929,
._theme_gameboy_wq0o3_930 {
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
}

._theme_cartoon_wq0o3_919 { border-color: rgba(245, 145, 58, 0.4); }
._theme_colorful_wq0o3_920 { border-color: rgba(222, 84, 147, 0.42); }
._theme_neon_wq0o3_924 { border-color: rgba(42, 218, 255, 0.42); }
._theme_lava_wq0o3_925 { border-color: rgba(222, 71, 49, 0.42); }
._theme_forest_wq0o3_926 { border-color: rgba(65, 139, 84, 0.42); }
._theme_ocean_wq0o3_927 { border-color: rgba(46, 130, 190, 0.42); }
._theme_sakura_wq0o3_928 { border-color: rgba(211, 105, 145, 0.42); }
._theme_ancient_wq0o3_929 { border-color: rgba(142, 115, 72, 0.42); }
._theme_gameboy_wq0o3_930 { border-color: rgba(86, 106, 48, 0.42); }

/* ── Preview ─────────────────────────────────────────────────────────────── */
._previewArea_wq0o3_945 {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(42, 166, 161, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

._previewTitle_wq0o3_955 {
  margin: 0;
  color: #2aa6a1;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

._previewScroller_wq0o3_965 {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 8px;
}

._previewKeyboard_wq0o3_971 {
  display: inline-flex;
  zoom: 0.68;
}

/* ── Dark theme ──────────────────────────────────────────────────────────── */
body[data-theme="dark"] ._overlay_wq0o3_2 {
  background: rgba(6, 8, 10, 0.62);
}

body[data-theme="dark"] ._panel_wq0o3_21 {
  border-color: rgba(242, 183, 5, 0.12);
  background: #292d2f;
  box-shadow: 0 -20px 56px rgba(0, 0, 0, 0.58);
}

body[data-theme="dark"] ._header_wq0o3_40 {
  border-bottom-color: rgba(242, 183, 5, 0.1);
  background: rgba(20, 22, 24, 0.5);
}

body[data-theme="dark"] ._settingsTabs_wq0o3_96 {
  border-bottom-color: rgba(242, 183, 5, 0.1);
  background: #292d2f;
}

body[data-theme="dark"] ._headerTitle_wq0o3_51 {
  color: #f2b705;
}

body[data-theme="dark"] ._headerTitle_wq0o3_51 svg {
  color: #d7d2c8;
}

body[data-theme="dark"] ._closeBtn_wq0o3_65,
body[data-theme="dark"] ._section_wq0o3_145,
body[data-theme="dark"] ._previewArea_wq0o3_945,
body[data-theme="dark"] ._helpBtn_wq0o3_178,
body[data-theme="dark"] ._soundCard_wq0o3_378,
body[data-theme="dark"] ._cornerColorCard_wq0o3_478,
body[data-theme="dark"] ._promptColorCard_wq0o3_496,
body[data-theme="dark"] ._miniToggle_wq0o3_402 {
  border-color: rgba(242, 183, 5, 0.1);
  background: rgba(20, 22, 24, 0.48);
}

body[data-theme="dark"] ._closeBtn_wq0o3_65,
body[data-theme="dark"] ._sectionTitle_wq0o3_160,
body[data-theme="dark"] ._previewTitle_wq0o3_955,
body[data-theme="dark"] ._helpBtn_wq0o3_178,
body[data-theme="dark"] ._soundCardHeader_wq0o3_387 span {
  color: #f2b705;
}

body[data-theme="dark"] ._helpBtn_wq0o3_178[data-tooltip]::after {
  border-color: rgba(242, 183, 5, 0.16);
  background: #292d2f;
  color: #d7d2c8;
}

body[data-theme="dark"] ._optBtn_wq0o3_230 {
  border-color: rgba(242, 183, 5, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d7d2c8;
}

body[data-theme="dark"] ._settingsTab_wq0o3_96 {
  border-color: rgba(242, 183, 5, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d7d2c8;
}

body[data-theme="dark"] ._optBtn_wq0o3_230:hover {
  border-color: rgba(242, 183, 5, 0.32);
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
}

body[data-theme="dark"] ._settingsTab_wq0o3_96:hover {
  border-color: rgba(242, 183, 5, 0.32);
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
}

body[data-theme="dark"] ._optActive_wq0o3_262 {
  border-color: #f2b705 !important;
  background: #f2b705 !important;
  color: #25282a !important;
  box-shadow: 0 8px 18px rgba(242, 183, 5, 0.14);
}

body[data-theme="dark"] ._settingsTabActive_wq0o3_130 {
  border-color: #f2b705;
  background: #f2b705;
  color: #25282a;
  box-shadow: 0 8px 18px rgba(242, 183, 5, 0.14);
}

body[data-theme="dark"] ._hint_wq0o3_269 {
  color: #777b7e;
}

body[data-theme="dark"] ._miniHint_wq0o3_433 {
  color: #777b7e;
}

body[data-theme="dark"] ._hint_wq0o3_269 code,
body[data-theme="dark"] ._sizeLabel_wq0o3_309,
body[data-theme="dark"] ._rangeControl_wq0o3_325 strong {
  color: #f2b705;
}

body[data-theme="dark"] ._statusText_wq0o3_281 {
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
}

body[data-theme="dark"] ._rangeControl_wq0o3_325 {
  color: #d7d2c8;
}

body[data-theme="dark"] ._controlRow_wq0o3_341 {
  color: #d7d2c8;
}

body[data-theme="dark"] ._segBtn_wq0o3_351 {
  border-color: rgba(242, 183, 5, 0.15);
}

body[data-theme="dark"] ._segBtn_wq0o3_351 button {
  background: rgba(20, 22, 24, 0.48);
  color: #d7d2c8;
}

body[data-theme="dark"] ._segBtnActive_wq0o3_373 {
  background: #f2b705 !important;
  color: #1a1a1a !important;
}

body[data-theme="dark"] ._miniToggle_wq0o3_402 {
  color: #d7d2c8;
}

body[data-theme="dark"] ._miniToggleActive_wq0o3_415 {
  border-color: #f2b705;
  background: #f2b705;
  color: #25282a;
}

body[data-theme="dark"] ._colorControl_wq0o3_447 {
  color: #d7d2c8;
}

body[data-theme="dark"] ._colorControl_wq0o3_447 input {
  border-color: rgba(242, 183, 5, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] ._presetSearch_wq0o3_531,
body[data-theme="dark"] ._presetMenu_wq0o3_549,
body[data-theme="dark"] ._themeNameInput_wq0o3_627 {
  border-color: rgba(242, 183, 5, 0.14);
  background: #292d2f;
  color: #d7d2c8;
}

body[data-theme="dark"] ._presetSearch_wq0o3_531::placeholder,
body[data-theme="dark"] ._themeNameInput_wq0o3_627::placeholder,
body[data-theme="dark"] ._presetEmpty_wq0o3_609 {
  color: #777b7e;
}

body[data-theme="dark"] ._presetBtn_wq0o3_566 {
  color: #d7d2c8;
}

body[data-theme="dark"] ._presetBtn_wq0o3_566:hover,
body[data-theme="dark"] ._savedThemeApply_wq0o3_662:hover,
body[data-theme="dark"] ._iconBtn_wq0o3_707:hover {
  background: rgba(242, 183, 5, 0.08);
}

body[data-theme="dark"] ._presetDots_wq0o3_593 {
  background: rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] ._inlineLabel_wq0o3_736,
body[data-theme="dark"] ._backgroundOption_wq0o3_788,
body[data-theme="dark"] ._savedThemeApply_wq0o3_662,
body[data-theme="dark"] ._iconBtn_wq0o3_707 {
  color: #d7d2c8;
}

body[data-theme="dark"] ._backgroundOption_wq0o3_788,
body[data-theme="dark"] ._savedThemeCard_wq0o3_650,
body[data-theme="dark"] ._iconBtn_wq0o3_707,
body[data-theme="dark"] ._bgCategoryTab_wq0o3_751 {
  border-color: rgba(242, 183, 5, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] ._bgCategoryTab_wq0o3_751 {
  color: #d7d2c8;
}

body[data-theme="dark"] ._bgCategoryTab_wq0o3_751:hover {
  border-color: rgba(242, 183, 5, 0.32);
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
}

body[data-theme="dark"] ._bgCategoryTabActive_wq0o3_782 {
  border-color: #f2b705 !important;
  background: #f2b705 !important;
  color: #25282a !important;
}

body[data-theme="dark"] ._backgroundActive_wq0o3_836 {
  border-color: #f2b705;
  background: rgba(242, 183, 5, 0.1);
  color: #f2b705;
}

body[data-theme="dark"] ._languageBtn_wq0o3_848 {
  border-color: rgba(242, 183, 5, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d7d2c8;
}

body[data-theme="dark"] ._languageBtn_wq0o3_848:hover {
  border-color: rgba(242, 183, 5, 0.32);
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
}

body[data-theme="dark"] ._languageActive_wq0o3_906 {
  border-color: #f2b705 !important;
  background: rgba(242, 183, 5, 0.12) !important;
  color: #f2b705 !important;
}

body[data-custom-colors="true"] ._panel_wq0o3_21 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._header_wq0o3_40,
body[data-custom-colors="true"] ._section_wq0o3_145,
body[data-custom-colors="true"] ._previewArea_wq0o3_945,
body[data-custom-colors="true"] ._helpBtn_wq0o3_178,
body[data-custom-colors="true"] ._soundCard_wq0o3_378,
body[data-custom-colors="true"] ._cornerColorCard_wq0o3_478,
body[data-custom-colors="true"] ._promptColorCard_wq0o3_496,
body[data-custom-colors="true"] ._miniToggle_wq0o3_402 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 18%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 7%, transparent);
}

body[data-custom-colors="true"] ._settingsTabs_wq0o3_96 {
  border-bottom-color: color-mix(in srgb, var(--app-custom-accent) 18%, transparent);
  background: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._headerTitle_wq0o3_51,
body[data-custom-colors="true"] ._sectionTitle_wq0o3_160,
body[data-custom-colors="true"] ._previewTitle_wq0o3_955,
body[data-custom-colors="true"] ._closeBtn_wq0o3_65,
body[data-custom-colors="true"] ._optBtn_wq0o3_230,
body[data-custom-colors="true"] ._settingsTab_wq0o3_96,
body[data-custom-colors="true"] ._rangeControl_wq0o3_325,
body[data-custom-colors="true"] ._controlRow_wq0o3_341,
body[data-custom-colors="true"] ._colorControl_wq0o3_447,
body[data-custom-colors="true"] ._presetBtn_wq0o3_566,
body[data-custom-colors="true"] ._helpBtn_wq0o3_178,
body[data-custom-colors="true"] ._soundCardHeader_wq0o3_387 span,
body[data-custom-colors="true"] ._miniToggle_wq0o3_402,
body[data-custom-colors="true"] ._segBtn_wq0o3_351 button {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._headerTitle_wq0o3_51 svg,
body[data-custom-colors="true"] ._hint_wq0o3_269 code,
body[data-custom-colors="true"] ._sizeLabel_wq0o3_309,
body[data-custom-colors="true"] ._rangeControl_wq0o3_325 strong {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._optBtn_wq0o3_230,
body[data-custom-colors="true"] ._settingsTab_wq0o3_96,
body[data-custom-colors="true"] ._closeBtn_wq0o3_65,
body[data-custom-colors="true"] ._helpBtn_wq0o3_178,
body[data-custom-colors="true"] ._colorControl_wq0o3_447 input,
body[data-custom-colors="true"] ._presetSearch_wq0o3_531,
body[data-custom-colors="true"] ._presetMenu_wq0o3_549,
body[data-custom-colors="true"] ._themeNameInput_wq0o3_627,
body[data-custom-colors="true"] ._savedThemeCard_wq0o3_650,
body[data-custom-colors="true"] ._cornerColorCard_wq0o3_478,
body[data-custom-colors="true"] ._promptColorCard_wq0o3_496,
body[data-custom-colors="true"] ._iconBtn_wq0o3_707 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 8%, transparent);
}

body[data-custom-colors="true"] ._presetMenu_wq0o3_549 {
  background: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._helpBtn_wq0o3_178[data-tooltip]::after {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 12%, var(--app-custom-bg));
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._languageBtn_wq0o3_848 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 8%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._inlineLabel_wq0o3_736,
body[data-custom-colors="true"] ._backgroundOption_wq0o3_788,
body[data-custom-colors="true"] ._savedThemeApply_wq0o3_662,
body[data-custom-colors="true"] ._iconBtn_wq0o3_707,
body[data-custom-colors="true"] ._themeNameInput_wq0o3_627 {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._backgroundOption_wq0o3_788,
body[data-custom-colors="true"] ._bgCategoryTab_wq0o3_751 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 8%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._bgCategoryTab_wq0o3_751:hover {
  color: var(--app-custom-accent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
}

body[data-custom-colors="true"] ._bgCategoryTabActive_wq0o3_782 {
  border-color: var(--app-custom-accent) !important;
  background: var(--app-custom-accent) !important;
  color: var(--app-custom-bg) !important;
}

body[data-custom-colors="true"] ._backgroundActive_wq0o3_836 {
  border-color: var(--app-custom-accent);
  background: color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._presetSearch_wq0o3_531::placeholder,
body[data-custom-colors="true"] ._themeNameInput_wq0o3_627::placeholder,
body[data-custom-colors="true"] ._presetEmpty_wq0o3_609 {
  color: color-mix(in srgb, var(--app-custom-text) 50%, transparent);
}

body[data-custom-colors="true"] ._optBtn_wq0o3_230:hover,
body[data-custom-colors="true"] ._settingsTab_wq0o3_96:hover,
body[data-custom-colors="true"] ._closeBtn_wq0o3_65:hover,
body[data-custom-colors="true"] ._helpBtn_wq0o3_178:hover,
body[data-custom-colors="true"] ._presetBtn_wq0o3_566:hover,
body[data-custom-colors="true"] ._savedThemeApply_wq0o3_662:hover,
body[data-custom-colors="true"] ._iconBtn_wq0o3_707:hover {
  color: var(--app-custom-accent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
}

body[data-custom-colors="true"] ._languageBtn_wq0o3_848:hover {
  color: var(--app-custom-accent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
}

body[data-custom-colors="true"] ._optActive_wq0o3_262 {
  border-color: var(--app-custom-accent) !important;
  background: var(--app-custom-accent) !important;
  color: var(--app-custom-bg) !important;
}

body[data-custom-colors="true"] ._settingsTabActive_wq0o3_130 {
  border-color: var(--app-custom-accent);
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._miniToggleActive_wq0o3_415 {
  border-color: var(--app-custom-accent);
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._segBtnActive_wq0o3_373 {
  background: var(--app-custom-accent) !important;
  color: var(--app-custom-bg) !important;
}

body[data-custom-colors="true"] ._languageActive_wq0o3_906 {
  border-color: var(--app-custom-accent) !important;
  background: color-mix(in srgb, var(--app-custom-accent) 16%, transparent) !important;
  color: var(--app-custom-accent) !important;
}

body[data-custom-colors="true"] ._hint_wq0o3_269 {
  color: color-mix(in srgb, var(--app-custom-text) 58%, transparent);
}

body[data-custom-colors="true"] ._miniHint_wq0o3_433 {
  color: color-mix(in srgb, var(--app-custom-text) 58%, transparent);
}

body[data-custom-colors="true"] ._statusText_wq0o3_281 {
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._slider_wq0o3_298 {
  accent-color: var(--app-custom-accent);
}

body[data-theme="dark"] ._slider_wq0o3_298 {
  accent-color: #f2b705;
}

@media (max-width: 980px) {
  ._controlsGrid_wq0o3_137 {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  ._sectionWide_wq0o3_156 {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  ._controlsGrid_wq0o3_137 {
    grid-template-columns: minmax(0, 1fr);
  }

  ._sectionWide_wq0o3_156 {
    grid-column: 1;
  }

  ._keyTextControls_wq0o3_512,
  ._cornerColorGrid_wq0o3_472,
  ._promptColorGrid_wq0o3_490,
  ._colorGrid_wq0o3_441,
  ._languageChoiceRow_wq0o3_842 {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ── Base (dark theme default) ── */
._backdrop_v9x5t_2 {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

._modal_v9x5t_14 {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(242, 183, 5, 0.22);
  border-radius: 14px;
  background: #292d2f;
  color: #d7d2c8;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  padding: 1.5rem 1.5rem 1.25rem;
}

._title_v9x5t_27 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2b705;
}

._message_v9x5t_36 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: #c9c4ba;
}

._actions_v9x5t_44 {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

._cancelBtn_v9x5t_51 {
  min-height: 32px;
  padding: 0.3rem 1rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #d7d2c8;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
._cancelBtn_v9x5t_51:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

._confirmBtn_v9x5t_69 {
  min-height: 32px;
  padding: 0.3rem 1.1rem;
  border-radius: 7px;
  border: 0;
  background: #f2b705;
  color: #25282a;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
._confirmBtn_v9x5t_69:hover { opacity: 0.88; }

._confirmBtn_v9x5t_69._danger_v9x5t_84 {
  background: #ef4444;
  color: #fff;
}

/* ── Light theme ── */
body[data-theme="light"] ._modal_v9x5t_14 {
  background: #f7f0de;
  color: #1f2020;
  border-color: rgba(138, 160, 0, 0.22);
}
body[data-theme="light"] ._message_v9x5t_36 {
  color: #3a3830;
}
body[data-theme="light"] ._cancelBtn_v9x5t_51 {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.14);
  color: #1f2020;
}
body[data-theme="light"] ._cancelBtn_v9x5t_51:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.22);
}
body[data-theme="light"] ._confirmBtn_v9x5t_69 {
  background: #8aa000;
  color: #fff7df;
}

/* ── Custom colors ── */
body[data-custom-colors="true"] ._modal_v9x5t_14 {
  background: color-mix(in srgb, var(--app-custom-text) 8%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 24%, transparent);
}
body[data-custom-colors="true"] ._title_v9x5t_27 {
  color: var(--app-custom-accent);
}
body[data-custom-colors="true"] ._message_v9x5t_36 {
  color: color-mix(in srgb, var(--app-custom-text) 82%, transparent);
}
body[data-custom-colors="true"] ._cancelBtn_v9x5t_51 {
  background: color-mix(in srgb, var(--app-custom-text) 8%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 20%, transparent);
  color: var(--app-custom-text);
}
body[data-custom-colors="true"] ._cancelBtn_v9x5t_51:hover {
  background: color-mix(in srgb, var(--app-custom-text) 14%, transparent);
}
body[data-custom-colors="true"] ._confirmBtn_v9x5t_69 {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}
/* ── Base (dark theme default) ── */
._backdrop_m5ieq_2 {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

._modal_m5ieq_14 {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(242, 183, 5, 0.2);
  border-radius: 18px;
  background: #292d2f;
  color: #d7d2c8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  overflow: auto;
}

/* ── Header ── */
._header_m5ieq_28 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

._headerTitle_m5ieq_36 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2b705;
}

._headerSubtitle_m5ieq_45 {
  display: block;
  margin-top: 3px;
  color: #8b8f92;
  font-size: 0.82rem;
  font-weight: 800;
}

._closeBtn_m5ieq_53 {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 7px;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, background 0.15s;
}
._closeBtn_m5ieq_53:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }

/* ── Identity card ── */
._identityCard_m5ieq_70 {
  padding: 1.4rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

._statsGrid_m5ieq_79 {
  padding: 1rem 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

._statCard_m5ieq_86 {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

._statCard_m5ieq_86 svg {
  color: #83c092;
}

._statCard_m5ieq_86 span {
  color: #8b8f92;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

._statCard_m5ieq_86 strong {
  min-width: 0;
  color: #f2b705;
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

._statCard_m5ieq_86 small {
  color: #8b8f92;
  font-size: 0.7rem;
  font-weight: 800;
}

._avatar_m5ieq_123 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(242, 183, 5, 0.15);
  border: 2px solid rgba(242, 183, 5, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 900;
  color: #f2b705;
  letter-spacing: -1px;
}

._nameInput_m5ieq_138 {
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #d7d2c8;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}
._nameInput_m5ieq_138:focus {
  border-color: rgba(242, 183, 5, 0.5);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.1);
}
._nameInput_m5ieq_138::placeholder { opacity: 0.35; }

._playerTitle_m5ieq_160 {
  font-size: 0.82rem;
  opacity: 0.55;
  font-style: italic;
}

._playerTitleKh_m5ieq_166 {
  font-size: 0.88rem;
  color: #f2b705;
  opacity: 0.85;
}

/* ── Badges ── */
._badgesSection_m5ieq_173 {
  padding: 1rem 1.25rem 1.1rem;
}

._badgesHeadingRow_m5ieq_177 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

._badgesHeading_m5ieq_177 {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f2b705;
  opacity: 0.75;
}

._badgesPageCount_m5ieq_194 {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.4;
}

._badgeCarousel_m5ieq_200 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

._badgeNavBtn_m5ieq_206 {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
._badgeNavBtn_m5ieq_206:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}
._badgeNavBtn_m5ieq_206:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

._badgeRemoveBtn_m5ieq_230 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: rgba(239, 68, 68, 0.75);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
._badgeRemoveBtn_m5ieq_230:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

._badgeGrid_m5ieq_253 {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

._badgeDots_m5ieq_261 {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.65rem;
}

._badgeDot_m5ieq_261 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

._badgeDotActive_m5ieq_279 {
  background: #f2b705;
  transform: scale(1.3);
}

._badge_m5ieq_173 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.3rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
._badge_m5ieq_173:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.15); }

._badge_m5ieq_173._unlocked_m5ieq_300 {
  background: rgba(242, 183, 5, 0.12);
  border-color: rgba(242, 183, 5, 0.5);
  box-shadow: 0 0 0 2px rgba(242, 183, 5, 0.18);
}

._badgeImg_m5ieq_306 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

._badgeLabel_m5ieq_314 {
  font-size: 0.6rem;
  text-align: center;
  opacity: 0.45;
  line-height: 1.2;
}
._badge_m5ieq_173._unlocked_m5ieq_300 ._badgeLabel_m5ieq_314 { opacity: 0.85; color: #f2b705; }

/* ── Tooltips ── */
._badge_m5ieq_173[data-tooltip]::after,
._transferBtn_m5ieq_324[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 90;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 200px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 7px;
  background: #1d2022;
  color: #d7d2c8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
._badge_m5ieq_173:hover[data-tooltip]::after,
._badge_m5ieq_173:focus-visible[data-tooltip]::after,
._transferBtn_m5ieq_324:hover[data-tooltip]::after,
._transferBtn_m5ieq_324:focus-visible[data-tooltip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Transfer profile ── */
._transferSection_m5ieq_359 {
  padding: 0.9rem 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

._transferHeading_m5ieq_364 {
  margin: 0 0 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f2b705;
  opacity: 0.75;
}

._transferRow_m5ieq_374 {
  display: flex;
  gap: 0.5rem;
}

._transferBtn_m5ieq_324 {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
._transferBtn_m5ieq_324:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}
._transferBtn_m5ieq_324:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

._transferStatus_m5ieq_406 {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
}
._transferStatusOk_m5ieq_412 { color: #83c092; }
._transferStatusErr_m5ieq_413 { color: #ff6675; }

/* ── Footer ── */
._footer_m5ieq_416 {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

._saveBtn_m5ieq_424,
._joinBtn_m5ieq_425 {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: 7px;
  padding: 0.38rem 1rem;
  font-family: inherit;
  font-weight: 850;
  transition: opacity 0.15s, border-color 0.15s;
}

._saveBtn_m5ieq_424 {
  border: 0;
  background: #f2b705;
  color: #25282a;
  cursor: pointer;
}

._saveBtn_m5ieq_424:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

._joinBtn_m5ieq_425 {
  color: #d7d2c8;
  opacity: 0.5;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

._joinBtn_m5ieq_425:hover { opacity: 1; border-color: rgba(242, 183, 5, 0.4); }

._errorText_m5ieq_460 {
  margin: -0.45rem 1.25rem 1rem;
  color: #ff6675;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

/* ── Light theme ── */
body[data-theme="light"] ._modal_m5ieq_14 {
  background: #f7f0de;
  color: #1f2020;
  border-color: rgba(138, 160, 0, 0.22);
}
body[data-theme="light"] ._header_m5ieq_28,
body[data-theme="light"] ._identityCard_m5ieq_70,
body[data-theme="light"] ._badgesSection_m5ieq_173,
body[data-theme="light"] ._footer_m5ieq_416 {
  border-color: rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] ._nameInput_m5ieq_138 {
  background: #fffaf0;
  color: #1f2020;
  border-color: rgba(138, 160, 0, 0.2);
}
body[data-theme="light"] ._nameInput_m5ieq_138:focus {
  border-color: rgba(138, 160, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 160, 0, 0.1);
}
body[data-theme="light"] ._transferSection_m5ieq_359 {
  border-color: rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] ._transferBtn_m5ieq_324 {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1f2020;
}
body[data-theme="light"] ._transferBtn_m5ieq_324:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] ._badgeNavBtn_m5ieq_206 {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1f2020;
}
body[data-theme="light"] ._badgeDot_m5ieq_261 {
  background: rgba(0, 0, 0, 0.18);
}
body[data-theme="light"] ._badge_m5ieq_173 {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] ._badge_m5ieq_173._unlocked_m5ieq_300 {
  background: rgba(138, 160, 0, 0.1);
  border-color: rgba(138, 160, 0, 0.28);
}
body[data-theme="light"] ._joinBtn_m5ieq_425 { color: #1f2020; }
body[data-theme="light"] ._statCard_m5ieq_86 {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] ._closeBtn_m5ieq_53 {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2020;
}
body[data-theme="light"] ._badge_m5ieq_173[data-tooltip]::after,
body[data-theme="light"] ._transferBtn_m5ieq_324[data-tooltip]::after {
  background: #f7f0de;
  color: #1f2020;
  border-color: rgba(138, 160, 0, 0.22);
}

/* ── Custom colors ── */
body[data-custom-colors="true"] ._modal_m5ieq_14 {
  background: color-mix(in srgb, var(--app-custom-text) 8%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 24%, transparent);
}
body[data-custom-colors="true"] ._headerTitle_m5ieq_36,
body[data-custom-colors="true"] ._playerTitleKh_m5ieq_166,
body[data-custom-colors="true"] ._badgesHeading_m5ieq_177,
body[data-custom-colors="true"] ._statCard_m5ieq_86 strong {
  color: var(--app-custom-accent);
}
body[data-custom-colors="true"] ._header_m5ieq_28,
body[data-custom-colors="true"] ._identityCard_m5ieq_70,
body[data-custom-colors="true"] ._footer_m5ieq_416 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}
body[data-custom-colors="true"] ._avatar_m5ieq_123 {
  background: color-mix(in srgb, var(--app-custom-accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 40%, transparent);
  color: var(--app-custom-accent);
}
body[data-custom-colors="true"] ._nameInput_m5ieq_138 {
  background: color-mix(in srgb, var(--app-custom-text) 6%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
}
body[data-custom-colors="true"] ._nameInput_m5ieq_138:focus {
  border-color: color-mix(in srgb, var(--app-custom-accent) 72%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}
body[data-custom-colors="true"] ._transferSection_m5ieq_359 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}
body[data-custom-colors="true"] ._transferBtn_m5ieq_324 {
  background: color-mix(in srgb, var(--app-custom-text) 5%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 16%, transparent);
  color: var(--app-custom-text);
}
body[data-custom-colors="true"] ._badgeNavBtn_m5ieq_206 {
  background: color-mix(in srgb, var(--app-custom-text) 6%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 18%, transparent);
  color: var(--app-custom-text);
}
body[data-custom-colors="true"] ._badgeDotActive_m5ieq_279 {
  background: var(--app-custom-accent);
}
body[data-custom-colors="true"] ._badge_m5ieq_173 {
  background: color-mix(in srgb, var(--app-custom-text) 5%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
}
body[data-custom-colors="true"] ._statCard_m5ieq_86 {
  background: color-mix(in srgb, var(--app-custom-text) 5%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
}
body[data-custom-colors="true"] ._statCard_m5ieq_86 span,
body[data-custom-colors="true"] ._statCard_m5ieq_86 small,
body[data-custom-colors="true"] ._headerSubtitle_m5ieq_45 {
  color: color-mix(in srgb, var(--app-custom-text) 62%, transparent);
}
body[data-custom-colors="true"] ._badge_m5ieq_173._unlocked_m5ieq_300 {
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 35%, transparent);
}
body[data-custom-colors="true"] ._badge_m5ieq_173._unlocked_m5ieq_300 ._badgeLabel_m5ieq_314 {
  color: var(--app-custom-accent);
}
body[data-custom-colors="true"] ._badge_m5ieq_173._unlocked_m5ieq_300 ._badgeIcon_m5ieq_599 {
  stroke: var(--app-custom-accent);
}
body[data-custom-colors="true"] ._joinBtn_m5ieq_425 {
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
}
body[data-custom-colors="true"] ._saveBtn_m5ieq_424 {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}
body[data-custom-colors="true"] ._closeBtn_m5ieq_53 {
  background: color-mix(in srgb, var(--app-custom-text) 8%, transparent);
  color: var(--app-custom-text);
}
body[data-custom-colors="true"] ._badge_m5ieq_173[data-tooltip]::after,
body[data-custom-colors="true"] ._transferBtn_m5ieq_324[data-tooltip]::after {
  background: color-mix(in srgb, var(--app-custom-text) 10%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
}

@media (max-width: 680px) {
  ._statsGrid_m5ieq_79 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  ._badgeGrid_m5ieq_253 {
    grid-template-columns: repeat(3, 1fr);
  }

  ._footer_m5ieq_416 {
    flex-direction: column;
  }
}
/* ── Base (dark theme default) ── */
._backdrop_4qfgw_2 {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
}

._modal_4qfgw_14 {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 16px;
  background: #292d2f;
  color: #d7d2c8;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

._header_4qfgw_26 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

._header_4qfgw_26 h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f2b705;
}

._profileBtn_4qfgw_41 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 7px;
  border: 1px solid rgba(242, 183, 5, 0.25);
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, border-color 0.15s;
}
._profileBtn_4qfgw_41:hover {
  background: rgba(242, 183, 5, 0.15);
  border-color: rgba(242, 183, 5, 0.45);
}

._closeBtn_4qfgw_64 {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, background 0.15s;
}
._closeBtn_4qfgw_64:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

._body_4qfgw_83 {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

._desc_4qfgw_90 {
  margin: 0;
  font-size: 0.84rem;
  opacity: 0.5;
  line-height: 1.55;
}

._fieldLabel_4qfgw_97 {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f2b705;
  opacity: 0.8;
}

._input_4qfgw_109,
._textarea_4qfgw_110 {
  padding: 0.48rem 0.72rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #d7d2c8;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
._input_4qfgw_109:focus,
._textarea_4qfgw_110:focus {
  border-color: rgba(242, 183, 5, 0.45);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.1);
}
._input_4qfgw_109::placeholder,
._textarea_4qfgw_110::placeholder {
  opacity: 0.35;
}

._textarea_4qfgw_110 {
  resize: vertical;
  min-height: 110px;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.55;
}

._footer_4qfgw_140 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

._joinBtn_4qfgw_149 {
  font-size: 0.82rem;
  color: #d7d2c8;
  opacity: 0.5;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 0.38rem 0.85rem;
  transition: opacity 0.15s, border-color 0.15s;
  white-space: nowrap;
}
._joinBtn_4qfgw_149:hover {
  opacity: 1;
  border-color: rgba(242, 183, 5, 0.4);
}

._footerRight_4qfgw_165 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

._sendBtn_4qfgw_172 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: #f2b705;
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
._sendBtn_4qfgw_172:hover:not(:disabled) {
  background: #e0a800;
}
._sendBtn_4qfgw_172:disabled {
  opacity: 0.35;
  cursor: default;
}

._status_4qfgw_195 { font-size: 0.8rem; }
._statusOk_4qfgw_196  { color: #4ade80; }
._statusErr_4qfgw_197 { color: #f87171; }

._notice_4qfgw_199 {
  position: fixed;
  right: 24px;
  top: 86px;
  z-index: 95;
  width: min(390px, calc(100vw - 32px));
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(42, 166, 161, 0.34);
  border-radius: 8px;
  background: #10272b;
  color: #d7d2c8;
  padding: 10px 11px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  animation: _noticeIn_4qfgw_1 180ms ease-out;
}

._noticeIcon_4qfgw_219 {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2aa6a1;
  box-shadow: 0 0 0 4px rgba(42, 166, 161, 0.16);
}

._noticeBody_4qfgw_227 {
  min-width: 0;
  display: grid;
  gap: 2px;
}

._noticeBody_4qfgw_227 strong {
  color: #f3f0e7;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

._noticeBody_4qfgw_227 span {
  color: rgba(215, 210, 200, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

._noticeClose_4qfgw_248 {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.74;
}

._noticeClose_4qfgw_248:hover {
  background: rgba(255, 255, 255, 0.09);
  opacity: 1;
}

._noticeSuccess_4qfgw_266 {
  border-color: rgba(74, 222, 128, 0.35);
  background: #10291b;
}

._noticeSuccess_4qfgw_266 ._noticeIcon_4qfgw_219 {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
}

._noticeWarning_4qfgw_276 {
  border-color: rgba(242, 183, 5, 0.38);
  background: #2d240b;
}

._noticeWarning_4qfgw_276 ._noticeIcon_4qfgw_219 {
  background: #f2b705;
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.16);
}

._noticeError_4qfgw_286 {
  border-color: rgba(248, 113, 113, 0.38);
  background: #2b1111;
}

._noticeError_4qfgw_286 ._noticeIcon_4qfgw_219 {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

@keyframes _noticeIn_4qfgw_1 {
  from {
    opacity: 0;
    transform: translate3d(12px, -8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ── Light theme ── */
body[data-theme="light"] ._modal_4qfgw_14 {
  background: #f7f0de;
  color: #1f2020;
  border-color: rgba(138, 160, 0, 0.2);
}

body[data-theme="light"] ._header_4qfgw_26 {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] ._footer_4qfgw_140 {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] ._input_4qfgw_109,
body[data-theme="light"] ._textarea_4qfgw_110 {
  background: #fffaf0;
  color: #1f2020;
  border-color: rgba(138, 160, 0, 0.2);
}
body[data-theme="light"] ._input_4qfgw_109:focus,
body[data-theme="light"] ._textarea_4qfgw_110:focus {
  border-color: rgba(138, 160, 0, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(138, 160, 0, 0.1);
}

body[data-theme="light"] ._joinBtn_4qfgw_149 {
  color: #1f2020;
  border-color: rgba(0, 0, 0, 0.14);
}
body[data-theme="light"] ._joinBtn_4qfgw_149:hover {
  border-color: rgba(138, 160, 0, 0.4);
}

body[data-theme="light"] ._closeBtn_4qfgw_64 {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2020;
}
body[data-theme="light"] ._profileBtn_4qfgw_41 {
  border-color: rgba(138, 160, 0, 0.3);
  background: rgba(138, 160, 0, 0.1);
  color: #5a7a00;
}
body[data-theme="light"] ._profileBtn_4qfgw_41:hover {
  background: rgba(138, 160, 0, 0.18);
}
body[data-theme="light"] ._closeBtn_4qfgw_64:hover {
  background: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] ._notice_4qfgw_199 {
  background: #eefafa;
  color: #17353a;
  border-color: rgba(42, 166, 161, 0.28);
  box-shadow: 0 18px 40px rgba(36, 28, 8, 0.18);
}

body[data-theme="light"] ._noticeBody_4qfgw_227 strong {
  color: #143136;
}

body[data-theme="light"] ._noticeBody_4qfgw_227 span {
  color: rgba(20, 49, 54, 0.76);
}

body[data-theme="light"] ._noticeSuccess_4qfgw_266 {
  background: #effbf2;
  border-color: rgba(21, 128, 61, 0.22);
}

body[data-theme="light"] ._noticeWarning_4qfgw_276 {
  background: #fff8db;
  border-color: rgba(180, 130, 0, 0.26);
}

body[data-theme="light"] ._noticeError_4qfgw_286 {
  background: #fff0f0;
  border-color: rgba(200, 50, 50, 0.24);
}

/* ── Custom colors ── */
body[data-custom-colors="true"] ._modal_4qfgw_14 {
  background: color-mix(in srgb, var(--app-custom-text) 8%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 24%, transparent);
}

body[data-custom-colors="true"] ._header_4qfgw_26 h2,
body[data-custom-colors="true"] ._fieldLabel_4qfgw_97 {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._header_4qfgw_26 {
  border-bottom-color: color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}

body[data-custom-colors="true"] ._footer_4qfgw_140 {
  border-top-color: color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}

body[data-custom-colors="true"] ._input_4qfgw_109,
body[data-custom-colors="true"] ._textarea_4qfgw_110 {
  background: color-mix(in srgb, var(--app-custom-text) 6%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
}
body[data-custom-colors="true"] ._input_4qfgw_109:focus,
body[data-custom-colors="true"] ._textarea_4qfgw_110:focus {
  border-color: color-mix(in srgb, var(--app-custom-accent) 72%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}

body[data-custom-colors="true"] ._joinBtn_4qfgw_149 {
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
}
body[data-custom-colors="true"] ._joinBtn_4qfgw_149:hover {
  border-color: color-mix(in srgb, var(--app-custom-accent) 55%, transparent);
  opacity: 1;
}

body[data-custom-colors="true"] ._sendBtn_4qfgw_172 {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}
body[data-custom-colors="true"] ._sendBtn_4qfgw_172:hover:not(:disabled) {
  background: color-mix(in srgb, var(--app-custom-accent) 85%, black);
}

body[data-custom-colors="true"] ._closeBtn_4qfgw_64 {
  background: color-mix(in srgb, var(--app-custom-text) 8%, transparent);
  color: var(--app-custom-text);
}
body[data-custom-colors="true"] ._profileBtn_4qfgw_41 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 35%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
  color: var(--app-custom-accent);
}
body[data-custom-colors="true"] ._profileBtn_4qfgw_41:hover {
  background: color-mix(in srgb, var(--app-custom-accent) 20%, transparent);
}

body[data-custom-colors="true"] ._notice_4qfgw_199 {
  background: color-mix(in srgb, var(--app-custom-text) 10%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 32%, transparent);
}

body[data-custom-colors="true"] ._noticeBody_4qfgw_227 strong,
body[data-custom-colors="true"] ._noticeBody_4qfgw_227 span {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._noticeIcon_4qfgw_219 {
  background: var(--app-custom-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-custom-accent) 16%, transparent);
}

@media (max-width: 520px) {
  ._notice_4qfgw_199 {
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
._badge_ydxbu_1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', 'Roboto Mono', monospace;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 5px;
  border-width: 1px 1px 2px 1px; /* top right bottom left — raised key effect */
  border-style: solid;
  vertical-align: middle;
  user-select: none;
  flex-shrink: 0;
  letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ── Sizes ── */

._sm_ydxbu_21 {
  font-size: 0.64rem;
  padding: 2px 5px 1px;
  min-width: 18px;
}

._md_ydxbu_27 {
  font-size: 0.72rem;
  padding: 3px 7px 2px;
  min-width: 22px;
}

/* ── Variants ── */

._default_ydxbu_35 {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24) rgba(255, 255, 255, 0.13) rgba(255, 255, 255, 0.34) rgba(255, 255, 255, 0.13);
  color: #d7d2c8;
}

._accent_ydxbu_41 {
  background: rgba(242, 183, 5, 0.18);
  border-color: rgba(242, 183, 5, 0.42) rgba(242, 183, 5, 0.22) rgba(242, 183, 5, 0.72) rgba(242, 183, 5, 0.22);
  color: #ffd766;
}

/* ── Light theme ── */
body[data-theme="light"] ._default_ydxbu_35 {
  background: #fffaf0;
  border-color: rgba(65, 58, 45, 0.28) rgba(65, 58, 45, 0.18) rgba(65, 58, 45, 0.46) rgba(65, 58, 45, 0.18);
  color: #2b2d2f;
  box-shadow: 0 1px 0 rgba(65, 58, 45, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] ._accent_ydxbu_41 {
  background: #fff2bd;
  border-color: rgba(138, 101, 0, 0.38) rgba(138, 101, 0, 0.22) rgba(138, 101, 0, 0.6) rgba(138, 101, 0, 0.22);
  color: #5b4300;
  box-shadow: 0 1px 0 rgba(138, 101, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-custom-colors="true"] ._default_ydxbu_35 {
  background: color-mix(in srgb, var(--app-custom-text) 12%, var(--app-custom-bg));
  border-color:
    color-mix(in srgb, var(--app-custom-text) 28%, transparent)
    color-mix(in srgb, var(--app-custom-text) 16%, transparent)
    color-mix(in srgb, var(--app-custom-text) 42%, transparent)
    color-mix(in srgb, var(--app-custom-text) 16%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._accent_ydxbu_41 {
  background: color-mix(in srgb, var(--app-custom-accent) 18%, var(--app-custom-bg));
  border-color:
    color-mix(in srgb, var(--app-custom-accent) 44%, transparent)
    color-mix(in srgb, var(--app-custom-accent) 24%, transparent)
    color-mix(in srgb, var(--app-custom-accent) 68%, transparent)
    color-mix(in srgb, var(--app-custom-accent) 24%, transparent);
  color: var(--app-custom-accent);
}
._footer_1ntls_1 {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(31, 34, 36, 0.72);
  color: #d3d0c8;
}

._footerIcon_1ntls_13 {
  color: #f2b705;
  flex-shrink: 0;
}

._footerText_1ntls_18 {
  flex: 1;
  min-width: 0;
  color: #8b8f92;
  font-size: 0.82rem;
  font-weight: 800;
}

._footerText_1ntls_18 strong {
  color: #d3d0c8;
}

._footerButton_1ntls_30,
._saveButton_1ntls_31,
._closeButton_1ntls_32,
._badgeButton_1ntls_33,
._photoButton_1ntls_34 {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

._footerButton_1ntls_30 {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f2b705;
  color: #1f2224;
  font-size: 0.78rem;
  font-weight: 900;
}

._overlay_1ntls_54 {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

._modal_1ntls_66 {
  width: min(820px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(242, 183, 5, 0.12), transparent 35%),
    linear-gradient(315deg, rgba(131, 192, 146, 0.1), transparent 34%),
    #292d2f;
  color: #d3d0c8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

._modalHeader_1ntls_82 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

._modalHeader_1ntls_82 div {
  display: grid;
  gap: 4px;
}

._modalHeader_1ntls_82 span,
._panelTitle_1ntls_97,
._fieldLabel_1ntls_98 span {
  color: #83c092;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

._modalHeader_1ntls_82 strong {
  color: #f2b705;
  font-size: 1.32rem;
  font-weight: 900;
}

._closeButton_1ntls_32 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #d3d0c8;
  flex-shrink: 0;
  transition: background 0.12s;
}

._closeButton_1ntls_32:hover {
  background: rgba(255, 255, 255, 0.12);
}

._profileGrid_1ntls_129 {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.3fr);
  gap: 18px;
  padding: 20px;
  overflow: auto;
}

._identityPanel_1ntls_137,
._badgePanel_1ntls_138 {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(31, 34, 36, 0.56);
}

._avatarWrap_1ntls_148 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

._avatar_1ntls_148 {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(242, 183, 5, 0.42);
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.13);
  color: #f2b705;
  font-size: 2.8rem;
  font-weight: 900;
}

._avatar_1ntls_148 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

._photoButton_1ntls_34 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d3d0c8;
  font-size: 0.76rem;
  font-weight: 900;
}

._photoButton_1ntls_34 input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

._fieldLabel_1ntls_98 {
  display: grid;
  gap: 8px;
}

._nameInput_1ntls_201 {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d3d0c8;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  outline: none;
}

._nameInput_1ntls_201:focus {
  border-color: rgba(242, 183, 5, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.14);
}

._saveButton_1ntls_31 {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: #f2b705;
  color: #1f2224;
  font-size: 0.86rem;
  font-weight: 900;
}

._saveButton_1ntls_31:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

._errorText_1ntls_238 {
  color: #ff6675;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

._panelTitle_1ntls_97 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

._badgeGrid_1ntls_251 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

._badgeButton_1ntls_33 {
  min-height: 84px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #8b8f92;
  font-size: 0.72rem;
  font-weight: 900;
}

._badgeActive_1ntls_271 {
  border-color: rgba(242, 183, 5, 0.5);
  background: rgba(242, 183, 5, 0.13);
  color: #f2b705;
}

._progressGrid_1ntls_277 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

._progressGrid_1ntls_277 div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

._progressGrid_1ntls_277 span {
  color: #8b8f92;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

._progressGrid_1ntls_277 strong {
  color: #f2b705;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

._progressGrid_1ntls_277 small {
  color: #8b8f92;
  font-size: 0.7rem;
  font-weight: 800;
}

body[data-theme="light"] ._footer_1ntls_1,
body[data-theme="light"] ._identityPanel_1ntls_137,
body[data-theme="light"] ._badgePanel_1ntls_138,
body[data-theme="light"] ._progressGrid_1ntls_277 div {
  background: rgba(232, 228, 218, 0.76);
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] ._modal_1ntls_66 {
  background:
    linear-gradient(135deg, rgba(201, 155, 0, 0.12), transparent 35%),
    linear-gradient(315deg, rgba(91, 151, 111, 0.1), transparent 34%),
    #f0ece2;
  color: #272b2d;
}

body[data-theme="light"] ._footerText_1ntls_18 strong,
body[data-theme="light"] ._closeButton_1ntls_32,
body[data-theme="light"] ._nameInput_1ntls_201 {
  color: #272b2d;
}

body[data-theme="light"] ._nameInput_1ntls_201 {
  background: rgba(255, 255, 255, 0.62);
}

body[data-custom-colors="true"] ._footer_1ntls_1,
body[data-custom-colors="true"] ._identityPanel_1ntls_137,
body[data-custom-colors="true"] ._badgePanel_1ntls_138,
body[data-custom-colors="true"] ._progressGrid_1ntls_277 div {
  background: color-mix(in srgb, var(--app-custom-text) 7%, var(--app-custom-bg));
  border-color: color-mix(in srgb, var(--app-custom-accent) 18%, transparent);
}

body[data-custom-colors="true"] ._modal_1ntls_66 {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--app-custom-accent) 12%, transparent), transparent 35%),
    linear-gradient(315deg, color-mix(in srgb, var(--app-custom-text) 8%, transparent), transparent 34%),
    color-mix(in srgb, var(--app-custom-text) 9%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
}

body[data-custom-colors="true"] ._footerIcon_1ntls_13,
body[data-custom-colors="true"] ._modalHeader_1ntls_82 strong,
body[data-custom-colors="true"] ._avatar_1ntls_148,
body[data-custom-colors="true"] ._progressGrid_1ntls_277 strong,
body[data-custom-colors="true"] ._badgeActive_1ntls_271 {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._footerButton_1ntls_30,
body[data-custom-colors="true"] ._saveButton_1ntls_31 {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._footerText_1ntls_18,
body[data-custom-colors="true"] ._progressGrid_1ntls_277 small,
body[data-custom-colors="true"] ._progressGrid_1ntls_277 span {
  color: color-mix(in srgb, var(--app-custom-text) 62%, transparent);
}

@media (max-width: 720px) {
  ._footer_1ntls_1 {
    align-items: stretch;
    flex-direction: column;
  }

  ._footerButton_1ntls_30 {
    width: 100%;
  }

  ._profileGrid_1ntls_129 {
    grid-template-columns: 1fr;
  }

  ._badgeGrid_1ntls_251,
  ._progressGrid_1ntls_277 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/**
 * ResultScreen.module.css
 * Premium result page — parchment background, teal/olive/red palette.
 * Fixes: hero stat overflow, action button labels, name-save footer.
 */

/* ─── Root layout ─────────────────────────────────────────────────────────── */

._resultScreen_11ifq_9 {
  width: min(1260px, 100%);
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
  padding: 20px 0 8px;
}

._confettiCanvas_11ifq_18 {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* .captureFramed {
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 2px rgba(242, 183, 5, 0.96),
    0 0 0 2px rgba(242, 183, 5, 0.96),
    0 0 0 8px rgba(242, 183, 5, 0.12);
} */

._isCapturing_11ifq_35 {
  padding: 28px 18px 18px;
  background: #e8e5d9;
  border-radius: 12px;
  box-shadow: none !important;
}

._isCapturing_11ifq_35 [data-gallery-exclude="true"] {
  display: none !important;
}

/* ─── Left column ─────────────────────────────────────────────────────────── */

._resultLeft_11ifq_48 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Prevent hero values from bleeding into the chart column */
  overflow: hidden;
  min-width: 0;
}

/* ─── Stat block ──────────────────────────────────────────────────────────── */

._statBlock_11ifq_59 {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

._statBlockHero_11ifq_66 {
  gap: 0;
}

._statLabel_11ifq_70 {
  color: #2aa6a1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

._statValue_11ifq_78 {
  color: #8aa000;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -0.01em;
  /* Ensure detail-row values don't overflow their cell */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Hero variant: large left-column numbers, constrained to column width */
._statValueHero_11ifq_91 {
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  /* Scale down if the text is still wider than the 148px column */
  word-break: break-all;
  overflow: visible; /* let it grow in column, column is constrained */
}

._statSub_11ifq_100 {
  color: #2aa6a1;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.7;
  margin-top: 3px;
}

/* ─── Test meta ───────────────────────────────────────────────────────────── */

._testMeta_11ifq_110 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(42, 166, 161, 0.15);
}

._metaLabel_11ifq_119 {
  color: #2aa6a1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

._metaValue_11ifq_128 {
  color: #2aa6a1;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ─── Right column ────────────────────────────────────────────────────────── */

._resultRight_11ifq_137 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* ─── Chart card ──────────────────────────────────────────────────────────── */

._chartCard_11ifq_146 {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(42, 166, 161, 0.12);
  border-radius: 10px;
  padding: 6px 6px 2px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(42, 166, 161, 0.05);
}

._chartEmpty_11ifq_156 {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(42, 166, 161, 0.4);
  font-size: 0.88rem;
  font-weight: 700;
  font-style: italic;
}

/* ─── Recharts tooltip ────────────────────────────────────────────────────── */

._tooltip_11ifq_169 {
  background: rgba(234, 231, 220, 0.97);
  border: 1px solid rgba(42, 166, 161, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  min-width: 110px;
}

._tooltipLabel_11ifq_178 {
  color: rgba(42, 166, 161, 0.6);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

._tooltipRow_11ifq_187 {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.65;
}

._tooltipKey_11ifq_196 { opacity: 0.8; }
._tooltipVal_11ifq_197 { font-weight: 850; }

/* ─── Detail row ──────────────────────────────────────────────────────────── */

._detailRow_11ifq_201 {
  display: grid;
  grid-template-columns: 1fr 72px 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 0 2px;
  border-top: 1px solid rgba(42, 166, 161, 0.1);
}

/* Detail row stat values are medium size */
._detailRow_11ifq_201 ._statValue_11ifq_78 {
  font-size: 1.45rem;
}

/* Time cell a touch larger */
._detailRow_11ifq_201 ._statBlock_11ifq_59:last-child ._statValue_11ifq_78 {
  font-size: 1.9rem;
}

/* ─── Action bar ──────────────────────────────────────────────────────────── */

._actionBar_11ifq_221 {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 2px;
}

._actionBtn_11ifq_229 {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 62px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #2aa6a1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

._actionBtn_11ifq_229:hover {
  color: #8aa000;
  background: rgba(138, 160, 0, 0.08);
  border-color: rgba(138, 160, 0, 0.2);
  transform: translateY(-2px);
}

._actionBtn_11ifq_229:active {
  transform: translateY(0);
}

._actionBtn_11ifq_229[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 8px);
  left: 50%;
  max-width: 190px;
  transform: translate(-50%, 4px);
  padding: 6px 8px;
  border: 1px solid rgba(42, 166, 161, 0.18);
  border-radius: 7px;
  background: #f5f4ee;
  color: #2aa6a1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

._actionBtn_11ifq_229[data-tooltip]:hover::after,
._actionBtn_11ifq_229[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

._actionIcon_11ifq_286 {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

._actionLabel_11ifq_293 {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ─── Result action panels ───────────────────────────────────────────────── */

._resultPanel_11ifq_302 {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(42, 166, 161, 0.06);
  border: 1px solid rgba(42, 166, 161, 0.13);
}

._panelHeader_11ifq_311 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #2aa6a1;
  font-size: 0.82rem;
  font-weight: 800;
}

._panelHeader_11ifq_311 span {
  color: rgba(42, 166, 161, 0.62);
  font-size: 0.76rem;
}

._historyList_11ifq_326 {
  max-height: 180px;
  overflow: auto;
  display: grid;
  gap: 5px;
}

._historyRow_11ifq_333 {
  display: grid;
  grid-template-columns: 34px minmax(80px, 1fr) minmax(120px, 1.2fr);
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.32);
  color: #2aa6a1;
  font-size: 0.78rem;
  font-weight: 750;
}

._historyWrong_11ifq_347 {
  color: #ca4754;
  background: rgba(202, 71, 84, 0.08);
}

._historyCorrect_11ifq_352 {
  color: #2aa6a1;
}

._historyTextBlock_11ifq_356 {
  max-height: 230px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.34);
}

._historyLabel_11ifq_366 {
  color: rgba(42, 166, 161, 0.68);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

._historyTyped_11ifq_374,
._historyTarget_11ifq_375 {
  margin: 0;
  color: #3a3a30;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

._historyTarget_11ifq_375 {
  color: rgba(58, 58, 48, 0.58);
}

._historyChar_11ifq_391 {
  position: relative;
  display: inline;
  border-radius: 4px;
}

._historyCharCorrect_11ifq_397 {
  color: #2aa6a1;
}

._historyCharWrong_11ifq_401 {
  color: #ca4754;
  text-decoration-line: underline;
  text-decoration-color: #ca4754;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

._historyCharTarget_11ifq_409 {
  color: rgba(58, 58, 48, 0.58);
}

._historyCharSpace_11ifq_413 {
  display: inline-block;
  min-width: 0.62em;
  min-height: 1.08em;
  margin-inline: 0.02em;
  vertical-align: -0.08em;
  background: rgba(42, 166, 161, 0.08);
}

._historyCharSpace_11ifq_413::after {
  content: "";
  position: absolute;
  left: 0.1em;
  right: 0.1em;
  bottom: 0.14em;
  height: 0.11em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

._historyCharWrong_11ifq_401._historyCharSpace_11ifq_413 {
  background: rgba(202, 71, 84, 0.12);
}

._panelEmpty_11ifq_438 {
  color: rgba(42, 166, 161, 0.62);
  font-size: 0.84rem;
  font-weight: 750;
}

._rewindText_11ifq_444 {
  min-height: 82px;
  max-height: 140px;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.34);
  color: #3a3a30;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

._rewindAction_11ifq_458 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.34);
  color: #2aa6a1;
  font-size: 0.82rem;
  font-weight: 800;
}

._rewindAction_11ifq_458 strong {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

._rewindAction_11ifq_458 span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

._rewind-correct_11ifq_483 {
  color: #2aa6a1;
  background: rgba(42, 166, 161, 0.09);
}

._rewind-wrong_11ifq_488 {
  color: #ca4754;
  background: rgba(202, 71, 84, 0.09);
}

._rewind-delete_11ifq_493 {
  color: #8aa000;
  background: rgba(138, 160, 0, 0.1);
}

._rewind-idle_11ifq_498 {
  color: rgba(42, 166, 161, 0.62);
}

._panelControls_11ifq_502 {
  display: flex;
  align-items: center;
  gap: 10px;
}

._panelControls_11ifq_502 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 7px;
  background: #2aa6a1;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 11px;
  cursor: pointer;
}

._panelControls_11ifq_502 input {
  flex: 1;
}

._galleryCard_11ifq_527 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

._galleryCard_11ifq_527 div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.34);
}

._galleryCard_11ifq_527 span {
  color: rgba(42, 166, 161, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
}

._galleryCard_11ifq_527 strong {
  color: #8aa000;
  font-size: 1.4rem;
  line-height: 1;
}

._shareFooter_11ifq_553 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(42, 166, 161, 0.06);
  border: 1px solid rgba(42, 166, 161, 0.12);
  color: #2aa6a1;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

._captureShareFooter_11ifq_568 {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(42, 166, 161, 0.06);
  border: 1px solid rgba(42, 166, 161, 0.12);
  color: #2aa6a1;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

._isCapturing_11ifq_35 ._captureShareFooter_11ifq_568 {
  display: flex;
}

._captureNotice_11ifq_587 {
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(138, 160, 0, 0.12);
  border: 1px solid rgba(138, 160, 0, 0.22);
  color: #758900;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

/* ─── Player name footer ──────────────────────────────────────────────────── */

._nameFooter_11ifq_600 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(42, 166, 161, 0.06);
  border: 1px solid rgba(42, 166, 161, 0.12);
  min-height: 42px;
}

._profileModalOverlay_11ifq_612 {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 14, 16, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

._profileModal_11ifq_612 {
  width: min(460px, 100%);
  align-items: stretch;
  justify-content: stretch;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(42, 166, 161, 0.2);
  background: #f3f0e6;
  color: #2f3335;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

._profileHeader_11ifq_637 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #2aa6a1;
}

._profileHeader_11ifq_637 div {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1;
}

._profileHeader_11ifq_637 strong {
  color: #2aa6a1;
  font-size: 0.9rem;
  line-height: 1.1;
}

._profileHeader_11ifq_637 span {
  color: rgba(42, 166, 161, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

._profileForm_11ifq_664 {
  display: flex;
  align-items: center;
  gap: 8px;
}

._profileCloseBtn_11ifq_670 {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 166, 161, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  color: #2aa6a1;
  cursor: pointer;
}

._profileBadgePicker_11ifq_683 {
  display: grid;
  gap: 7px;
}

._profileBadgePicker_11ifq_683 > span {
  color: rgba(42, 166, 161, 0.68);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

._badgePreview_11ifq_695 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

._badgePreview_11ifq_695 span,
._badgePreview_11ifq_695 button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(138, 160, 0, 0.2);
  border-radius: 999px;
  background: rgba(138, 160, 0, 0.08);
  color: #8aa000;
  font-family: inherit;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

._badgePreview_11ifq_695 ._badgeActive_11ifq_717 {
  border-color: #2aa6a1;
  background: #2aa6a1;
  color: #fff;
}

._profileProgressGrid_11ifq_723 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

._profileProgressGrid_11ifq_723 div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(42, 166, 161, 0.14);
  border-radius: 8px;
  background: rgba(42, 166, 161, 0.06);
}

._profileProgressGrid_11ifq_723 span {
  color: rgba(42, 166, 161, 0.74);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

._profileProgressGrid_11ifq_723 strong {
  color: #8aa000;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

._profileProgressGrid_11ifq_723 small {
  overflow: hidden;
  color: rgba(47, 51, 53, 0.62);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

._nameIcon_11ifq_762 {
  color: #2aa6a1;
  opacity: 0.65;
  flex-shrink: 0;
}

._nameInput_11ifq_768 {
  flex: 1;
  border: 0;
  border-bottom: 1.5px solid rgba(42, 166, 161, 0.3);
  border-radius: 0;
  background: transparent;
  color: #3a3a30;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
  padding: 2px 4px;
  transition: border-color 0.15s ease;
  min-width: 0;
}

._nameInput_11ifq_768::placeholder {
  color: rgba(42, 166, 161, 0.45);
  font-weight: 600;
}

._nameInput_11ifq_768:focus {
  border-bottom-color: #2aa6a1;
}

._nameSaveBtn_11ifq_793 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 7px;
  background: #2aa6a1;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.14s ease, opacity 0.14s ease;
  flex-shrink: 0;
}

._nameSaveBtn_11ifq_793:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

._nameSaveBtn_11ifq_793:not(:disabled):hover {
  background: #22918c;
}

._nameDisplay_11ifq_818 {
  color: #2aa6a1;
  font-size: 0.84rem;
  font-weight: 700;
  flex: 1;
  text-align: center;
}

._nameDisplay_11ifq_818 strong {
  color: #8aa000;
}

._nameEditBtn_11ifq_830 {
  border: 0;
  background: transparent;
  color: rgba(42, 166, 161, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 5px;
  transition: color 0.14s ease, background 0.14s ease;
  flex-shrink: 0;
}

._nameEditBtn_11ifq_830:hover {
  color: #2aa6a1;
  background: rgba(42, 166, 161, 0.08);
}

/* ─── Light theme ─────────────────────────────────────────────────────────── */

body[data-theme="light"] ._chartCard_11ifq_146 {
  background: rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] ._nameInput_11ifq_768 {
  color: #2a2a20;
}

/* ─── Dark theme ─────────────────────────────────────────────────────────── */

body[data-theme="dark"] ._statLabel_11ifq_70,
body[data-theme="dark"] ._metaLabel_11ifq_119,
body[data-theme="dark"] ._metaValue_11ifq_128,
body[data-theme="dark"] ._panelHeader_11ifq_311,
body[data-theme="dark"] ._actionBtn_11ifq_229,
body[data-theme="dark"] ._nameDisplay_11ifq_818,
body[data-theme="dark"] ._shareFooter_11ifq_553,
body[data-theme="dark"] ._captureShareFooter_11ifq_568 {
  color: #f2b705;
}

body[data-theme="dark"] ._statSub_11ifq_100,
body[data-theme="dark"] ._panelHeader_11ifq_311 span,
body[data-theme="dark"] ._galleryCard_11ifq_527 span,
body[data-theme="dark"] ._historyLabel_11ifq_366,
body[data-theme="dark"] ._panelEmpty_11ifq_438 {
  color: rgba(242, 183, 5, 0.66);
}

body[data-theme="dark"] ._statValue_11ifq_78,
body[data-theme="dark"] ._galleryCard_11ifq_527 strong,
body[data-theme="dark"] ._profileHeader_11ifq_637 strong,
body[data-theme="dark"] ._nameDisplay_11ifq_818 strong {
  color: #d7d2c8;
}

body[data-theme="dark"] ._chartCard_11ifq_146,
body[data-theme="dark"] ._resultPanel_11ifq_302,
body[data-theme="dark"] ._historyTextBlock_11ifq_356,
body[data-theme="dark"] ._rewindText_11ifq_444,
body[data-theme="dark"] ._rewindAction_11ifq_458,
body[data-theme="dark"] ._galleryCard_11ifq_527 div,
body[data-theme="dark"] ._nameFooter_11ifq_600,
body[data-theme="dark"] ._profileCloseBtn_11ifq_670,
body[data-theme="dark"] ._shareFooter_11ifq_553,
body[data-theme="dark"] ._captureShareFooter_11ifq_568 {
  border-color: rgba(242, 183, 5, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

body[data-theme="dark"] ._chartCard_11ifq_146 {
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

body[data-theme="dark"] ._isCapturing_11ifq_35 {
  background: #2f3335;
}

body[data-theme="dark"] ._detailRow_11ifq_201,
body[data-theme="dark"] ._testMeta_11ifq_110 {
  border-color: rgba(242, 183, 5, 0.12);
}

body[data-theme="dark"] ._actionBtn_11ifq_229:hover {
  color: #d7d2c8;
  background: rgba(242, 183, 5, 0.08);
  border-color: rgba(242, 183, 5, 0.2);
}

body[data-theme="dark"] ._actionBtn_11ifq_229[data-tooltip]::after {
  border-color: rgba(242, 183, 5, 0.16);
  background: #292d2f;
  color: #d7d2c8;
}

body[data-theme="dark"] ._historyTyped_11ifq_374,
body[data-theme="dark"] ._historyTarget_11ifq_375,
body[data-theme="dark"] ._rewindText_11ifq_444,
body[data-theme="dark"] ._nameInput_11ifq_768 {
  color: #d7d2c8;
}

body[data-theme="dark"] ._historyTarget_11ifq_375,
body[data-theme="dark"] ._historyCharTarget_11ifq_409 {
  color: rgba(215, 210, 200, 0.54);
}

body[data-theme="dark"] ._historyCharCorrect_11ifq_397 {
  color: #f2b705;
}

body[data-theme="dark"] ._historyCharSpace_11ifq_413 {
  background: rgba(242, 183, 5, 0.1);
}

body[data-theme="dark"] ._rewind-correct_11ifq_483 {
  color: #f2b705;
  background: rgba(242, 183, 5, 0.08);
}

body[data-theme="dark"] ._rewind-delete_11ifq_493 {
  color: #d7d2c8;
  background: rgba(215, 210, 200, 0.08);
}

body[data-theme="dark"] ._captureNotice_11ifq_587 {
  background: rgba(242, 183, 5, 0.08);
  border-color: rgba(242, 183, 5, 0.2);
  color: #f2b705;
}

body[data-theme="dark"] ._nameInput_11ifq_768::placeholder {
  color: rgba(242, 183, 5, 0.4);
}

body[data-theme="dark"] ._profileHeader_11ifq_637 span {
  color: rgba(242, 183, 5, 0.58);
}

body[data-theme="dark"] ._profileModalOverlay_11ifq_612 {
  background: rgba(6, 8, 10, 0.62);
}

body[data-theme="dark"] ._profileModal_11ifq_612 {
  border-color: rgba(242, 183, 5, 0.14);
  background: #292d2f;
  color: #d7d2c8;
}

body[data-theme="dark"] ._profileBadgePicker_11ifq_683 > span {
  color: rgba(242, 183, 5, 0.58);
}

body[data-theme="dark"] ._badgePreview_11ifq_695 span,
body[data-theme="dark"] ._badgePreview_11ifq_695 button {
  border-color: rgba(242, 183, 5, 0.2);
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
}

body[data-theme="dark"] ._badgePreview_11ifq_695 ._badgeActive_11ifq_717 {
  border-color: #f2b705;
  background: #f2b705;
  color: #25282a;
}

body[data-theme="dark"] ._profileProgressGrid_11ifq_723 div {
  border-color: rgba(242, 183, 5, 0.12);
  background: rgba(242, 183, 5, 0.06);
}

body[data-theme="dark"] ._profileProgressGrid_11ifq_723 span,
body[data-theme="dark"] ._profileProgressGrid_11ifq_723 strong {
  color: #f2b705;
}

body[data-theme="dark"] ._profileProgressGrid_11ifq_723 small {
  color: rgba(215, 210, 200, 0.62);
}

/* ─── User custom colors ─────────────────────────────────────────────────── */

body[data-custom-colors="true"] ._statLabel_11ifq_70,
body[data-custom-colors="true"] ._metaLabel_11ifq_119,
body[data-custom-colors="true"] ._metaValue_11ifq_128,
body[data-custom-colors="true"] ._panelHeader_11ifq_311,
body[data-custom-colors="true"] ._actionBtn_11ifq_229,
body[data-custom-colors="true"] ._nameDisplay_11ifq_818,
body[data-custom-colors="true"] ._shareFooter_11ifq_553,
body[data-custom-colors="true"] ._captureShareFooter_11ifq_568 {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._statValue_11ifq_78,
body[data-custom-colors="true"] ._galleryCard_11ifq_527 strong,
body[data-custom-colors="true"] ._profileHeader_11ifq_637 strong,
body[data-custom-colors="true"] ._nameDisplay_11ifq_818 strong,
body[data-custom-colors="true"] ._historyTyped_11ifq_374,
body[data-custom-colors="true"] ._rewindText_11ifq_444,
body[data-custom-colors="true"] ._nameInput_11ifq_768 {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._chartCard_11ifq_146,
body[data-custom-colors="true"] ._resultPanel_11ifq_302,
body[data-custom-colors="true"] ._historyTextBlock_11ifq_356,
body[data-custom-colors="true"] ._rewindText_11ifq_444,
body[data-custom-colors="true"] ._rewindAction_11ifq_458,
body[data-custom-colors="true"] ._galleryCard_11ifq_527 div,
body[data-custom-colors="true"] ._nameFooter_11ifq_600,
body[data-custom-colors="true"] ._profileCloseBtn_11ifq_670,
body[data-custom-colors="true"] ._shareFooter_11ifq_553,
body[data-custom-colors="true"] ._captureShareFooter_11ifq_568 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 7%, transparent);
}

body[data-custom-colors="true"] ._isCapturing_11ifq_35 {
  background: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._actionBtn_11ifq_229:hover,
body[data-custom-colors="true"] ._panelControls_11ifq_502 button,
body[data-custom-colors="true"] ._nameSaveBtn_11ifq_793 {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._actionBtn_11ifq_229[data-tooltip]::after {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 12%, var(--app-custom-bg));
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._profileHeader_11ifq_637,
body[data-custom-colors="true"] ._profileHeader_11ifq_637 span,
body[data-custom-colors="true"] ._profileBadgePicker_11ifq_683 > span,
body[data-custom-colors="true"] ._badgePreview_11ifq_695 span,
body[data-custom-colors="true"] ._profileProgressGrid_11ifq_723 span,
body[data-custom-colors="true"] ._profileProgressGrid_11ifq_723 strong {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._profileModalOverlay_11ifq_612 {
  background: rgba(8, 10, 12, 0.68);
}

body[data-custom-colors="true"] ._profileModal_11ifq_612 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 32%, transparent);
  background: color-mix(in srgb, var(--app-custom-bg) 88%, var(--app-custom-text));
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._badgePreview_11ifq_695 span,
body[data-custom-colors="true"] ._badgePreview_11ifq_695 button {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 9%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._badgePreview_11ifq_695 ._badgeActive_11ifq_717 {
  border-color: var(--app-custom-accent);
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._profileProgressGrid_11ifq_723 div {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 8%, transparent);
}

body[data-custom-colors="true"] ._profileProgressGrid_11ifq_723 small {
  color: color-mix(in srgb, var(--app-custom-text) 62%, transparent);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  ._resultScreen_11ifq_9 {
    grid-template-columns: 1fr;
  }

  ._resultLeft_11ifq_48 {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-end;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(42, 166, 161, 0.1);
    overflow: visible;
  }

  ._testMeta_11ifq_110 {
    border-top: none;
    padding-top: 0;
  }

  ._statValueHero_11ifq_91 {
    font-size: 3.4rem;
  }

  ._detailRow_11ifq_201 {
    grid-template-columns: repeat(3, 1fr);
  }

  ._actionBar_11ifq_221 {
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 580px) {
  ._detailRow_11ifq_201 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/**
 * TypingArea.module.css
 * Styles for the live typing prompt, footer stats, and debug console.
 */

._typingShell_w95o3_6 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

._typeTest_w95o3_14 {
  width: 100%;
  max-width: 1240px;
  padding: 2px 0 0;
  position: relative;
}

._isIdle_w95o3_21 ._targetViewport_w95o3_21,
._isIdle_w95o3_21 ._testFooter_w95o3_22 {
  filter: blur(3px);
  opacity: 0.54;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

._focusOverlay_w95o3_28 {
  position: absolute;
  z-index: 4;
  top: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--prompt-height, 10.95rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: rgba(24, 26, 28, 0.44);
  color: #f2b705;
  font: 800 1rem "Inter", "Noto Sans Khmer", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

._focusOverlay_w95o3_28 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(20, 22, 24, 0.84);
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.28), 0 10px 24px rgba(0,0,0,0.28);
}

._targetViewport_w95o3_21 {
  width: 100%;
  height: var(--prompt-height, 10.95rem);
  box-sizing: border-box;
  overflow: hidden;
  scroll-behavior: smooth;
  color: var(--typing-prompt-text-color, #8b8f92);
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: var(--prompt-font-size, 1.88rem);
  line-height: var(--prompt-line-height, 1.62);
  padding-block: 0.08em 0.28em;
}

._targetText_w95o3_73 {
  min-height: 100%;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
  user-select: none;
}

._targetText_w95o3_73 span {
  position: relative;
  transition: color 0.08s ease;
}

._charCorrect_w95o3_89 {
  color: var(--typing-prompt-correct-color, #d7d2c8);
}

._charPending_w95o3_93 {
  color: var(--typing-prompt-correct-color, #d7d2c8);
}

._charWrong_w95o3_97 {
  color: var(--typing-prompt-wrong-color, #ca4754);
  text-decoration-line: underline;
  text-decoration-color: var(--typing-prompt-wrong-color, #ca4754);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

._charCurrent_w95o3_105 {
  color: #f2b705;
  background: rgba(242, 183, 5, 0.08);
  border-radius: 4px;
}

._charWrong_w95o3_97._charCurrent_w95o3_105 {
  color: var(--typing-prompt-wrong-color, #ca4754);
  background: color-mix(in srgb, var(--typing-prompt-wrong-color, #ca4754) 14%, transparent);
}

._charSpace_w95o3_116 {
  display: inline-block;
  min-width: 0.58em;
  min-height: 1.1em;
  vertical-align: -0.08em;
  border-radius: 4px;
}

._charSpace_w95o3_116::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: 0.16em;
  height: 0.1em;
  border-radius: 999px;
  background: rgba(139, 143, 146, 0.34);
}

._charSpace_w95o3_116._charCorrect_w95o3_89,
._charSpace_w95o3_116._charPending_w95o3_93 {
  background: rgba(215, 210, 200, 0.09);
}

._charSpace_w95o3_116._charCorrect_w95o3_89::after,
._charSpace_w95o3_116._charPending_w95o3_93::after {
  background: rgba(215, 210, 200, 0.72);
}

._charSpace_w95o3_116._charCurrent_w95o3_105 {
  background: rgba(242, 183, 5, 0.16);
  box-shadow: inset 0 0 0 1px rgba(242, 183, 5, 0.28);
}

._charSpace_w95o3_116._charCurrent_w95o3_105::after {
  background: #f2b705;
}

._charSpace_w95o3_116._charWrong_w95o3_97 {
  min-width: 0.62em;
  background: rgba(202, 71, 84, 0.14);
  border-radius: 4px;
  text-decoration: none;
}

._charSpace_w95o3_116._charWrong_w95o3_97::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: 0.12em;
  height: 0.12em;
  border-radius: 999px;
  background: #ca4754;
}

._charDiacritic_w95o3_172 {
  display: inline-block;
  min-width: 0.55em;
  text-align: center;
}

._charCurrent_w95o3_105::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 8%;
  width: 3px;
  height: 88%;
  border-radius: 999px;
  background: #f2b705;
  animation: _cursorPulse_w95o3_1 1s steps(2, start) infinite;
}

._charWrong_w95o3_97._charCurrent_w95o3_105::before {
  background: var(--typing-prompt-wrong-color, #ca4754);
}

._charCurrent_w95o3_105:empty {
  display: inline-block;
  width: 0.28ch;
  height: 1em;
  vertical-align: -0.08em;
}

@keyframes _cursorPulse_w95o3_1 {
  50% { opacity: 0; }
}

/* ─── Ruby / romanization hints (ja-JP, ko-KR) ────────────────────────────── */

._targetText_w95o3_73 ruby {
  ruby-position: over;
  display: ruby;
}

._rubyHint_w95o3_212 {
  font-size: 0.46em;
  font-family: 'Inter', 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-inline: 0.15em;
  /* Must override inherited line-height (2.1+) or the rt block balloons to ~2rem tall,
     making the browser render each line far taller than the JS height calculation expects. */
  line-height: 1.1;
  text-align: center;
  opacity: 0.58;
  text-transform: lowercase;
}

/* Current char hint is gold so it reads clearly against the highlighted char */
._charCurrent_w95o3_105 ._rubyHint_w95o3_212 {
  opacity: 0.9;
  color: #f2b705;
}

/* Wrong char hint stays visible in red so the user sees what they should have typed */
._charWrong_w95o3_97 ._rubyHint_w95o3_212 {
  opacity: 0.85;
}

._mistakePulse_w95o3_237 ._charCurrent_w95o3_105 {
  color: var(--typing-prompt-wrong-color, #ca4754);
  background: color-mix(in srgb, var(--typing-prompt-wrong-color, #ca4754) 14%, transparent);
  animation: _mistakeNudge_w95o3_1 0.18s ease;
}

._mistakePulse_w95o3_237 ._charCurrent_w95o3_105::before {
  background: var(--typing-prompt-wrong-color, #ca4754);
}

@keyframes _mistakeNudge_w95o3_1 {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-0.08em); }
  70% { transform: translateX(0.08em); }
}

body[data-custom-colors="true"] ._charCurrent_w95o3_105 ._rubyHint_w95o3_212 {
  color: var(--app-custom-accent);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

._testFooter_w95o3_22 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  color: #777b7e;
  font-size: 0.95rem;
  font-weight: 800;
}

._clearBtn_w95o3_271 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: #292d2f;
  color: #777b7e;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 800;
  transition: color 0.12s ease, background 0.12s ease;
}

._clearBtn_w95o3_271:hover {
  background: #25282a;
  color: #f2b705;
}

._retryBadge_w95o3_291 {
  color: #f2b705;
  background: rgba(242, 183, 5, 0.1);
  border: 1px solid rgba(242, 183, 5, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1;
}

._nextHint_w95o3_300 {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 8px;
  background: rgba(242, 183, 5, 0.07);
  color: #d7d2c8;
}

._nextLabel_w95o3_312 {
  color: #777b7e;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

._nextHint_w95o3_300 strong {
  min-width: 1.9em;
  color: #f2b705;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

/* ─── Debug console ───────────────────────────────────────────────────────── */

._debugConsole_w95o3_330 {
  width: min(880px, 100%);
  margin: 10px auto 0;
  display: grid;
  gap: 5px;
  color: #777b7e;
  font-family: "Inter", "Noto Sans Khmer", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
}

._debugRow_w95o3_341 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

._debugRow_w95o3_341 span,
._debugRow_w95o3_341 strong {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: #292d2f;
  padding: 4px 8px;
}

/* status colours */
._debug-typed_w95o3_360   span:first-child,
._debug-deleted_w95o3_361 span:first-child { color: #83c092; }
._debug-ignored_w95o3_362 span:first-child,
._debug-blocked_w95o3_363 span:first-child { color: #ca4754; }

/* ─── Light theme ─────────────────────────────────────────────────────────── */

body[data-theme="light"] ._charCorrect_w95o3_89,
body[data-theme="light"] ._charPending_w95o3_93     { color: var(--typing-prompt-correct-color, #272b2d); }
body[data-theme="light"] ._targetViewport_w95o3_21  { color: var(--typing-prompt-text-color, #76736d); }
body[data-theme="light"] ._testFooter_w95o3_22      { color: #76736d; }
body[data-theme="light"] ._debugConsole_w95o3_330    { color: #76736d; }
body[data-theme="light"] ._nextHint_w95o3_300 {
  background: rgba(201, 155, 0, 0.08);
  border-color: rgba(201, 155, 0, 0.2);
  color: #272b2d;
}
body[data-theme="light"] ._nextLabel_w95o3_312 { color: #76736d; }
body[data-theme="light"] ._nextHint_w95o3_300 strong { color: #c99b00; }
body[data-theme="light"] ._focusOverlay_w95o3_28    { background: rgba(236, 232, 222, 0.56); }
body[data-theme="light"] ._focusOverlay_w95o3_28 span {
  background: rgba(248, 245, 238, 0.92);
  box-shadow: 0 0 0 1px rgba(201, 155, 0, 0.32), 0 10px 24px rgba(0,0,0,0.12);
}
body[data-theme="light"] ._clearBtn_w95o3_271,
body[data-theme="light"] ._debugRow_w95o3_341 span,
body[data-theme="light"] ._debugRow_w95o3_341 strong { background: #d8d4cb; }
body[data-theme="light"] ._clearBtn_w95o3_271:hover  { color: #c99b00; background: #d0ccb8; }

body[data-custom-colors="true"] ._targetViewport_w95o3_21 {
  color: var(--typing-prompt-text-color, color-mix(in srgb, var(--app-custom-text) 62%, transparent));
}

body[data-custom-colors="true"] ._testFooter_w95o3_22 {
  color: color-mix(in srgb, var(--app-custom-text) 62%, transparent);
}

body[data-custom-colors="true"] ._focusOverlay_w95o3_28 {
  background: color-mix(in srgb, var(--app-custom-bg) 62%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._focusOverlay_w95o3_28 span {
  background: color-mix(in srgb, var(--app-custom-bg) 88%, var(--app-custom-text));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--app-custom-accent) 34%, transparent),
    0 10px 24px color-mix(in srgb, var(--app-custom-text) 22%, transparent);
}

body[data-custom-colors="true"] ._charCorrect_w95o3_89,
body[data-custom-colors="true"] ._charPending_w95o3_93 {
  color: var(--typing-prompt-correct-color, var(--app-custom-text));
}

body[data-custom-colors="true"] ._charWrong_w95o3_97 {
  color: var(--typing-prompt-wrong-color, #ca4754);
  text-decoration-color: var(--typing-prompt-wrong-color, #ca4754);
}

body[data-custom-colors="true"] ._charCurrent_w95o3_105 {
  color: var(--app-custom-accent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
}

body[data-custom-colors="true"] ._charWrong_w95o3_97._charCurrent_w95o3_105 {
  color: var(--typing-prompt-wrong-color, #ca4754);
  background: color-mix(in srgb, var(--typing-prompt-wrong-color, #ca4754) 14%, transparent);
}

body[data-custom-colors="true"] ._charCurrent_w95o3_105::before,
body[data-custom-colors="true"] ._charSpace_w95o3_116._charCurrent_w95o3_105::after {
  background: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._charWrong_w95o3_97._charCurrent_w95o3_105::before,
body[data-custom-colors="true"] ._charSpace_w95o3_116._charWrong_w95o3_97._charCurrent_w95o3_105::after {
  background: var(--typing-prompt-wrong-color, #ca4754);
}

body[data-custom-colors="true"] ._charSpace_w95o3_116._charCurrent_w95o3_105 {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-custom-accent) 32%, transparent);
}

body[data-custom-colors="true"] ._clearBtn_w95o3_271 {
  background: color-mix(in srgb, var(--app-custom-text) 9%, transparent);
  color: color-mix(in srgb, var(--app-custom-text) 62%, transparent);
}

body[data-custom-colors="true"] ._clearBtn_w95o3_271:hover,
body[data-custom-colors="true"] ._retryBadge_w95o3_291 {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._nextHint_w95o3_300 {
  background: color-mix(in srgb, var(--app-custom-accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._nextLabel_w95o3_312 {
  color: color-mix(in srgb, var(--app-custom-text) 58%, transparent);
}

body[data-custom-colors="true"] ._nextHint_w95o3_300 strong {
  color: var(--app-custom-accent);
}
._gameShell_rtc5c_1 {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 20px 0 8px;
}

._gameTopbar_rtc5c_9 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

._backBtn_rtc5c_16,
._controlBtn_rtc5c_17,
._powerCard_rtc5c_18,
._heroOption_rtc5c_19,
._languageBtn_rtc5c_20,
._assistToggle_rtc5c_21 {
  border: 0;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

._backBtn_rtc5c_16 {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #d7d2c8;
  padding: 8px 14px;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

._backBtn_rtc5c_16:hover {
  color: #f2b705;
  background: rgba(242, 183, 5, 0.08);
}

._canvasBackBtn_rtc5c_45 {
  justify-self: start;
  pointer-events: auto;
}

._landing_rtc5c_50 {
  /* min-height: 620px; */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 22%, rgba(42, 166, 161, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(242, 183, 5, 0.08), rgba(202, 71, 84, 0.08)),
    #292d2f;
}

._landingHero_rtc5c_64 {
  position: relative;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 44px;
}

._landingHero_rtc5c_64 > ._canvasBackBtn_rtc5c_45 {
  position: absolute;
  top: 28px;
  left: 28px;
}

._kicker_rtc5c_78,
._settingLabel_rtc5c_79,
._scoreLabel_rtc5c_80 {
  color: #2aa6a1;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

._landingHero_rtc5c_64 h2 {
  max-width: 720px;
  margin: 0;
  color: #d7d2c8;
  font-size: clamp(3rem, 4vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

._landingHero_rtc5c_64 p {
  max-width: 620px;
  margin: 0;
  color: #a5a19a;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
}

._heroPreview_rtc5c_107 {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

._heroSpriteShell_rtc5c_115 {
  display: grid;
  place-items: center;
  overflow: hidden;
}

._heroSprite_rtc5c_115 {
  image-rendering: auto;
  object-fit: contain;
  transition: transform 0.16s ease, filter 0.16s ease;
}

._heroSprite-preview_rtc5c_127,
._heroSprite-preview_rtc5c_127 ._heroSprite_rtc5c_115 {
  width: 118px;
  height: 118px;
}

._heroSprite-option_rtc5c_133,
._heroSprite-option_rtc5c_133 ._heroSprite_rtc5c_115 {
  width: 54px;
  height: 54px;
}

._heroSprite-stage_rtc5c_139,
._heroSprite-stage_rtc5c_139 ._heroSprite_rtc5c_115 {
  width: 104px;
  height: 104px;
}

._heroSprite-result_rtc5c_145,
._heroSprite-result_rtc5c_145 ._heroSprite_rtc5c_115 {
  width: 142px;
  height: 142px;
}

._heroSpriteFlipped_rtc5c_151 {
  transform: scaleX(-1);
}

._heroSpritePaused_rtc5c_155 ._heroSprite_rtc5c_115 {
  filter: saturate(0.9) brightness(0.92);
}

._landingPanel_rtc5c_159 {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  background: rgba(20, 22, 24, 0.48);
}

._settingGroup_rtc5c_167 {
  display: grid;
  gap: 10px;
}

._heroGrid_rtc5c_172 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

._heroOption_rtc5c_19 {
  position: relative;
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 183, 5, 0.18);
  background: rgba(0, 0, 0, 0.08);
  color: #d7d2c8;
  padding: 12px 6px 10px;
}

._heroOptionLabel_rtc5c_189 {
  color: #8b8f92;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: capitalize;
}

._optionKey_rtc5c_196 {
  position: absolute;
  top: 6px;
  right: 6px;
}

._heroOptionActive_rtc5c_202,
._heroOption_rtc5c_19:hover {
  border-color: rgba(242, 183, 5, 0.42);
  background: rgba(242, 183, 5, 0.1);
}

._languageRow_rtc5c_208 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

._controlRow_rtc5c_214 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

._languageBtn_rtc5c_20 {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #8b8f92;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

._controlBtn_rtc5c_17 {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #8b8f92;
  padding: 8px 12px;
  font-weight: 850;
}

._languageBtnActive_rtc5c_245,
._languageBtn_rtc5c_20:hover,
._controlBtn_rtc5c_17:hover {
  background: rgba(242, 183, 5, 0.1);
  color: #f2b705;
}

._assistToggle_rtc5c_21 {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  background: rgba(0, 0, 0, 0.08);
  color: #d7d2c8;
  padding: 10px 12px;
  text-align: left;
}

._assistToggle_rtc5c_21 > span:not(._assistToggleMeta_rtc5c_265) {
  display: grid;
  gap: 4px;
}

._assistToggle_rtc5c_21 strong {
  font-size: 0.88rem;
  line-height: 1;
}

._assistToggle_rtc5c_21 small {
  max-width: 250px;
  color: #8b8f92;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
}

._assistToggle_rtc5c_21 i {
  min-width: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #8b8f92;
  padding: 5px 8px;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

._assistToggleMeta_rtc5c_265 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

._assistToggleActive_rtc5c_304,
._assistToggle_rtc5c_21:hover {
  border-color: rgba(242, 183, 5, 0.38);
  background: rgba(242, 183, 5, 0.1);
}

._assistToggleActive_rtc5c_304 i {
  background: #f2b705;
  color: #25282a;
}

._playBtn_rtc5c_315 {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: #f2b705;
  color: #25282a;
  font: inherit;
  font-weight: 950;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.12s ease;
}

._playBtn_rtc5c_315:hover {
  background: #dba604;
}

._playKey_rtc5c_336 {
  background: rgba(37, 40, 42, 0.18) !important;
  border-color: rgba(37, 40, 42, 0.34) rgba(37, 40, 42, 0.2) rgba(37, 40, 42, 0.52) rgba(37, 40, 42, 0.2) !important;
  color: #25282a !important;
  box-shadow: 0 1px 0 rgba(37, 40, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

._arena_rtc5c_343 {
  position: relative;
  /* max-width: 550px; */
  /* margin: 0 auto; */
  min-height: 550px;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(42, 166, 161, 0.13), transparent 48%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #25282a;
  background-size: auto, 46px 46px, 46px 46px, auto;
}

._arenaHeader_rtc5c_359 {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  pointer-events: none;
}

._arenaActions_rtc5c_370 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

._arenaTitle_rtc5c_377 {
  display: grid;
  gap: 4px;
}

._arenaTitle_rtc5c_377 strong {
  color: #d7d2c8;
  font-size: 1.08rem;
}

._arenaTitle_rtc5c_377 span,
._arenaHint_rtc5c_388 {
  color: #8b8f92;
  font-size: 0.82rem;
  font-weight: 800;
}

._heroLine_rtc5c_394 {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  top: 68%;
  border-top: 1px dashed rgba(202, 71, 84, 0.38);
  pointer-events: none;
}

._heroLine_rtc5c_394::after {
  content: "hero line";
  position: absolute;
  right: 0;
  top: 6px;
  color: rgba(202, 71, 84, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

._wordCard_rtc5c_415 {
  position: absolute;
  z-index: 5;
  left: var(--word-x);
  top: var(--word-y);
  min-width: 100px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.38);
  border-radius: 10px;
  background: rgba(22, 25, 28, 0.96);
  color: #e8e2d8;
  padding: 10px 18px;
  font-size: 1.06rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
  transition: border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

._wordCardActive_rtc5c_438 {
  z-index: 20;
  border-color: rgba(42, 166, 161, 0.65);
  background: rgba(14, 24, 26, 0.98);
  color: #7ed7d1;
  box-shadow: 0 0 0 3px rgba(42, 166, 161, 0.18), 0 8px 24px rgba(0, 0, 0, 0.48);
}

._wordCardBonus_rtc5c_446 {
  border-color: rgba(202, 71, 84, 0.45);
  background: rgba(38, 14, 18, 0.96);
  color: #ffb0bd;
}

._wordCardWrong_rtc5c_452 {
  border-color: rgba(255, 74, 92, 0.75);
  color: #ff4a5c;
  box-shadow: 0 0 0 2px rgba(255, 74, 92, 0.14), 0 8px 20px rgba(0, 0, 0, 0.2);
}

._wordCardCharHit_rtc5c_458 {
  animation: _charHitFlash_rtc5c_1 0.3s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

._wordCardImpactPending_rtc5c_462 {
  z-index: 24;
  border-color: rgba(242, 183, 5, 0.95);
  box-shadow:
    0 0 0 4px rgba(242, 183, 5, 0.22),
    0 0 18px rgba(242, 183, 5, 0.48),
    0 8px 24px rgba(0, 0, 0, 0.5);
  animation: _impactLock_rtc5c_1 0.28s ease-out forwards;
}

@keyframes _impactLock_rtc5c_1 {
  0% {
    transform: translateX(-50%) scale(1);
  }
  45% {
    transform: translateX(-50%) scale(1.06);
  }
  100% {
    transform: translateX(-50%) scale(1.02);
  }
}

@keyframes _charHitFlash_rtc5c_1 {
  0% {
    border-color: rgba(242, 183, 5, 0.95);
    box-shadow: 0 0 0 5px rgba(242, 183, 5, 0.28), 0 0 14px rgba(242, 183, 5, 0.5);
    filter: brightness(1.6);
    transform: translateX(-50%) translateY(-12px) scale(1.05);
  }
  60% {
    filter: brightness(1.15);
    transform: translateX(-50%) translateY(-4px) scale(1.01);
  }
  100% {
    filter: brightness(1);
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

._blastCircle_rtc5c_501 {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 68%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle, rgba(242, 183, 5, 0.6) 0%, transparent 70%);
  box-shadow: 0 0 24px rgba(242, 183, 5, 0.9), 0 0 6px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  animation: _blastExpand_rtc5c_1 0.64s cubic-bezier(0.14, 0.82, 0.28, 1) forwards;
  pointer-events: none;
}

._blastCircle_rtc5c_501::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(242, 183, 5, 0.42);
  animation: _blastRing_rtc5c_1 0.64s cubic-bezier(0.14, 0.82, 0.28, 1) forwards;
}

@keyframes _blastExpand_rtc5c_1 {
  0% {
    width: 12px;
    height: 12px;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 24px rgba(242, 183, 5, 0.9);
  }
  35% {
    opacity: 0.9;
    border-color: rgba(242, 183, 5, 0.9);
    box-shadow: 0 0 60px rgba(242, 183, 5, 0.7), 0 0 120px rgba(242, 183, 5, 0.3);
    width: 440px;
    height: 440px;
  }
  100% {
    width: 900px;
    height: 900px;
    opacity: 0;
    border-color: rgba(242, 183, 5, 0.05);
    box-shadow: none;
  }
}

@keyframes _blastRing_rtc5c_1 {
  0% { width: 12px; height: 12px; opacity: 0.7; }
  100% { width: 600px; height: 600px; opacity: 0; inset: -294px; }
}

._wordText_rtc5c_555 {
  display: inline;
  white-space: pre;
}

._wordSegment_rtc5c_560 {
  display: inline;
}

._wordSegment_rtc5c_560 ruby {
  ruby-align: center;
}

._wordSegment_rtc5c_560 rt {
  font-size: 0.42em;
  font-weight: 900;
  line-height: 1;
  opacity: 0.78;
}

._wordTyped_rtc5c_575 {
  opacity: 0.45;
}

._wordPartial_rtc5c_579 {
  color: #7ed7d1;
  text-shadow: 0 0 10px rgba(42, 166, 161, 0.35);
}

._pointBadge_rtc5c_584 {
  position: absolute;
  right: -10px;
  top: -12px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ca4754;
  color: #fff7df;
  padding: 3px 7px;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
}

._wrongText_rtc5c_601 {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  color: #ff4a5c;
  font-size: 0.78rem;
  font-weight: 950;
  transform: translateX(-50%);
}

._shot_rtc5c_611 {
  position: absolute;
  z-index: 26;
  left: 50%;
  top: 68%;
  width: 5px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7bd 0%, #f2b705 48%, rgba(242, 183, 5, 0) 100%);
  box-shadow: 0 0 10px rgba(242, 183, 5, 0.95), 0 0 22px rgba(242, 183, 5, 0.36);
  animation: _bulletFly_rtc5c_1 0.28s cubic-bezier(.12,.78,.24,1) forwards;
  pointer-events: none;
}

._shot_rtc5c_611::before,
._shot_rtc5c_611::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

._shot_rtc5c_611::before {
  left: 50%;
  top: -4px;
  width: 9px;
  height: 9px;
  background: #fff7bd;
  box-shadow: 0 0 14px rgba(255, 247, 189, 0.9);
  transform: translateX(-50%);
}

._shot_rtc5c_611::after {
  left: 50%;
  top: 68%;
  width: 3px;
  height: 44px;
  background: linear-gradient(180deg, rgba(242, 183, 5, 0.78), rgba(242, 183, 5, 0));
  transform: translateX(-50%);
  opacity: 0.72;
}

._shotMiss_rtc5c_653::after {
  background: linear-gradient(180deg, rgba(255, 74, 92, 0.78), rgba(255, 74, 92, 0));
}

@keyframes _bulletFly_rtc5c_1 {
  0% {
    left: 50%;
    top: 68%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--shot-tilt)) scaleY(0.45);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--shot-tilt)) scaleY(1);
  }
  82% {
    opacity: 1;
  }
  100% {
    left: var(--shot-x);
    top: var(--shot-y);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--shot-tilt)) scaleY(0.86);
  }
}

._stageHero_rtc5c_679 {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 118px;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transform: translateX(-50%);
}

._stageHero_rtc5c_679::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.08);
  filter: blur(10px);
}

._stageHeroMiss_rtc5c_702 ._heroSprite_rtc5c_115 {
  filter:
    saturate(1.18)
    contrast(1.12)
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18))
    drop-shadow(0 0 12px rgba(255, 74, 92, 0.8));
}

._hud_rtc5c_710 {
  position: absolute;
  z-index: 6;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

._powerCard_rtc5c_18,
._scoreCard_rtc5c_723,
._controlsCard_rtc5c_724 {
  min-height: 72px;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 8px;
  background: rgba(41, 45, 47, 0.88);
  padding: 12px;
}

._powerCard_rtc5c_18 {
  position: relative;
  width: 78px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  color: #d7d2c8;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

._powerCard_rtc5c_18:hover {
  border-color: rgba(42, 166, 161, 0.62);
  background: rgba(42, 166, 161, 0.11);
  transform: translateY(-1px);
}

._powerOrb_rtc5c_753 {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(41, 45, 47, 0.95) 44%, transparent 46%),
    conic-gradient(#2aa6a1 var(--power-pct, 0%), rgba(215, 210, 200, 0.18) 0);
  box-shadow: inset 0 0 0 1px rgba(215, 210, 200, 0.12);
}

._powerOrb_rtc5c_753 span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(215, 210, 200, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

._powerKey_rtc5c_773 {
  min-width: 22px !important;
  min-height: 20px;
  padding-inline: 4px !important;
  font-size: 0.8rem !important;
  color: #7ed7d1 !important;
  background: rgba(42, 166, 161, 0.12) !important;
  border-color:
    rgba(42, 166, 161, 0.44)
    rgba(42, 166, 161, 0.24)
    rgba(42, 166, 161, 0.68)
    rgba(42, 166, 161, 0.24) !important;
}

._powerReady_rtc5c_787 {
  color: #f2b705;
  border-color: rgba(42, 166, 161, 0.78) !important;
  background: rgba(42, 166, 161, 0.16);
  animation: _powerPulse_rtc5c_1 1.1s ease-in-out infinite;
}

._powerReady_rtc5c_787 ._powerOrb_rtc5c_753 {
  background:
    radial-gradient(circle, rgba(41, 45, 47, 0.95) 44%, transparent 46%),
    conic-gradient(#f2b705 100%, rgba(215, 210, 200, 0.18) 0);
  box-shadow: 0 0 16px rgba(242, 183, 5, 0.46), inset 0 0 0 1px rgba(242, 183, 5, 0.22);
}

._powerReady_rtc5c_787 ._powerOrb_rtc5c_753 span {
  background: #f2b705;
}

@keyframes _powerPulse_rtc5c_1 {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(242, 183, 5, 0), 0 0 22px rgba(242, 183, 5, 0.45);
  }
}

._scoreCard_rtc5c_723 {
  display: grid;
  justify-items: center;
  place-items: center;
  min-width: 128px;
  overflow: visible;
  padding-inline: 18px;
}

._scoreCard_rtc5c_723 strong {
  color: #f2b705;
  font-size: clamp(2rem, 4vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

._controlsCard_rtc5c_724 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

._countdown_rtc5c_838 {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 22, 24, 0.64);
  color: #f2b705;
  font-size: 8rem;
  font-weight: 950;
}

._pointPopup_rtc5c_850 {
  position: absolute;
  z-index: 8;
  left: var(--popup-x);
  top: var(--popup-y);
  color: #f2b705;
  font-size: 1.25rem;
  font-weight: 950;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  animation: _pointPopup_rtc5c_850 0.82s ease-out forwards;
  pointer-events: none;
}

@keyframes _pointPopup_rtc5c_850 {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.78);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120%) scale(1.12);
  }
}

._levelNotice_rtc5c_878 {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f2b705;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 950;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.62);
  animation: _levelNotice_rtc5c_878 1.12s ease-out forwards;
  pointer-events: none;
}

._hintPanel_rtc5c_892 {
  position: absolute;
  z-index: 6;
  left: 16px;
  top: 74px;
  display: inline-flex;
  gap: 8px;
  align-items: start;
  pointer-events: none;
}

._hintPanel_rtc5c_892 div {
  min-height: 58px;
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid rgba(42, 166, 161, 0.28);
  border-radius: 8px;
  background: rgba(18, 20, 22, 0.86);
  padding: 9px 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

._hintPanel_rtc5c_892 span {
  color: #2aa6a1;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

._hintPanel_rtc5c_892 strong {
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff7df;
}

._hintNextText_rtc5c_932 {
  color: #f2b705;
}

._hintNextBox_rtc5c_936,
._hintBkspBox_rtc5c_937 {
  min-width: 80px;
}

._hintBkspBox_rtc5c_937 {
  min-height: 44px !important;
}

._hintKeyBadge_rtc5c_945 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border: 2px solid rgba(242, 183, 5, 0.65);
  border-bottom-width: 4px;
  border-radius: 7px;
  background: rgba(242, 183, 5, 0.13);
  color: #f2b705;
  padding: 4px 10px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 950;
  font-style: normal;
  line-height: 1;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}

._hintBkspBadge_rtc5c_965 {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 143, 146, 0.38);
  border-bottom-width: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #8b8f92;
  padding: 4px 7px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  font-style: normal;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

._kbdHint_rtc5c_983 {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 143, 146, 0.28);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #6a6e72;
  padding: 1px 5px;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 850;
  font-style: normal;
  line-height: 1.3;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

@keyframes _levelNotice_rtc5c_878 {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  18% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

._resultScene_rtc5c_1015 {
  width: min(550px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 183, 5, 0.14), transparent 44%),
    radial-gradient(circle at 50% 85%, rgba(42, 166, 161, 0.1), transparent 38%),
    #292d2f;
  padding: 32px 28px 28px;
}

._resultHeader_rtc5c_1030 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

._resultHeroRow_rtc5c_1037 {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: _resultFadeUp_rtc5c_1 0.4s ease-out backwards;
}

._resultHero_rtc5c_1037 {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  animation: _resultHeroPop_rtc5c_1 1.5s ease-in-out infinite alternate;
}

@keyframes _resultHeroPop_rtc5c_1 {
  from { transform: translateY(0) rotate(-1.5deg) scale(1); }
  to { transform: translateY(-9px) rotate(1.5deg) scale(1.05); }
}

._resultTitle_rtc5c_1058 {
  display: grid;
  gap: 6px;
  min-width: 0;
  animation: _resultFadeUp_rtc5c_1 0.4s ease-out 0.06s backwards;
}

._resultScore_rtc5c_1065 {
  margin: 0;
  color: #f2b705;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  animation: _resultScalePop_rtc5c_1 0.55s cubic-bezier(0.32, 1.42, 0.58, 1) 0.1s backwards;
}

._resultSub_rtc5c_1075 {
  margin: 0;
  color: #a5a19a;
  font-size: 0.92rem;
  font-weight: 850;
}

._resultPlayerName_rtc5c_1082 {
  width: fit-content;
  margin: 2px 0 0;
  border: 1px solid rgba(215, 210, 200, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7d2c8;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

._resultGrid_rtc5c_1095 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

._resultStatCard_rtc5c_1102 {
  display: grid;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--card-accent, #f2b705) 35%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-accent, #f2b705) 13%, rgba(18, 20, 22, 0.92));
  padding: 16px 14px;
}


._resultStatCard_rtc5c_1102 > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: color-mix(in srgb, var(--card-accent, #f2b705) 70%, white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

._resultStatCard_rtc5c_1102 > strong {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 950;
}

._resultStatCard_rtc5c_1102 > strong small {
  font-size: 1rem;
  /* color: rgba(255, 255, 255, 0.52); */
}

._resultActions_rtc5c_1135 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: _resultFadeUp_rtc5c_1 0.4s ease-out 0.5s backwards;
}

._resultSecondaryBtn_rtc5c_1143 {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(215, 210, 200, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #d7d2c8;
  padding: 8px 22px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

._resultSecondaryBtn_rtc5c_1143:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(215, 210, 200, 0.38);
  color: #fff;
}

@keyframes _resultFadeUp_rtc5c_1 {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes _resultScalePop_rtc5c_1 {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Word-break shard explosion ────────────────────────────────────────── */

._explodingWordContainer_rtc5c_1178 {
  position: absolute;
  z-index: 12;
  left: var(--word-x);
  top: var(--word-y);
  width: 0;
  height: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

._wordBreakShard_rtc5c_1189 {
  position: absolute;
  width: 18px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(242, 183, 5, 0.7);
  background: rgba(22, 25, 28, 0.95);
  box-shadow: 0 0 6px rgba(242, 183, 5, 0.4);
  animation: _shardFly_rtc5c_1 0.68s cubic-bezier(0.22, 0.68, 0.36, 1) forwards;
  transform-origin: center;
}

._wordBreakShardBonus_rtc5c_1201 {
  border-color: rgba(202, 71, 84, 0.8);
  box-shadow: 0 0 8px rgba(202, 71, 84, 0.5);
  background: rgba(38, 14, 18, 0.95);
}

@keyframes _shardFly_rtc5c_1 {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--dx, 0) * 64px), calc(-50% + var(--dy, 0) * 54px))
      rotate(var(--rot, 120deg))
      scale(0.3);
  }
}

/* ── Hero fade-away on game over ───────────────────────────────────────── */

._stageHeroFading_rtc5c_1226 {
  animation: _heroFadeAway_rtc5c_1 1.5s ease-in forwards;
}

@keyframes _heroFadeAway_rtc5c_1 {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: brightness(1); }
  30%  { opacity: 0.9; transform: translateX(-50%) translateY(-6px) scale(1.06); filter: brightness(1.4) saturate(0.4); }
  100% { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.6); filter: brightness(0.2) saturate(0); }
}

/* ── Arena darkening during game-over sequence ─────────────────────────── */

._arenaGameOver_rtc5c_1238::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10, 10, 14, 0.55);
  animation: _arenaFadeOut_rtc5c_1 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes _arenaFadeOut_rtc5c_1 {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Result scene redesign (550 px to match arena) ─────────────────────── */

._resultStatCardIn_rtc5c_1255 {
  animation: _resultStatCardPop_rtc5c_1 0.38s cubic-bezier(0.32, 1.42, 0.58, 1) both;
}

@keyframes _resultStatCardPop_rtc5c_1 {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

._resultPowerBar_rtc5c_1264 {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 6px;
  overflow: hidden;
}

._resultPowerBarFill_rtc5c_1273 {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #ca4754, #ff6b7a);
  animation: _powerBarFill_rtc5c_1 0.9s ease-out 0.15s forwards;
}

@keyframes _powerBarFill_rtc5c_1 {
  from { width: 0; }
  to   { width: var(--power-pct, 0%); }
}

body[data-theme="light"] ._landing_rtc5c_50,
body[data-theme="light"] ._arena_rtc5c_343,
body[data-theme="light"] ._resultScene_rtc5c_1015 {
  color: #272b2d;
}

body[data-theme="light"] ._landing_rtc5c_50 {
  border-color: rgba(121, 96, 23, 0.22);
  background:
    radial-gradient(circle at 22% 22%, rgba(42, 166, 161, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(242, 183, 5, 0.14), rgba(202, 71, 84, 0.09)),
    #eee8dc;
}

body[data-theme="light"] ._arena_rtc5c_343 {
  border-color: rgba(121, 96, 23, 0.22);
  background:
    linear-gradient(180deg, rgba(42, 166, 161, 0.12), transparent 48%),
    linear-gradient(90deg, rgba(39, 43, 45, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(39, 43, 45, 0.06) 1px, transparent 1px),
    #eee8dc;
}

body[data-theme="light"] ._resultScene_rtc5c_1015 {
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 183, 5, 0.16), transparent 44%),
    radial-gradient(circle at 50% 85%, rgba(42, 166, 161, 0.12), transparent 38%),
    #eee8dc;
}

body[data-theme="light"] ._landingPanel_rtc5c_159,
body[data-theme="light"] ._powerCard_rtc5c_18,
body[data-theme="light"] ._scoreCard_rtc5c_723,
body[data-theme="light"] ._controlsCard_rtc5c_724,
body[data-theme="light"] ._hintPanel_rtc5c_892 div {
  border-color: rgba(121, 96, 23, 0.16);
  background: rgba(255, 250, 240, 0.76);
}

body[data-theme="light"] ._landingHero_rtc5c_64 h2,
body[data-theme="light"] ._arenaTitle_rtc5c_377 strong,
body[data-theme="light"] ._hintPanel_rtc5c_892 strong,
body[data-theme="light"] ._assistToggle_rtc5c_21 strong,
body[data-theme="light"] ._resultPlayerName_rtc5c_1082,
body[data-theme="light"] ._resultStatCard_rtc5c_1102 > strong {
  color: #272b2d;
}

body[data-theme="light"] ._landingHero_rtc5c_64 p,
body[data-theme="light"] ._arenaTitle_rtc5c_377 span,
body[data-theme="light"] ._arenaHint_rtc5c_388,
body[data-theme="light"] ._heroOptionLabel_rtc5c_189,
body[data-theme="light"] ._languageBtn_rtc5c_20,
body[data-theme="light"] ._controlBtn_rtc5c_17,
body[data-theme="light"] ._powerCard_rtc5c_18,
body[data-theme="light"] ._assistToggle_rtc5c_21 small,
body[data-theme="light"] ._resultSub_rtc5c_1075 {
  color: #5f615d;
}

body[data-theme="light"] ._backBtn_rtc5c_16,
body[data-theme="light"] ._languageBtn_rtc5c_20,
body[data-theme="light"] ._controlBtn_rtc5c_17,
body[data-theme="light"] ._heroOption_rtc5c_19,
body[data-theme="light"] ._assistToggle_rtc5c_21 {
  border-color: rgba(39, 43, 45, 0.12);
  background: rgba(255, 250, 240, 0.7);
}

body[data-theme="light"] ._backBtn_rtc5c_16 {
  color: #3b3d3f;
}

body[data-theme="light"] ._heroOptionActive_rtc5c_202,
body[data-theme="light"] ._heroOption_rtc5c_19:hover,
body[data-theme="light"] ._languageBtnActive_rtc5c_245,
body[data-theme="light"] ._languageBtn_rtc5c_20:hover,
body[data-theme="light"] ._controlBtn_rtc5c_17:hover,
body[data-theme="light"] ._assistToggleActive_rtc5c_304,
body[data-theme="light"] ._assistToggle_rtc5c_21:hover {
  border-color: rgba(138, 101, 0, 0.34);
  background: rgba(242, 183, 5, 0.16);
  color: #6d5100;
}

body[data-theme="light"] ._wordCard_rtc5c_415 {
  color: #010101;
  background: rgba(255, 248, 227, 0.96);
  text-shadow: none;
}

body[data-theme="light"] ._powerOrb_rtc5c_753 {
  background:
    radial-gradient(circle, rgba(255, 250, 240, 0.98) 44%, transparent 46%),
    conic-gradient(#2aa6a1 var(--power-pct, 0%), rgba(39, 43, 45, 0.16) 0);
  box-shadow: inset 0 0 0 1px rgba(39, 43, 45, 0.1);
}

body[data-theme="light"] ._powerOrb_rtc5c_753 span {
  background: rgba(39, 43, 45, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] ._powerReady_rtc5c_787 ._powerOrb_rtc5c_753 {
  background:
    radial-gradient(circle, rgba(255, 250, 240, 0.98) 44%, transparent 46%),
    conic-gradient(#f2b705 100%, rgba(39, 43, 45, 0.16) 0);
}

body[data-theme="light"] ._powerReady_rtc5c_787 ._powerOrb_rtc5c_753 span {
  background: #243033;
}

body[data-theme="light"] ._powerKey_rtc5c_773 {
  color: #245f5c !important;
  background: rgba(42, 166, 161, 0.13) !important;
  border-color:
    rgba(42, 166, 161, 0.42)
    rgba(42, 166, 161, 0.24)
    rgba(42, 166, 161, 0.62)
    rgba(42, 166, 161, 0.24) !important;
}

body[data-custom-colors="true"] ._landing_rtc5c_50,
body[data-custom-colors="true"] ._arena_rtc5c_343,
body[data-custom-colors="true"] ._landingPanel_rtc5c_159,
body[data-custom-colors="true"] ._powerCard_rtc5c_18,
body[data-custom-colors="true"] ._scoreCard_rtc5c_723,
body[data-custom-colors="true"] ._controlsCard_rtc5c_724,
body[data-custom-colors="true"] ._resultScene_rtc5c_1015,
body[data-custom-colors="true"] ._resultStatCard_rtc5c_1102 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 20%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 9%, var(--app-custom-bg));
}

body[data-custom-colors="true"] ._backBtn_rtc5c_16,
body[data-custom-colors="true"] ._languageBtn_rtc5c_20,
body[data-custom-colors="true"] ._controlBtn_rtc5c_17,
body[data-custom-colors="true"] ._heroOption_rtc5c_19,
body[data-custom-colors="true"] ._assistToggle_rtc5c_21 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 18%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 7%, var(--app-custom-bg));
  color: color-mix(in srgb, var(--app-custom-text) 68%, transparent);
}

body[data-custom-colors="true"] ._backBtn_rtc5c_16:hover,
body[data-custom-colors="true"] ._languageBtn_rtc5c_20:hover,
body[data-custom-colors="true"] ._controlBtn_rtc5c_17:hover,
body[data-custom-colors="true"] ._heroOption_rtc5c_19:hover,
body[data-custom-colors="true"] ._assistToggle_rtc5c_21:hover {
  border-color: color-mix(in srgb, var(--app-custom-accent) 42%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, var(--app-custom-bg));
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._landingHero_rtc5c_64 h2,
body[data-custom-colors="true"] ._arenaTitle_rtc5c_377 strong,
body[data-custom-colors="true"] ._resultStatCard_rtc5c_1102 > strong {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._kicker_rtc5c_78,
body[data-custom-colors="true"] ._settingLabel_rtc5c_79,
body[data-custom-colors="true"] ._scoreLabel_rtc5c_80,
body[data-custom-colors="true"] ._resultScore_rtc5c_1065,
body[data-custom-colors="true"] ._scoreCard_rtc5c_723 strong {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._wordCard_rtc5c_415 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 52%, transparent);
  background: color-mix(in srgb, var(--app-custom-bg) 84%, black);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._playBtn_rtc5c_315,
body[data-custom-colors="true"] ._languageBtnActive_rtc5c_245,
body[data-custom-colors="true"] ._heroOptionActive_rtc5c_202,
body[data-custom-colors="true"] ._assistToggleActive_rtc5c_304 i {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._playKey_rtc5c_336 {
  background: color-mix(in srgb, var(--app-custom-bg) 18%, transparent) !important;
  border-color:
    color-mix(in srgb, var(--app-custom-bg) 34%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 20%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 52%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 20%, transparent) !important;
  color: var(--app-custom-bg) !important;
}

body[data-custom-colors="true"] ._hintPanel_rtc5c_892 div,
body[data-custom-colors="true"] ._assistToggle_rtc5c_21 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-bg) 86%, black);
}

body[data-custom-colors="true"] ._hintPanel_rtc5c_892 strong,
body[data-custom-colors="true"] ._assistToggle_rtc5c_21 strong,
body[data-custom-colors="true"] ._resultPlayerName_rtc5c_1082,
body[data-custom-colors="true"] ._heroOptionLabel_rtc5c_189 {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._hintKeyBadge_rtc5c_945 {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._powerOrb_rtc5c_753 {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--app-custom-bg) 92%, black) 44%, transparent 46%),
    conic-gradient(var(--app-custom-accent) var(--power-pct, 0%), color-mix(in srgb, var(--app-custom-text) 18%, transparent) 0);
}

body[data-custom-colors="true"] ._powerOrb_rtc5c_753 span,
body[data-custom-colors="true"] ._powerReady_rtc5c_787 ._powerOrb_rtc5c_753 span {
  background: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._powerKey_rtc5c_773 {
  color: var(--app-custom-accent) !important;
  background: color-mix(in srgb, var(--app-custom-accent) 12%, var(--app-custom-bg)) !important;
  border-color:
    color-mix(in srgb, var(--app-custom-accent) 42%, transparent)
    color-mix(in srgb, var(--app-custom-accent) 24%, transparent)
    color-mix(in srgb, var(--app-custom-accent) 66%, transparent)
    color-mix(in srgb, var(--app-custom-accent) 24%, transparent) !important;
}

body[data-custom-colors="true"] ._resultStatCard_rtc5c_1102 > span {
  color: color-mix(in srgb, var(--app-custom-accent) 70%, white);
}

body[data-custom-colors="true"] ._resultSub_rtc5c_1075 {
  color: color-mix(in srgb, var(--app-custom-text) 55%, transparent);
}

body[data-custom-colors="true"] ._resultSecondaryBtn_rtc5c_1143 {
  border-color: color-mix(in srgb, var(--app-custom-text) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 7%, var(--app-custom-bg));
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._resultSecondaryBtn_rtc5c_1143:hover {
  background: color-mix(in srgb, var(--app-custom-text) 14%, var(--app-custom-bg));
  border-color: color-mix(in srgb, var(--app-custom-text) 38%, transparent);
}

/* ── Feedback panel ── */
._feedbackPanel_rtc5c_1537 {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

._feedbackPanel_rtc5c_1537 h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
}

._feedbackRow_rtc5c_1557 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

._feedbackInput_rtc5c_1563 {
  flex: 1;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: inherit;
  font-size: 0.88rem;
  outline: none;
}

._feedbackInput_rtc5c_1563:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
}

._feedbackTextarea_rtc5c_1579 {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 72px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}

._feedbackTextarea_rtc5c_1579:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
}

._feedbackActions_rtc5c_1599 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

._feedbackSendBtn_rtc5c_1606 {
  padding: 0.42rem 1rem;
  border-radius: 6px;
  border: none;
  background: #7c3aed;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

._feedbackSendBtn_rtc5c_1606:hover:not(:disabled) { background: #6d28d9; }
._feedbackSendBtn_rtc5c_1606:disabled { opacity: 0.5; cursor: default; }

._feedbackJoinBtn_rtc5c_1621 {
  padding: 0.42rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.15s, border-color 0.15s;
}

._feedbackJoinBtn_rtc5c_1621:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
}

._feedbackStatus_rtc5c_1641 {
  font-size: 0.8rem;
  opacity: 0.7;
}

._feedbackStatusOk_rtc5c_1646  { color: #4ade80; opacity: 1; }
._feedbackStatusErr_rtc5c_1647 { color: #f87171; opacity: 1; }
._shell_fq9j7_1 {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 18px 0 10px;
  color: #12323a;
}

._mismatchBackdrop_fq9j7_10 {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: all;
}

._mismatchToast_fq9j7_17 {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 81;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  min-width: 280px;
  max-width: 480px;
  border: 1px solid rgba(255, 168, 0, 0.38);
  border-radius: 12px;
  background: #fff9ed;
  color: #8a5500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(200, 120, 0, 0.12);
  pointer-events: all;
  font-size: 0.82rem;
  animation: _mismatchIn_fq9j7_1 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

._mismatchBody_fq9j7_39 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

._mismatchBody_fq9j7_39 strong {
  font-size: 0.84rem;
  font-weight: 800;
}

._mismatchBody_fq9j7_39 span {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.8;
}

._mismatchClose_fq9j7_58 {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.12s;
}

._mismatchClose_fq9j7_58:hover {
  opacity: 1;
}

@keyframes _mismatchIn_fq9j7_1 {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

._topbar_fq9j7_90 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

._titleBlock_fq9j7_97 {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
}

._titleBlock_fq9j7_97 span,
._kicker_fq9j7_105,
._statusPill_fq9j7_106 {
  color: #187a8a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

._titleBlock_fq9j7_97 h2,
._panel_fq9j7_116 h2,
._result_fq9j7_117 h2 {
  margin: 0;
  color: #12323a;
  letter-spacing: 0;
}

._titleBlock_fq9j7_97 h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

._backButton_fq9j7_128,
._playButton_fq9j7_129,
._languageButton_fq9j7_130 {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #ffd166;
  color: #12323a;
  padding: 9px 13px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

._backButton_fq9j7_128:hover,
._playButton_fq9j7_129:hover,
._languageButton_fq9j7_130:hover,
._languageButtonActive_fq9j7_151 {
  background: #ffb84d;
}

._backButton_fq9j7_128:hover,
._playButton_fq9j7_129:hover,
._languageButton_fq9j7_130:hover {
  transform: translateY(-1px);
}

._actionKey_fq9j7_161 {
  background: rgba(18, 50, 58, 0.16) !important;
  border-color: rgba(18, 50, 58, 0.32) rgba(18, 50, 58, 0.2) rgba(18, 50, 58, 0.48) rgba(18, 50, 58, 0.2) !important;
  color: #12323a !important;
  box-shadow: 0 1px 0 rgba(18, 50, 58, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

._statusPill_fq9j7_106 {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(21, 126, 154, 0.28);
  border-radius: 8px;
  background: #e7fbff;
  padding: 8px 12px;
  white-space: nowrap;
}

._landing_fq9j7_180 {
  min-height: clamp(410px, 56vw, 560px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 4px solid #12323a;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(180deg, #bdefff 0%, #78d7ef 48%, #2daac7 100%);
  box-shadow: 0 18px 0 rgba(18, 50, 58, 0.08);
}

._cardTopbar_fq9j7_194 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(18, 50, 58, 0.12);
  backdrop-filter: blur(4px);
  border-bottom: 2px solid rgba(18, 50, 58, 0.1);
}

._cardTitle_fq9j7_204 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

._cardTitle_fq9j7_204 h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #12323a;
  line-height: 1.1;
}

._preview_fq9j7_219 {
  position: relative;
  overflow: hidden;
}

._previewBubble_fq9j7_224 {
  position: absolute;
  width: clamp(86px, 14vw, 140px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.9) 0 11%, transparent 12%),
    radial-gradient(circle at 62% 76%, rgba(255, 255, 255, 0.22), transparent 24%),
    rgba(255, 255, 255, 0.32);
  color: #12323a;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  box-shadow:
    inset 0 -18px 30px rgba(21, 126, 154, 0.2),
    0 16px 30px rgba(18, 50, 58, 0.12);
  animation: _previewFloat_fq9j7_1 7s ease-in-out infinite;
}

._previewBubbleOne_fq9j7_245 {
  left: 15%;
  bottom: 16%;
}

._previewBubbleTwo_fq9j7_250 {
  left: 48%;
  bottom: 34%;
  animation-delay: -2s;
}

._previewBubbleThree_fq9j7_256 {
  left: 32%;
  bottom: 58%;
  animation-delay: -4s;
}

._panel_fq9j7_116 {
  display: grid;
  align-content: center;
  gap: 18px;
  border-top: 3px solid rgba(18, 50, 58, 0.16);
  background: rgba(234, 251, 255, 0.88);
  padding: 20px 24px;
}

._panel_fq9j7_116 > ._playButton_fq9j7_129 {
  justify-self: center;
  min-width: 184px;
  padding-inline: 26px;
}

._panel_fq9j7_116 h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.08;
}

._languageRow_fq9j7_282 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

._languageButton_fq9j7_130 {
  justify-content: space-between;
  gap: 8px;
  border: 2px solid rgba(21, 126, 154, 0.24);
  background: #f7fdff;
  color: #12323a;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

._languageButtonActive_fq9j7_151 {
  border-color: #ff9f1c;
  background: #ffd166;
  color: #12323a;
}

._languageButton_fq9j7_130:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

._languageButton_fq9j7_130:disabled:hover {
  background: #f7fdff;
}

._soundRow_fq9j7_316 {
  display: flex;
  justify-content: center;
}

._soundButton_fq9j7_321 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid rgba(21, 126, 154, 0.24);
  border-radius: 8px;
  background: #f7fdff;
  color: #12323a;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
}

._soundButton_fq9j7_321:hover {
  border-color: rgba(21, 126, 154, 0.4);
  background: #eafbff;
  transform: translateY(-1px);
}

._soundButtonMuted_fq9j7_342 {
  opacity: 0.7;
  color: #557279;
}

._keyboardNotice_fq9j7_347 {
  margin: -6px 0 0;
  color: #187a8a;
  font-size: 0.92rem;
  font-weight: 800;
}

._keyboardNotice_fq9j7_347 strong {
  color: #12323a;
}

._arenaHud_fq9j7_358 {
  position: absolute;
  top: 54px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

/* Canvas wrapper for playing phase */
._playCanvas_fq9j7_371 {
  position: relative;
}

/* Frosted topbar overlaid at top of arena */
._arenaTopbar_fq9j7_376 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(18, 50, 58, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

._arenaBackBtn_fq9j7_393 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
}
._arenaBackBtn_fq9j7_393:hover { background: rgba(255, 255, 255, 0.18); }

._arenaSoundBtn_fq9j7_410 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
}
._arenaSoundBtn_fq9j7_410:hover { background: rgba(255, 255, 255, 0.18); }

._arenaSoundBtnMuted_fq9j7_427 {
  opacity: 0.6;
}

._arenaTitleBlock_fq9j7_431 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
}

._arenaBreadcrumb_fq9j7_440 {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

._arenaGameName_fq9j7_448 {
  font-size: 0.82rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

._arenaLevelPill_fq9j7_455 {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 209, 102, 0.22);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: #ffd166;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

._arenaHudItem_fq9j7_467 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(18, 50, 58, 0.52);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  font-weight: 900;
}

._arena_fq9j7_358 {
  position: relative;
  height: min(620px, calc(100vh - 230px));
  min-height: 440px;
  overflow: hidden;
  border: 4px solid #12323a;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(180deg, #d8fbff 0%, #80def2 45%, #1b9dbc 100%);
  box-shadow: 0 18px 0 rgba(18, 50, 58, 0.08);
}

._arena_fq9j7_358::after {
  content: "";
  position: absolute;
  inset: 70px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0.42;
}

._arenaError_fq9j7_504 {
  animation: _errorPulse_fq9j7_1 220ms ease;
}

._waterGlow_fq9j7_508 {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.5), transparent 58%),
    linear-gradient(180deg, transparent, rgba(18, 50, 58, 0.08));
}

._bubble_fq9j7_517 {
  position: absolute;
  left: var(--bubble-x);
  top: var(--bubble-y);
  width: var(--bubble-size);
  aspect-ratio: 1;
  transform: translate(calc(-50% + var(--bubble-wobble)), -50%);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.98) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, 0.22), transparent 25%),
    color-mix(in srgb, var(--bubble-color) 62%, transparent);
  color: #12323a;
  padding: 0;
  font: inherit;
  cursor: default;
  pointer-events: none;
  box-shadow:
    inset 0 -14px 26px color-mix(in srgb, var(--bubble-color) 34%, transparent),
    0 12px 24px rgba(18, 50, 58, 0.14);
  will-change: top, transform;
  animation: _bubbleBreath_fq9j7_1 2.4s ease-in-out infinite;
}

._bubble_fq9j7_517 span {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 950;
  line-height: 1;
}

._bubble_fq9j7_517 span ruby {
  ruby-align: center;
}

._bubble_fq9j7_517 span rt {
  font-size: 0.36em;
  font-weight: 900;
  line-height: 1;
  opacity: 0.72;
}

._bubble_fq9j7_517 small {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  color: rgba(18, 50, 58, 0.58);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

._bubbleFast_fq9j7_572 {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 -14px 26px color-mix(in srgb, var(--bubble-color) 38%, transparent),
    0 0 0 4px rgba(255, 255, 255, 0.16),
    0 14px 26px rgba(18, 50, 58, 0.16);
}

._pop_fq9j7_580 {
  position: absolute;
  left: var(--pop-x);
  top: var(--pop-y);
  width: var(--pop-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    radial-gradient(circle, color-mix(in srgb, var(--pop-color) 22%, transparent), transparent 62%);
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(18, 50, 58, 0.18));
  animation: _popShell_fq9j7_1 420ms ease-out forwards;
}

._pop_fq9j7_580::before {
  content: '';
  position: absolute;
  inset: 5%;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--pop-color) 74%, white);
  animation: _popRing_fq9j7_1 460ms ease-out forwards;
}

._pop_fq9j7_580::after {
  content: '';
  position: absolute;
  inset: 26%;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  animation: _popInnerRing_fq9j7_1 420ms ease-out forwards;
}

._popParticle_fq9j7_615 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--particle-size, 8px);
  height: var(--particle-size, 8px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pop-color) 58%, white);
  transform: translate(-50%, -50%);
  animation: _popParticle_fq9j7_615 520ms cubic-bezier(0.14, 0.74, 0.28, 1) forwards;
}

._popParticle_fq9j7_615:nth-child(1) { --tx: -10px; --ty: -42px; --particle-size: 9px; }
._popParticle_fq9j7_615:nth-child(2) { --tx: 26px; --ty: -34px; --particle-size: 7px; animation-delay: 18ms; }
._popParticle_fq9j7_615:nth-child(3) { --tx: 44px; --ty: -8px; --particle-size: 10px; animation-delay: 30ms; }
._popParticle_fq9j7_615:nth-child(4) { --tx: 32px; --ty: 30px; --particle-size: 7px; animation-delay: 12ms; }
._popParticle_fq9j7_615:nth-child(5) { --tx: 0px; --ty: 46px; --particle-size: 8px; animation-delay: 24ms; }
._popParticle_fq9j7_615:nth-child(6) { --tx: -34px; --ty: 28px; --particle-size: 7px; animation-delay: 34ms; }
._popParticle_fq9j7_615:nth-child(7) { --tx: -44px; --ty: -8px; --particle-size: 9px; animation-delay: 16ms; }
._popParticle_fq9j7_615:nth-child(8) { --tx: -28px; --ty: -34px; --particle-size: 6px; animation-delay: 28ms; }

._errorBadge_fq9j7_636 {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(214, 53, 82, 0.28);
  border-radius: 8px;
  background: #ffe9ee;
  color: #d63552;
  padding: 8px 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(18, 50, 58, 0.14);
  animation: _badgeIn_fq9j7_1 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

._errorBadgeKb_fq9j7_652 {
  border-color: rgba(180, 80, 0, 0.32);
  background: #fff3e0;
  color: #b44f00;
}

@keyframes _badgeIn_fq9j7_1 {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.94); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1); }
}

._result_fq9j7_117 {
  min-height: 430px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 18px;
  border: 4px solid #12323a;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(180deg, #d8fbff 0%, #80def2 45%, #1b9dbc 100%);
  overflow: hidden;
}

._resultTopbar_fq9j7_677 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(18, 50, 58, 0.12);
  backdrop-filter: blur(4px);
  border-bottom: 2px solid rgba(18, 50, 58, 0.1);
}

._resultHero_fq9j7_687 {
  text-align: center;
  padding: 24px 16px 0;
}

._result_fq9j7_117 h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0;
}

._resultBtns_fq9j7_697 {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0 16px 24px;
  flex-wrap: wrap;
}

._resultStats_fq9j7_705 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

._resultStats_fq9j7_705 span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(21, 126, 154, 0.2);
  border-radius: 8px;
  background: rgba(247, 253, 255, 0.84);
  color: #187a8a;
  padding: 8px 12px;
  font-weight: 850;
}

._resultStats_fq9j7_705 strong {
  color: #12323a;
}

@keyframes _previewFloat_fq9j7_1 {
  0%,
  100% {
    transform: translate3d(0, 12px, 0);
  }
  50% {
    transform: translate3d(8px, -18px, 0);
  }
}

@keyframes _bubbleBreath_fq9j7_1 {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
}

@keyframes _popShell_fq9j7_1 {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.96);
    filter: blur(0) drop-shadow(0 8px 16px rgba(18, 50, 58, 0.18));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
    filter: blur(4px) drop-shadow(0 8px 16px rgba(18, 50, 58, 0));
  }
}

@keyframes _popRing_fq9j7_1 {
  0% {
    opacity: 0.9;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@keyframes _popInnerRing_fq9j7_1 {
  0% {
    opacity: 0.74;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes _popParticle_fq9j7_615 {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.28);
  }
  72% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.92);
  }
}

@keyframes _errorPulse_fq9j7_1 {
  0%,
  100% {
    box-shadow: 0 18px 0 rgba(18, 50, 58, 0.08);
  }
  50% {
    box-shadow:
      0 18px 0 rgba(18, 50, 58, 0.08),
      inset 0 0 0 999px rgba(214, 53, 82, 0.12);
  }
}

body[data-theme="dark"] ._shell_fq9j7_1 {
  color: #d7f8ff;
}

body[data-theme="dark"] ._landing_fq9j7_180,
body[data-theme="dark"] ._arena_fq9j7_358,
body[data-theme="dark"] ._result_fq9j7_117 {
  border-color: rgba(126, 215, 209, 0.42);
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 215, 209, 0.18), transparent 22%),
    linear-gradient(180deg, #20363b 0%, #16475a 46%, #102c36 100%);
  box-shadow: 0 18px 0 rgba(0, 0, 0, 0.16);
}

body[data-theme="dark"] ._cardTopbar_fq9j7_194,
body[data-theme="dark"] ._resultTopbar_fq9j7_677,
body[data-theme="dark"] ._panel_fq9j7_116 {
  border-color: rgba(126, 215, 209, 0.16);
  background: rgba(18, 28, 32, 0.72);
}

body[data-theme="dark"] ._cardTitle_fq9j7_204 h2,
body[data-theme="dark"] ._result_fq9j7_117 h2,
body[data-theme="dark"] ._keyboardNotice_fq9j7_347 strong {
  color: #e8fbff;
}

body[data-theme="dark"] ._keyboardNotice_fq9j7_347,
body[data-theme="dark"] ._kicker_fq9j7_105,
body[data-theme="dark"] ._titleBlock_fq9j7_97 span,
body[data-theme="dark"] ._statusPill_fq9j7_106 {
  color: #7ed7d1;
}

body[data-theme="dark"] ._languageButton_fq9j7_130,
body[data-theme="dark"] ._soundButton_fq9j7_321,
body[data-theme="dark"] ._resultStats_fq9j7_705 span {
  border-color: rgba(126, 215, 209, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #d7f8ff;
}

body[data-theme="dark"] ._languageButton_fq9j7_130:hover,
body[data-theme="dark"] ._soundButton_fq9j7_321:hover {
  background: rgba(126, 215, 209, 0.12);
}

body[data-theme="dark"] ._languageButtonActive_fq9j7_151,
body[data-theme="dark"] ._playButton_fq9j7_129,
body[data-theme="dark"] ._backButton_fq9j7_128 {
  background: #f2b705;
  color: #182326;
}

body[data-theme="dark"] ._actionKey_fq9j7_161 {
  background: rgba(24, 35, 38, 0.2) !important;
  border-color:
    rgba(24, 35, 38, 0.42)
    rgba(24, 35, 38, 0.24)
    rgba(24, 35, 38, 0.62)
    rgba(24, 35, 38, 0.24) !important;
  color: #182326 !important;
  box-shadow: 0 1px 0 rgba(24, 35, 38, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

body[data-theme="dark"] ._resultStats_fq9j7_705 strong {
  color: #fff7df;
}

body[data-theme="dark"] ._previewBubble_fq9j7_224 {
  color: #e8fbff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.9) 0 11%, transparent 12%),
    radial-gradient(circle at 62% 76%, rgba(255, 255, 255, 0.18), transparent 24%),
    rgba(126, 215, 209, 0.18);
}

body[data-custom-colors="true"] ._landing_fq9j7_180,
body[data-custom-colors="true"] ._arena_fq9j7_358,
body[data-custom-colors="true"] ._result_fq9j7_117 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 42%, transparent);
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--app-custom-accent) 18%, transparent), transparent 22%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--app-custom-text) 12%, var(--app-custom-bg)),
      color-mix(in srgb, var(--app-custom-accent) 16%, var(--app-custom-bg)));
}

body[data-custom-colors="true"] ._cardTopbar_fq9j7_194,
body[data-custom-colors="true"] ._resultTopbar_fq9j7_677,
body[data-custom-colors="true"] ._panel_fq9j7_116,
body[data-custom-colors="true"] ._languageButton_fq9j7_130,
body[data-custom-colors="true"] ._soundButton_fq9j7_321,
body[data-custom-colors="true"] ._resultStats_fq9j7_705 span {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 8%, var(--app-custom-bg));
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._cardTitle_fq9j7_204 h2,
body[data-custom-colors="true"] ._result_fq9j7_117 h2,
body[data-custom-colors="true"] ._keyboardNotice_fq9j7_347 strong,
body[data-custom-colors="true"] ._resultStats_fq9j7_705 strong {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._keyboardNotice_fq9j7_347,
body[data-custom-colors="true"] ._kicker_fq9j7_105,
body[data-custom-colors="true"] ._titleBlock_fq9j7_97 span,
body[data-custom-colors="true"] ._statusPill_fq9j7_106 {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._languageButtonActive_fq9j7_151,
body[data-custom-colors="true"] ._playButton_fq9j7_129,
body[data-custom-colors="true"] ._backButton_fq9j7_128 {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._actionKey_fq9j7_161 {
  background: color-mix(in srgb, var(--app-custom-bg) 18%, transparent) !important;
  border-color:
    color-mix(in srgb, var(--app-custom-bg) 34%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 20%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 50%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 20%, transparent) !important;
  color: var(--app-custom-bg) !important;
}

@media (max-width: 760px) {
  ._topbar_fq9j7_90,
  ._landing_fq9j7_180 {
    grid-template-columns: 1fr;
  }

  ._titleBlock_fq9j7_97 {
    order: -1;
    justify-items: start;
  }

  ._statusPill_fq9j7_106 {
    justify-self: start;
  }

  ._panel_fq9j7_116 {
    border-top: 4px solid rgba(18, 50, 58, 0.14);
    border-left: 0;
  }

  ._hud_fq9j7_960 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  ._previewBubble_fq9j7_224,
  ._bubble_fq9j7_517,
  ._arenaError_fq9j7_504,
  ._pop_fq9j7_580 {
    animation-duration: 1ms;
  }
}
._shell_1vd96_1 {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 10px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: min(70vh, 720px);
}

/* ── Landing ──────────────────────────────────────────────────────────────── */

._landing_1vd96_13 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 0;
  padding: 18px 18px 20px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(242, 183, 5, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(131, 192, 146, 0.11), transparent 34%),
    #292d2f;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  text-align: center;
  overflow: hidden;
}

._landingContent_1vd96_33 {
  width: min(620px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 32px;
}

._landing_1vd96_13 > ._backBtn_1vd96_42 {
  position: absolute;
  top: 14px;
  left: 14px;
}

._gameIcon_1vd96_48 {
  display: inline-flex;
  color: #f2b705;
  filter: drop-shadow(0 4px 16px rgba(242, 183, 5, 0.35));
}

._gameIcon_1vd96_48 svg {
  width: 42px;
  height: 42px;
}

._title_1vd96_59 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  font-weight: 900;
  color: #f2b705;
  letter-spacing: 0;
  line-height: 1;
}

._desc_1vd96_68 {
  margin: 0;
  font-size: 0.95rem;
  color: #8b8f92;
  max-width: 520px;
  line-height: 1.45;
}

._langPanel_1vd96_76 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

._langBtn_1vd96_83 {
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(31, 34, 36, 0.58);
  color: #8b8f92;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

._langBtn_1vd96_83:hover:not(._langBtnActive_1vd96_102) {
  background: rgba(255, 255, 255, 0.06);
  color: #d3d0c8;
}

._langBtnActive_1vd96_102 {
  border-color: #f2b705;
  background: rgba(242, 183, 5, 0.14);
  color: #f2b705;
}

._timePanel_1vd96_113 {
  width: 100%;
  display: grid;
  gap: 8px;
}

._soundPanel_1vd96_119 {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

._settingLabel_1vd96_127 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b8f92;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

._settingCycleHint_1vd96_140 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  color: #555a5d;
  text-transform: none;
  letter-spacing: 0;
}

/* Arrow key indicator — uses system-ui so ← → always render correctly */
._arrowKeyHint_1vd96_153 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px 1px;
  min-width: 20px;
  border-radius: 4px;
  border-width: 1px 1px 2px 1px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.16) rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.26) rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  color: #9b9fa2;
  user-select: none;
}

._timeBtnArrow_1vd96_172 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.55;
  line-height: 1;
}

._timeBtnActive_1vd96_180 ._timeBtnArrow_1vd96_172 {
  opacity: 0.9;
}

._timeRow_1vd96_184 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

._timeBtn_1vd96_172 {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(31, 34, 36, 0.58);
  color: #8b8f92;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.12s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

._timeBtn_1vd96_172:hover:not(._timeBtnActive_1vd96_180) {
  background: rgba(255, 255, 255, 0.06);
  color: #d3d0c8;
  transform: translateY(-1px);
}

._timeBtnActive_1vd96_180 {
  border-color: #f2b705;
  background: #f2b705;
  color: #1f2224;
}

._soundToggle_1vd96_220 {
  min-width: 94px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(31, 34, 36, 0.58);
  color: #8b8f92;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.12s;
}

._soundToggle_1vd96_220:hover {
  transform: translateY(-1px);
}

._soundToggleActive_1vd96_241 {
  border-color: #f2b705;
  background: rgba(242, 183, 5, 0.14);
  color: #f2b705;
}

._startBtn_1vd96_247 {
  margin-top: 0;
  min-width: 160px;
  font-size: 1.05rem;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

._header_1vd96_255 {
  display: flex;
  align-items: center;
  gap: 14px;
}

._arenaHud_1vd96_261 {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

._backBtn_1vd96_42 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #8b8f92;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}

._backBtn_1vd96_42:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d3d0c8;
}


._progress_1vd96_294 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

._progress_1vd96_294 span {
  font-size: 0.78rem;
  font-weight: 800;
  color: #8b8f92;
}

._progressBar_1vd96_307 {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

._progressFill_1vd96_314 {
  height: 100%;
  background: #f2b705;
  border-radius: 999px;
  transition: width 0.4s ease;
}

._hearts_1vd96_321 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

._heartFull_1vd96_329 {
  color: #ca4754;
}

._heartEmpty_1vd96_333 {
  color: #555a5d;
  opacity: 0.45;
}

/* ── Word stage ───────────────────────────────────────────────────────────── */

._wordStage_1vd96_340 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 520px;
  padding: 78px 24px 28px;
  border: 1px solid rgba(242, 183, 5, 0.15);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 8%, rgba(242, 183, 5, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%),
    #292d2f;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  outline: none;
}

._wordStage_1vd96_340:focus-within {
  border-color: rgba(242, 183, 5, 0.32);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(242, 183, 5, 0.18);
}

._hiddenInput_1vd96_366 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
}

._heartBreakLayer_1vd96_381 {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}

._heartBreakBurst_1vd96_390 {
  position: absolute;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  color: #ff6675;
  filter: drop-shadow(0 0 24px rgba(255, 102, 117, 0.78));
  animation: _heartBreakPop_1vd96_1 0.92s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

._heartBreakRing_1vd96_401 {
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(255, 102, 117, 0.6);
  border-radius: 999px;
  animation: _heartBreakRing_1vd96_401 0.82s ease-out forwards;
}

._heartBreakGhost_1vd96_409 {
  position: absolute;
  opacity: 0.28;
  animation: _heartGhostFade_1vd96_1 0.92s ease-out forwards;
}

._heartPiece_1vd96_415 {
  position: absolute;
  transform-origin: center;
  filter: drop-shadow(0 0 14px rgba(255, 102, 117, 0.65));
}

._heartPieceLeft_1vd96_421 {
  clip-path: polygon(0 0, 48% 0, 48% 36%, 38% 47%, 50% 58%, 40% 100%, 0 100%);
  animation: _heartPieceLeft_1vd96_421 0.92s ease-out forwards;
}

._heartPieceRight_1vd96_426 {
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%, 59% 60%, 47% 49%, 58% 37%);
  animation: _heartPieceRight_1vd96_426 0.92s ease-out forwards;
}

._heartPieceSmall_1vd96_431 {
  opacity: 0;
  clip-path: polygon(0 8%, 100% 0, 82% 100%, 15% 78%);
  animation: _heartPieceSmall_1vd96_431 0.92s ease-out forwards;
}

@keyframes _heartBreakPop_1vd96_1 {
  0% {
    opacity: 0;
    transform: scale(0.38) rotate(-8deg);
  }
  22% {
    opacity: 1;
    transform: scale(1.16) rotate(5deg);
  }
  48% {
    opacity: 1;
    transform: scale(0.94) rotate(-3deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.32) translateY(-32px) rotate(10deg);
  }
}

@keyframes _heartBreakRing_1vd96_401 {
  0% {
    opacity: 0;
    transform: scale(0.25);
  }
  36% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes _heartGhostFade_1vd96_1 {
  0%, 24% { opacity: 0.35; transform: scale(0.86); }
  100% { opacity: 0; transform: scale(1.4); }
}

@keyframes _heartPieceLeft_1vd96_421 {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.4); }
  18% { opacity: 1; transform: translate(0, 0) rotate(-4deg) scale(1.08); }
  100% { opacity: 0; transform: translate(-84px, -46px) rotate(-34deg) scale(0.92); }
}

@keyframes _heartPieceRight_1vd96_426 {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.4); }
  18% { opacity: 1; transform: translate(0, 0) rotate(4deg) scale(1.08); }
  100% { opacity: 0; transform: translate(84px, -36px) rotate(32deg) scale(0.92); }
}

@keyframes _heartPieceSmall_1vd96_431 {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.2); }
  22% { opacity: 0.9; transform: translate(0, 0) rotate(14deg) scale(0.72); }
  100% { opacity: 0; transform: translate(12px, 78px) rotate(88deg) scale(0.8); }
}

._timerBar_1vd96_493 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
}

._timerFill_1vd96_502 {
  height: 100%;
  border-radius: 0 999px 999px 0;
}

._stageTopline_1vd96_507 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #555a5d;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

._wordDisplay_1vd96_519 {
  position: relative;
  width: 100%;
  min-height: 5.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: #d3d0c8;
  letter-spacing: 0;
  text-align: center;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  line-height: 1.35;
  transition: color 0.15s, background 0.15s, transform 0.15s;
  overflow-wrap: anywhere;
}

._wordDisplayReward_1vd96_541 {
  border: 1px solid rgba(131, 192, 146, 0.34);
  background:
    linear-gradient(180deg, rgba(131, 192, 146, 0.13), rgba(255, 255, 255, 0.025));
}

._heartWordBadge_1vd96_547 {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(131, 192, 146, 0.16);
  color: #83c092;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

._wordChar_1vd96_564 {
  display: inline-block;
  min-width: 0.55em;
  padding: 0 0.015em;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s, transform 0.12s;
}

._wordChar_1vd96_564 ruby {
  ruby-align: center;
}

._wordChar_1vd96_564 rt {
  font-size: 0.34em;
  font-weight: 900;
  line-height: 1;
  opacity: 0.78;
}

._wordCharTyped_1vd96_583 {
  color: #83c092;
}

._wordCharWrong_1vd96_587 {
  color: #ff6675;
  background: rgba(202, 71, 84, 0.16);
}

._wordCharNext_1vd96_592 {
  color: #f2b705;
  background: rgba(242, 183, 5, 0.12);
  animation: _pulseNext_1vd96_1 0.9s ease-in-out infinite;
}

@keyframes _pulseNext_1vd96_1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

._wordCorrect_1vd96_603 {
  color: #83c092;
}

._wordWrong_1vd96_607 {
  color: #ca4754;
}

._shakeWrap_1vd96_611 {
  animation: _shake_1vd96_611 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes _shake_1vd96_611 {
  10%, 90%  { transform: translateX(-3px); }
  20%, 80%  { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60%  { transform: translateX(5px); }
}

._matchPanel_1vd96_622 {
  width: min(420px, 100%);
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(31, 34, 36, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}

._matchTrack_1vd96_633 {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

._matchFill_1vd96_640 {
  height: 100%;
  border-radius: 999px;
  background: #f2b705;
  transition: width 0.12s ease, background 0.12s ease;
}

._matchPanel_1vd96_622 span {
  color: #8b8f92;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

._matchClose_1vd96_657 {
  border-color: rgba(131, 192, 146, 0.32);
}

._matchClose_1vd96_657 ._matchFill_1vd96_640,
._matchCorrect_1vd96_662 ._matchFill_1vd96_640 {
  background: #83c092;
}

._matchWrong_1vd96_666 {
  border-color: rgba(202, 71, 84, 0.45);
  background: rgba(202, 71, 84, 0.08);
}

._matchWrong_1vd96_666 ._matchFill_1vd96_640 {
  background: #ca4754;
}

._matchCorrect_1vd96_662 {
  border-color: rgba(131, 192, 146, 0.55);
  background: rgba(131, 192, 146, 0.11);
}

._stageHint_1vd96_680 {
  min-height: 1.2rem;
  color: #555a5d;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

._stageHintCorrect_1vd96_688 {
  color: #83c092;
}

._stageHintWrong_1vd96_692 {
  color: #ca4754;
}

/* ── Complete ─────────────────────────────────────────────────────────────── */

._complete_1vd96_698 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

._completeCard_1vd96_707 {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 24px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(242, 183, 5, 0.13), transparent 38%),
    linear-gradient(315deg, rgba(131, 192, 146, 0.1), transparent 36%),
    #292d2f;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

._resultPaper_1vd96_723 {
  color: #272b2d;
  background:
    linear-gradient(135deg, rgba(242, 183, 5, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(42, 166, 161, 0.12), transparent 34%),
    #f7f1df;
  border-color: rgba(138, 160, 0, 0.24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

._completeCard_perfect_1vd96_733 {
  border-color: rgba(131, 192, 146, 0.45);
}

._completeCard_great_1vd96_737 {
  border-color: rgba(242, 183, 5, 0.36);
}

._completeCard_steady_1vd96_741 {
  border-color: rgba(224, 125, 16, 0.34);
}

._completeCard_warmup_1vd96_745 {
  border-color: rgba(202, 71, 84, 0.28);
}

._completeIcon_1vd96_749 {
  display: inline-flex;
  color: #f2b705;
  filter: drop-shadow(0 4px 16px rgba(242, 183, 5, 0.3));
}

._resultKicker_1vd96_755 {
  color: #83c092;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

._complete_1vd96_698 h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #f2b705;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
}

._complete_1vd96_698 p {
  color: #6f6b61;
  font-size: 1rem;
  line-height: 1.6;
}

._scoreSummary_1vd96_776 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  gap: 8px;
}

._scoreItem_1vd96_783 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(39, 43, 45, 0.08);
}

._scoreItemAccent_1vd96_795 {
  border-color: rgba(131, 192, 146, 0.4);
  background: rgba(131, 192, 146, 0.1);
}

._scoreNum_1vd96_800 {
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  font-weight: 900;
  color: #f2b705;
  line-height: 1;
  white-space: nowrap;
}

._scoreLabel_1vd96_808 {
  font-size: 0.72rem;
  font-weight: 800;
  color: #6f6b61;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

._completeBtns_1vd96_817 {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* ── Light theme ──────────────────────────────────────────────────────────── */

body[data-theme="light"] ._wordStage_1vd96_340 {
  background:
    radial-gradient(circle at 50% 8%, rgba(201, 155, 0, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 48%),
    #f0ece2;
  border-color: rgba(201, 155, 0, 0.22);
}

body[data-theme="light"] ._landing_1vd96_13,
body[data-theme="light"] ._completeCard_1vd96_707 {
  background:
    linear-gradient(135deg, rgba(201, 155, 0, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(91, 151, 111, 0.11), transparent 34%),
    #f0ece2;
  border-color: rgba(201, 155, 0, 0.22);
}

body[data-theme="light"] ._wordDisplay_1vd96_519 {
  color: #272b2d;
  background: rgba(0, 0, 0, 0.035);
}

body[data-theme="light"] ._langBtn_1vd96_83,
body[data-theme="light"] ._timeBtn_1vd96_172,
body[data-theme="light"] ._soundToggle_1vd96_220,
body[data-theme="light"] ._matchPanel_1vd96_622,
body[data-theme="light"] ._scoreItem_1vd96_783 {
  background: rgba(232, 228, 218, 0.76);
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] ._timeBtnActive_1vd96_180,
body[data-theme="light"] ._soundToggleActive_1vd96_241 {
  border-color: #c99b00;
  background: #c99b00;
  color: #f8f4e9;
}

body[data-theme="light"] ._backBtn_1vd96_42 {
  background: rgba(0, 0, 0, 0.06);
  color: #76736d;
}

/* ── Custom appearance colors ─────────────────────────────────────────────── */

body[data-custom-colors="true"] ._landing_1vd96_13,
body[data-custom-colors="true"] ._wordStage_1vd96_340,
body[data-custom-colors="true"] ._completeCard_1vd96_707 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--app-custom-accent) 12%, transparent), transparent 36%),
    linear-gradient(315deg, color-mix(in srgb, var(--app-custom-text) 8%, transparent), transparent 34%),
    color-mix(in srgb, var(--app-custom-text) 9%, var(--app-custom-bg));
}

body[data-custom-colors="true"] ._title_1vd96_59,
body[data-custom-colors="true"] ._gameIcon_1vd96_48,
body[data-custom-colors="true"] ._completeIcon_1vd96_749,
body[data-custom-colors="true"] ._scoreNum_1vd96_800,
body[data-custom-colors="true"] ._wordCharNext_1vd96_592,
body[data-custom-colors="true"] ._stageHintCorrect_1vd96_688 {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._desc_1vd96_68,
body[data-custom-colors="true"] ._progress_1vd96_294 span,
body[data-custom-colors="true"] ._stageTopline_1vd96_507,
body[data-custom-colors="true"] ._stageHint_1vd96_680,
body[data-custom-colors="true"] ._complete_1vd96_698 p,
body[data-custom-colors="true"] ._scoreLabel_1vd96_808,
body[data-custom-colors="true"] ._matchPanel_1vd96_622 span,
body[data-custom-colors="true"] ._settingLabel_1vd96_127,
body[data-custom-colors="true"] ._langText_1vd96_897 span,
body[data-custom-colors="true"] ._soundToggle_1vd96_220 {
  color: color-mix(in srgb, var(--app-custom-text) 62%, transparent);
}

body[data-custom-colors="true"] ._wordDisplay_1vd96_519,
body[data-custom-colors="true"] ._langText_1vd96_897 strong,
body[data-custom-colors="true"] ._complete_1vd96_698 h2 {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._langBtn_1vd96_83,
body[data-custom-colors="true"] ._timeBtn_1vd96_172,
body[data-custom-colors="true"] ._soundToggle_1vd96_220,
body[data-custom-colors="true"] ._matchPanel_1vd96_622,
body[data-custom-colors="true"] ._scoreItem_1vd96_783 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 18%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 7%, var(--app-custom-bg));
}

body[data-custom-colors="true"] ._langBtnActive_1vd96_102,
body[data-custom-colors="true"] ._timeBtnActive_1vd96_180,
body[data-custom-colors="true"] ._soundToggleActive_1vd96_241,
body[data-custom-colors="true"] ._matchClose_1vd96_657,
body[data-custom-colors="true"] ._matchCorrect_1vd96_662 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 52%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
}

body[data-custom-colors="true"] ._langBtnActive_1vd96_102 ._langMark_1vd96_926,
body[data-custom-colors="true"] ._progressFill_1vd96_314,
body[data-custom-colors="true"] ._matchFill_1vd96_640,
body[data-custom-colors="true"] ._matchClose_1vd96_657 ._matchFill_1vd96_640,
body[data-custom-colors="true"] ._matchCorrect_1vd96_662 ._matchFill_1vd96_640,
body[data-custom-colors="true"] ._timeBtnActive_1vd96_180,
body[data-custom-colors="true"] ._soundToggleActive_1vd96_241 {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] ._langMark_1vd96_926,
body[data-custom-colors="true"] ._backBtn_1vd96_42 {
  background: color-mix(in srgb, var(--app-custom-text) 10%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] ._wordDisplay_1vd96_519 {
  background: color-mix(in srgb, var(--app-custom-text) 8%, transparent);
}

body[data-custom-colors="true"] ._wordCharTyped_1vd96_583,
body[data-custom-colors="true"] ._resultKicker_1vd96_755 {
  color: color-mix(in srgb, var(--app-custom-accent) 72%, var(--app-custom-text));
}

body[data-custom-colors="true"] ._wordCharNext_1vd96_592 {
  background: color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}

@media (max-width: 560px) {
  ._shell_1vd96_1 {
    padding-inline: 0;
  }

  ._langPanel_1vd96_76 {
    grid-template-columns: 1fr;
  }

  ._timeRow_1vd96_184 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  ._soundPanel_1vd96_119 {
    grid-template-columns: 1fr;
    text-align: left;
  }

  ._soundToggle_1vd96_220 {
    width: 100%;
  }

  ._stageTopline_1vd96_507 {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  ._wordDisplay_1vd96_519 {
    min-height: 4.6rem;
  }

  ._scoreSummary_1vd96_776 {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  ._scoreItem_1vd96_783,
  ._completeBtns_1vd96_817 {
    width: 100%;
  }

  ._completeBtns_1vd96_817 {
    flex-direction: column;
  }
}
._shell_1acgz_1 {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 70vh;
}

/* ══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════════════════ */

._landing_1acgz_15 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  /* Enough top padding so back-btn doesn't overlap icon */
  padding: 52px 24px 32px;
  text-align: center;
  min-height: 80vh;
}

/* Back button */
._landingBackBtn_1acgz_28 {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #8b8f92;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
._landingBackBtn_1acgz_28:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #d3d0c8;
}

/* Hero icon */
._heroIconWrap_1acgz_51 {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

._heroIconRing_1acgz_61 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(242, 183, 5, 0.6),
    rgba(255, 120, 0, 0.3),
    rgba(242, 183, 5, 0.6)
  );
  animation: _ringRotate_1acgz_1 4s linear infinite;
  mask: radial-gradient(circle, transparent 44%, black 45%);
  -webkit-mask: radial-gradient(circle, transparent 44%, black 45%);
}

@keyframes _ringRotate_1acgz_1 {
  to { transform: rotate(360deg); }
}

._heroIcon_1acgz_51 {
  color: #f2b705;
  filter: drop-shadow(0 0 18px rgba(242, 183, 5, 0.5));
  animation: _iconFloat_1acgz_1 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes _iconFloat_1acgz_1 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* Hero text */
._heroText_1acgz_94 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* Give Khmer glyphs room to descend/ascend without clipping */
  overflow: visible;
}

._title_1acgz_103 {
  /* Extra vertical padding so Khmer vowels/diacritics are never cut */
  padding: 6px 4px 8px;
  margin: 0;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.4;            /* Khmer needs more line-height than Latin */
  background: linear-gradient(135deg, #f2b705 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  overflow: visible;
}

._desc_1acgz_119 {
  font-size: 0.95rem;
  color: #8b8f92;
  max-width: 380px;
  line-height: 1.7;
  margin: 0;
}

/* Language section */
._langSection_1acgz_128 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

._langLabel_1acgz_136 {
  font-size: 0.7rem;
  font-weight: 800;
  color: #555a5d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

._langCards_1acgz_145 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 480px;
}

._langCard_1acgz_145 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  min-height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #8b8f92;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

._langCard_1acgz_145:hover:not(._langCardActive_1acgz_172) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d3d0c8;
}

._langCardActive_1acgz_172 {
  border-color: #f2b705;
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.2);
}

._langCardSub_1acgz_185 {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.7;
}

._langCardCheck_1acgz_191 {
  flex-shrink: 0;
  color: #f2b705;
  animation: _checkPop_1acgz_1 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes _checkPop_1acgz_1 {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Feature pills */
._featurePills_1acgz_203 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

._pill_1acgz_210 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.2);
  background: rgba(242, 183, 5, 0.06);
  color: #c99b0a;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Start button */
._startBtn_1acgz_224 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: center;
  font-size: 1.02rem;
  padding: 13px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(242, 183, 5, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
._startBtn_1acgz_224:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(242, 183, 5, 0.4);
}

/* ══════════════════════════════════════════════════════════════════════════
   PLAYING PHASE — CANVAS CARD
══════════════════════════════════════════════════════════════════════════ */

._backBtn_1acgz_245 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #8b8f92;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
._backBtn_1acgz_245:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d3d0c8;
}

._canvasHeader_1acgz_265 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

._progress_1acgz_273 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

._progressMeta_1acgz_280 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

._progressText_1acgz_286 {
  font-size: 0.75rem;
  font-weight: 800;
  color: #8b8f92;
}

._progressBar_1acgz_292 {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

._progressFill_1acgz_299 {
  height: 100%;
  background: linear-gradient(90deg, #f2b705, #ff8c00);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

._scoreBox_1acgz_306 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(131, 192, 146, 0.12);
  border: 1px solid rgba(131, 192, 146, 0.28);
  color: #83c092;
  font-size: 0.8rem;
  font-weight: 900;
}

._riddleCard_1acgz_319 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 20px;
  background: #292d2f;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.32);
  cursor: text;
  transition: box-shadow 0.2s;
}

._riddleCard_1acgz_319:focus-within {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.32), 0 0 0 2px rgba(242, 183, 5, 0.22);
}

._riddleCardShake_1acgz_337 {
  animation: _cardShake_1acgz_1 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
._riddleCardCorrect_1acgz_340 {
  animation: _cardCorrect_1acgz_1 0.6s ease;
}

@keyframes _cardShake_1acgz_1 {
  10%, 90%  { transform: translateX(-3px); }
  20%, 80%  { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60%  { transform: translateX(5px); }
}

@keyframes _cardCorrect_1acgz_1 {
  0%   { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28); }
  40%  { box-shadow: 0 0 0 4px rgba(131, 192, 146, 0.45), 0 8px 40px rgba(131, 192, 146, 0.2); }
  100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28); }
}

._riddleLabel_1acgz_357 {
  color: #f2b705;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

._riddleText_1acgz_365 {
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: 1.32rem;
  line-height: 1.9;
  color: #d3d0c8;
  font-weight: 500;
  flex: 1;
  /* Prevent Khmer diacritics from being clipped */
  overflow: visible;
  padding: 2px 0 4px;
}

/* ── Answer input ─────────────────────────────────────────────────────── */

._answerForm_1acgz_379 {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

._answerInput_1acgz_386 {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(242, 183, 5, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #d3d0c8;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
}

._answerInput_1acgz_386::placeholder { color: rgba(211, 208, 200, 0.3); }
._answerInput_1acgz_386:focus {
  border-color: #f2b705;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.14);
}
._answerInputWrong_1acgz_408 {
  border-color: rgba(202, 71, 84, 0.72) !important;
  background: rgba(202, 71, 84, 0.08) !important;
}
._answerInputCorrect_1acgz_412 {
  border-color: rgba(131, 192, 146, 0.62) !important;
  background: rgba(131, 192, 146, 0.1) !important;
  color: #aad4b4;
}
._answerInputRevealed_1acgz_417 {
  border-color: rgba(131, 192, 146, 0.4) !important;
  background: rgba(131, 192, 146, 0.07) !important;
  color: #8bc49a;
}
._answerInput_1acgz_386:disabled { opacity: 0.9; }

._checkBtn_1acgz_424 {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #f2b705;
  color: #1e2123;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s, filter 0.12s;
}
._checkBtn_1acgz_424:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
._checkBtn_1acgz_424:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Feedback / hint ──────────────────────────────────────────────────── */

._typingHint_1acgz_445 {
  font-size: 0.76rem;
  font-weight: 700;
  color: #555a5d;
  text-align: center;
  letter-spacing: 0.03em;
  min-height: 1.1em;
}

._feedback_1acgz_454 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 12px;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  animation: _feedbackPop_1acgz_1 180ms ease both;
}
._feedbackIcon_1acgz_469 { flex-shrink: 0; font-size: 1.1rem; line-height: 1; }
._feedbackCorrect_1acgz_470 { border: 1px solid rgba(131, 192, 146, 0.34); background: rgba(131, 192, 146, 0.12); color: #aad4b4; }
._feedbackWrong_1acgz_471   { border: 1px solid rgba(202, 71, 84, 0.34);  background: rgba(202, 71, 84, 0.1);  color: #e5939c; }
._feedbackWarning_1acgz_472 { border: 1px solid rgba(242, 183, 5, 0.34);  background: rgba(242, 183, 5, 0.12); color: #f2b705; }

@keyframes _feedbackPop_1acgz_1 {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Canvas footer (Skip / Reveal) ───────────────────────────────────── */

._canvasFooter_1acgz_481 {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

._skipBtn_1acgz_490 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: transparent;
  color: #8b8f92;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
._skipBtn_1acgz_490:hover:not(:disabled) { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #d3d0c8; }
._skipBtn_1acgz_490:disabled { opacity: 0.32; cursor: not-allowed; }

._revealBtn_1acgz_507 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(131, 192, 146, 0.2);
  border-radius: 10px;
  background: rgba(131, 192, 146, 0.06);
  color: #7ab88a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
._revealBtn_1acgz_507:hover { background: rgba(131,192,146,0.12); border-color: rgba(131,192,146,0.3); color: #aad4b4; }

/* ══════════════════════════════════════════════════════════════════════════
   COMPLETE PAGE
══════════════════════════════════════════════════════════════════════════ */

/* Landing hero block (inside riddleCard now) */
._landingHero_1acgz_528 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0 4px;
  text-align: center;
}

/* Complete page body */
._completeBody_1acgz_538 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 0 8px;
  text-align: center;
  flex: 1;
}

._completeIconWrap_1acgz_548 {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 18px currentColor);
  animation: _iconFloat_1acgz_1 3s ease-in-out infinite;
}

._completeTitle_1acgz_556 {
  font-size: 2rem;
  font-weight: 900;
  color: #f2b705;
  font-family: "Noto Sans Khmer", "Inter", sans-serif;
  margin: 0;
  padding: 4px 0 2px;
}

._completeDesc_1acgz_565 {
  color: #8b8f92;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

._complete_1acgz_538 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 65vh;
  text-align: center;
}

._completeIcon_1acgz_548 {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 18px rgba(242, 183, 5, 0.35));
  animation: _iconFloat_1acgz_1 3s ease-in-out infinite;
}

._complete_1acgz_538 h2 { font-size: 2rem; font-weight: 900; color: #f2b705; font-family: "Noto Sans Khmer", "Inter", sans-serif; }
._complete_1acgz_538 p  { color: #8b8f92; font-size: 1rem; line-height: 1.6; }

._scoreSummary_1acgz_592 { display: flex; gap: 14px; }

._scoreItem_1acgz_594 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  border-radius: 14px;
  background: #292d2f;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
._scoreNum_1acgz_604   { font-size: 2rem; font-weight: 900; color: #f2b705; line-height: 1; }
._scoreLabel_1acgz_605 { font-size: 0.7rem; font-weight: 800; color: #8b8f92; text-transform: uppercase; letter-spacing: 0.06em; }
._completeBtns_1acgz_606 { display: flex; gap: 10px; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT THEME
══════════════════════════════════════════════════════════════════════════ */

body[data-theme="light"] ._landingBackBtn_1acgz_28 {
  background: rgba(0,0,0,0.05); color: #76736d; border-color: rgba(0,0,0,0.08);
}
body[data-theme="light"] ._landingBackBtn_1acgz_28:hover {
  background: rgba(0,0,0,0.09); color: #272b2d;
}
body[data-theme="light"] ._langCard_1acgz_145 {
  border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.02); color: #76736d;
}
body[data-theme="light"] ._langCard_1acgz_145:hover:not(._langCardActive_1acgz_172) {
  background: rgba(0,0,0,0.05); color: #272b2d;
}
body[data-theme="light"] ._langCardActive_1acgz_172 {
  color: #8a6500; background: rgba(242,183,5,0.08);
}
body[data-theme="light"] ._riddleCard_1acgz_319 {
  background: #f0ece2; border-color: rgba(201,155,0,0.22);
}
body[data-theme="light"] ._riddleText_1acgz_365 { color: #272b2d; }
body[data-theme="light"] ._answerInput_1acgz_386 {
  background: rgba(0,0,0,0.05); border-color: rgba(201,155,0,0.28); color: #272b2d;
}
body[data-theme="light"] ._answerInput_1acgz_386::placeholder { color: rgba(39,43,45,0.38); }
body[data-theme="light"] ._answerInputCorrect_1acgz_412 { background: rgba(60,150,80,0.1) !important; border-color: rgba(60,150,80,0.35) !important; color: #2e7d3e; }
body[data-theme="light"] ._answerInputWrong_1acgz_408   { background: rgba(202,71,84,0.08) !important; border-color: rgba(202,71,84,0.5) !important; }
body[data-theme="light"] ._feedbackCorrect_1acgz_470 { background: rgba(60,150,80,0.12); border-color: rgba(60,150,80,0.28); color: #2e7d3e; }
body[data-theme="light"] ._feedbackWrong_1acgz_471   { background: rgba(202,71,84,0.1);  border-color: rgba(202,71,84,0.28); color: #a93844; }
body[data-theme="light"] ._feedbackWarning_1acgz_472 { background: rgba(201,155,0,0.12); border-color: rgba(201,155,0,0.3);  color: #8a6500; }
body[data-theme="light"] ._scoreItem_1acgz_594 { background: #e8e4da; }
body[data-theme="light"] ._backBtn_1acgz_245 { background: rgba(0,0,0,0.06); color: #76736d; }
body[data-theme="light"] ._backBtn_1acgz_245:hover { background: rgba(0,0,0,0.1); color: #272b2d; }
body[data-theme="light"] ._canvasHeader_1acgz_265 { border-bottom-color: rgba(0,0,0,0.08); }
body[data-theme="light"] ._canvasFooter_1acgz_481 { border-top-color: rgba(0,0,0,0.08); }
body[data-theme="light"] ._skipBtn_1acgz_490   { border-color: rgba(0,0,0,0.1); color: #76736d; }
body[data-theme="light"] ._skipBtn_1acgz_490:hover:not(:disabled) { background: rgba(0,0,0,0.05); color: #272b2d; }
body[data-theme="light"] ._revealBtn_1acgz_507 { border-color: rgba(60,140,80,0.25); background: rgba(60,140,80,0.06); color: #2e7d3e; }
body[data-theme="light"] ._revealBtn_1acgz_507:hover { background: rgba(60,140,80,0.12); }

/* ══════════════════════════════════════════════════════════════════════════
   KEYBOARD MISMATCH TOAST
══════════════════════════════════════════════════════════════════════════ */

._mismatchBackdrop_1acgz_654 { position: fixed; inset: 0; z-index: 80; pointer-events: all; }

._mismatchToast_1acgz_656 {
  position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 81;
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
  min-width: 280px; max-width: 480px;
  border: 1px solid rgba(255,168,0,0.38); border-radius: 12px; background: #fff9ed; color: #8a5500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(200,120,0,0.12);
  pointer-events: all; font-size: 0.82rem;
  animation: _mismatchIn_1acgz_1 220ms cubic-bezier(0.22,1,0.36,1);
}
._mismatchBody_1acgz_665 { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
._mismatchBody_1acgz_665 strong { font-size: 0.84rem; font-weight: 800; }
._mismatchBody_1acgz_665 span   { font-size: 0.78rem; font-weight: 600; opacity: 0.8; }
._mismatchClose_1acgz_668 {
  flex-shrink: 0; width: 22px; height: 22px; display: inline-grid; place-items: center;
  border: 0; border-radius: 6px; background: rgba(0,0,0,0.06); color: inherit;
  font-size: 1rem; font-weight: 700; cursor: pointer; opacity: 0.7; transition: opacity 0.12s;
}
._mismatchClose_1acgz_668:hover { opacity: 1; }

@keyframes _mismatchIn_1acgz_1 {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
._board_3nso9_1 {
  width: min(1180px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0 24px;
}

/* ── Header row ── */

._heading_3nso9_11 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

._headingText_3nso9_18 {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

._eyebrow_3nso9_24 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #2aa6a1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

._title_3nso9_35 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #d7d2c8;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ── Navigation carousel ── */

._carouselShell_3nso9_46 {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
}

._sideNav_3nso9_53 {
  width: 62px;
  height: 84px;
  display: grid;
  place-items: center;
  gap: 7px;
  align-content: center;
  justify-self: center;
  border: 1px solid rgba(242, 183, 5, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(242, 183, 5, 0.12), rgba(42, 166, 161, 0.08)),
    #25282a;
  color: #f2b705;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.16s, box-shadow 0.16s, opacity 0.16s, transform 0.16s;
}

._sideNavPrev_3nso9_74 {
  justify-self: end;
}

._sideNavNext_3nso9_78 {
  justify-self: start;
}

._sideNav_3nso9_53:hover:not(:disabled) {
  border-color: rgba(242, 183, 5, 0.48);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

._sideNav_3nso9_53:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

._sideNavPrev_3nso9_74 svg {
  animation: _pointLeft_3nso9_1 1.05s ease-in-out infinite;
}

._sideNavNext_3nso9_78 svg {
  animation: _pointRight_3nso9_1 1.05s ease-in-out infinite;
}

._sideNav_3nso9_53:disabled svg {
  animation: none;
}

._sideKey_3nso9_108 {
  min-width: 34px !important;
  min-height: 28px;
  font-size: 0.9rem !important;
  border-radius: 7px !important;
  box-shadow:
    0 3px 0 rgba(91, 67, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

._pageSlider_3nso9_118 {
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -2px auto 0;
  padding: 6px 7px 6px 11px;
  border: 1px solid rgba(201, 155, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

._pageBubble_3nso9_132 {
  min-width: 46px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.16);
  color: #d7d2c8;
  box-shadow: inset 0 0 0 1px rgba(242, 183, 5, 0.24);
  line-height: 1;
}

._pageBubble_3nso9_132 strong {
  color: #f2b705;
  font-size: 0.9rem;
  font-weight: 900;
}

._pageBubble_3nso9_132 span {
  margin-top: 1px;
  color: #8b8f92;
  font-size: 0.66rem;
  font-weight: 850;
}

._pageDots_3nso9_161 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

._pageDot_3nso9_161 {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(139, 143, 146, 0.46);
  cursor: pointer;
  transition: width 0.16s, background 0.16s;
}

._pageDotActive_3nso9_182 {
  width: 22px;
  background: #f2b705;
}

@keyframes _pointLeft_3nso9_1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

@keyframes _pointRight_3nso9_1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ── 3-column card grid ── */

._grid_3nso9_199 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ── Game card ── */

._card_3nso9_207 {
  display: grid;
  grid-template-rows: 110px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 12px;
  background: #292d2f;
  color: #d7d2c8;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

._card_3nso9_207:hover {
  border-color: rgba(242, 183, 5, 0.28);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

._cardHasPreview_3nso9_224 {
  grid-template-rows: 164px minmax(0, 1fr);
}

._cardDisabled_3nso9_228,
._cardComingSoon_3nso9_229 {
  opacity: 0.55;
}

._cardDisabled_3nso9_228:hover,
._cardComingSoon_3nso9_229:hover {
  transform: none;
  box-shadow: none;
}

/* Art area */
._cardArt_3nso9_240 {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(42, 166, 161, 0.15), rgba(242, 183, 5, 0.1)),
    #25282a;
}

._cardNumBadge_3nso9_248 {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

._cardPreviewGif_3nso9_255 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

._cardHasPreview_3nso9_224:hover ._cardPreviewGif_3nso9_255 {
  transform: scale(1.04);
}

._heroDot_3nso9_267 {
  position: absolute;
  left: 34px;
  bottom: 22px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f2b705;
  box-shadow: 0 0 0 8px rgba(242, 183, 5, 0.1);
}

._wordThreat_3nso9_278 {
  position: absolute;
  right: 42px;
  top: 22px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(202, 71, 84, 0.34);
  border-radius: 8px;
  background: rgba(202, 71, 84, 0.16);
  color: #ff9aaa;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 850;
}

._wordThreatAlt_3nso9_294 {
  top: 62px;
  right: 120px;
  color: #7ed7d1;
  border-color: rgba(42, 166, 161, 0.34);
  background: rgba(42, 166, 161, 0.16);
}

/* Card body */
._cardBody_3nso9_303 {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
}

._cardKicker_3nso9_310 {
  font-size: 0.7rem;
  font-weight: 800;
  color: #2aa6a1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

._cardTitle_3nso9_318 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  color: #d7d2c8;
  line-height: 1.2;
}

._cardDesc_3nso9_326 {
  margin: 0;
  color: #8b8f92;
  font-size: 0.86rem;
  line-height: 1.45;
}

._playBtn_3nso9_333 {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  background: #f2b705;
  color: #25282a;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
  align-self: start;
}

._playBtn_3nso9_333:hover:not(:disabled) {
  background: #dba604;
  transform: translateY(-1px);
}

._playKey_3nso9_356 {
  background: rgba(37, 40, 42, 0.18) !important;
  border-color: rgba(37, 40, 42, 0.34) rgba(37, 40, 42, 0.2) rgba(37, 40, 42, 0.52) rgba(37, 40, 42, 0.2) !important;
  color: #25282a !important;
  box-shadow: 0 1px 0 rgba(37, 40, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

._playBtn_3nso9_333:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

._cardComingSoon_3nso9_229 {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(42, 166, 161, 0.08), rgba(242, 183, 5, 0.05)),
    #25282a;
}

._cardComingSoon_3nso9_229 ._cardArt_3nso9_240 {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 28%, rgba(42, 166, 161, 0.16), transparent 36%),
    radial-gradient(circle at 72% 70%, rgba(242, 183, 5, 0.14), transparent 34%),
    #202426;
}

._cardComingSoon_3nso9_229 ._playBtn_3nso9_333 {
  background: rgba(255, 255, 255, 0.08);
  color: #8b8f92;
  opacity: 1;
}

._futureGrid_3nso9_390 {
  width: min(118px, 72%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

._futureGrid_3nso9_390 span {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px dashed rgba(215, 210, 200, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

._futureGrid_3nso9_390 span:nth-child(2),
._futureGrid_3nso9_390 span:nth-child(5) {
  border-color: rgba(42, 166, 161, 0.34);
  background: rgba(42, 166, 161, 0.08);
}

._futureGrid_3nso9_390 span:nth-child(3) {
  border-color: rgba(242, 183, 5, 0.32);
  background: rgba(242, 183, 5, 0.08);
}

/* ── Key hint footer ── */

._keyHints_3nso9_417 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #555a5d;
}

._keyHints_3nso9_417 span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Light theme ── */

body[data-theme="light"] ._title_3nso9_35 {
  color: #272b2d;
}

body[data-theme="light"] ._card_3nso9_207 {
  background: #d8d4cb;
  border-color: rgba(201, 155, 0, 0.14);
}

body[data-theme="light"] ._card_3nso9_207:hover {
  border-color: rgba(201, 155, 0, 0.32);
}

body[data-theme="light"] ._cardTitle_3nso9_318 {
  color: #272b2d;
}

body[data-theme="light"] ._cardDesc_3nso9_326 {
  color: #76736d;
}

body[data-theme="light"] ._sideNav_3nso9_53,
body[data-theme="light"] ._pageSlider_3nso9_118 {
  border-color: rgba(201, 155, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 246, 210, 0.92), rgba(214, 221, 205, 0.78)),
    #d8d4cb;
}

body[data-theme="light"] ._sideNav_3nso9_53 {
  border-color: rgba(201, 155, 0, 0.24);
  color: #c99b00;
}

body[data-theme="light"] ._sideNav_3nso9_53:hover:not(:disabled) {
  border-color: rgba(201, 155, 0, 0.5);
  box-shadow: 0 10px 24px rgba(65, 58, 45, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body[data-theme="light"] ._pageBubble_3nso9_132 {
  background: #fff2bd;
  color: #5b4300;
}

body[data-theme="light"] ._pageBubble_3nso9_132 strong {
  color: #c99b00;
}

body[data-theme="light"] ._pageBubble_3nso9_132 span {
  color: #76736d;
}

body[data-theme="light"] ._pageDots_3nso9_161 {
  background: rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] ._pageDot_3nso9_161 {
  background: rgba(118, 115, 109, 0.42);
}

body[data-theme="light"] ._pageDotActive_3nso9_182 {
  background: #c99b00;
}

body[data-theme="light"] ._cardComingSoon_3nso9_229 {
  background:
    linear-gradient(180deg, rgba(42, 166, 161, 0.08), rgba(201, 155, 0, 0.06)),
    #d2cec5;
}

body[data-theme="light"] ._cardComingSoon_3nso9_229 ._cardArt_3nso9_240 {
  background:
    radial-gradient(circle at 30% 28%, rgba(42, 166, 161, 0.14), transparent 36%),
    radial-gradient(circle at 72% 70%, rgba(201, 155, 0, 0.14), transparent 34%),
    #c9c5bc;
}

body[data-theme="light"] ._cardComingSoon_3nso9_229 ._playBtn_3nso9_333 {
  background: rgba(0, 0, 0, 0.08);
  color: #76736d;
}

body[data-theme="light"] ._futureGrid_3nso9_390 span {
  border-color: rgba(39, 43, 45, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

body[data-custom-colors="true"] ._playKey_3nso9_356 {
  background: color-mix(in srgb, var(--app-custom-bg) 18%, transparent) !important;
  border-color:
    color-mix(in srgb, var(--app-custom-bg) 34%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 20%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 52%, transparent)
    color-mix(in srgb, var(--app-custom-bg) 20%, transparent) !important;
  color: var(--app-custom-bg) !important;
}

body[data-custom-colors="true"] ._sideNav_3nso9_53,
body[data-custom-colors="true"] ._pageSlider_3nso9_118,
body[data-custom-colors="true"] ._pageBubble_3nso9_132 {
  border-color: color-mix(in srgb, var(--app-custom-accent) 24%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--app-custom-accent) 13%, transparent),
      color-mix(in srgb, var(--app-custom-text) 7%, transparent)
    ),
    color-mix(in srgb, var(--app-custom-bg) 92%, var(--app-custom-text));
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._pageBubble_3nso9_132 strong {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] ._pageBubble_3nso9_132 span {
  color: color-mix(in srgb, var(--app-custom-text) 58%, transparent);
}

body[data-custom-colors="true"] ._pageDotActive_3nso9_182 {
  background: var(--app-custom-accent);
}

@media (max-width: 920px) {
  ._carouselShell_3nso9_46 {
    grid-template-columns: minmax(0, 1fr);
  }

  ._sideNav_3nso9_53 {
    width: min(240px, 100%);
    height: 56px;
    min-height: 56px;
    grid-auto-flow: column;
    justify-content: center;
  }

  ._sideNavPrev_3nso9_74 {
    order: 2;
  }

  ._grid_3nso9_199 {
    order: 1;
  }

  ._sideNavNext_3nso9_78 {
    order: 3;
  }
}

@media (max-width: 760px) {
  ._heading_3nso9_11 {
    align-items: flex-start;
  }

  ._grid_3nso9_199 {
    grid-template-columns: 1fr;
  }
}
/**
 * App.css
 * Global application shell styles (layout, header, nav, modes, page panels).
 * Component-specific styles live in their respective CSS Modules:
 *   - ResultScreen  → ResultScreen.module.css
 *   - TypingArea    → TypingArea.module.css
 *   - SettingsPanel → SettingsPanel.module.css
 */

/* ─── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Suppress focus ring for mouse/touch clicks; keep it for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */

body {
  font-family: var(--app-font-family, "Inter", "Noto Sans Khmer", sans-serif);
  background: #2f3335;
  color: #d3d0c8;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-image: var(--app-bg-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.2s ease;
}

body[data-app-background-image]:not([data-app-background-image="none"])::before {
  opacity: 0.18;
}

button {
  font: inherit;
}

/* ─── Scrollbars ─────────────────────────────────────────────────────────── */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 183, 5, 0.45) rgba(0, 0, 0, 0.08);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(242, 183, 5, 0.45);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 183, 5, 0.72);
  background-clip: padding-box;
}

/* ─── App shell ───────────────────────────────────────────────────────────── */

.app {
  position: relative;
  z-index: 1;
  width: min(1600px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 34px clamp(28px, 6vw, 118px) 34px;
}

.app-loading {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  color: #777b7e;
  font-weight: 850;
}

/* ─── Result mode: switch to cream background ─────────────────────────────── */
/*
 * When the result is visible we match the reference image's warm parchment tone.
 * The class is toggled on <main> but we lift it to body via a sibling trick
 * so the full viewport changes colour. We use the .result-ready class on main
 * plus a data attribute on body set in code.
 */
body[data-result="true"] {
  background: #e8e5d9;
  color: #3a3a30;
  transition: background 0.35s ease, color 0.35s ease;
}

body[data-result="true"] .app-header h1,
body[data-result="true"] .brand-kicker,
body[data-result="true"] .nav-link,
body[data-result="true"] .icon-btn {
  color: #6e6b5f;
}

body[data-result="true"] .nav-link.active,
body[data-result="true"] .nav-link:hover,
body[data-result="true"] .icon-btn:hover {
  color: #8aa000;
}

body[data-theme="dark"][data-result="true"] {
  background: #2f3335;
  color: #d7d2c8;
}

body[data-theme="dark"][data-result="true"] .app-header h1 {
  color: #d7d2c8;
}

body[data-theme="dark"][data-result="true"] .brand-kicker,
body[data-theme="dark"][data-result="true"] .nav-link,
body[data-theme="dark"][data-result="true"] .icon-btn {
  color: #777b7e;
}

body[data-theme="dark"][data-result="true"] .nav-link.active,
body[data-theme="dark"][data-result="true"] .nav-link:hover,
body[data-theme="dark"][data-result="true"] .icon-btn:hover {
  color: #f2b705;
}

body[data-leaderboard="true"] {
  background: #f4ecd8;
  color: #1f2020;
  transition: background 0.35s ease, color 0.35s ease;
}

body[data-leaderboard="true"] .app-header h1,
body[data-leaderboard="true"] .brand-kicker,
body[data-leaderboard="true"] .nav-link,
body[data-leaderboard="true"] .icon-btn {
  color: #5f594c;
}

body[data-leaderboard="true"] .nav-link.active,
body[data-leaderboard="true"] .nav-link:hover,
body[data-leaderboard="true"] .icon-btn:hover {
  color: #8aa000;
}

body[data-theme="dark"][data-leaderboard="true"] {
  background: #2f3335;
  color: #d7d2c8;
}

body[data-theme="dark"][data-leaderboard="true"] .app-header h1 {
  color: #d7d2c8;
}

body[data-theme="dark"][data-leaderboard="true"] .brand-kicker,
body[data-theme="dark"][data-leaderboard="true"] .nav-link,
body[data-theme="dark"][data-leaderboard="true"] .icon-btn {
  color: #777b7e;
}

body[data-theme="dark"][data-leaderboard="true"] .nav-link.active,
body[data-theme="dark"][data-leaderboard="true"] .nav-link:hover,
body[data-theme="dark"][data-leaderboard="true"] .icon-btn:hover {
  color: #f2b705;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */

.app-header {
  width: 100%;
}

.app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

.brand-crown {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, 0.22);
  border-radius: 7px;
  background: rgba(242, 183, 5, 0.1);
  color: #f2b705;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.brand-kicker {
  display: none;
}

.app-header h1 {
  margin: 0;
  color: #d7d2c8;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-crown-label {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #8aa000;
  color: #25282a;
  padding: 2px 6px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

/* ─── Navigation ──────────────────────────────────────────────────────────── */

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  position: relative;
  min-width: 38px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #777b7e;
  padding: 6px 10px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s ease, background 0.12s ease;
}

.nav-link:hover {
  color: #f2b705;
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active,
.icon-btn.active {
  color: #f2b705;
  background: rgba(242, 183, 5, 0.08);
}

.icon-btn {
  position: relative;
  min-width: 46px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #777b7e;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

.icon-btn:hover {
  color: #f2b705;
  background: rgba(255, 255, 255, 0.04);
}

.nav-link[data-tooltip]::after,
.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: min(280px, 82vw);
  transform: translate(-50%, -4px);
  padding: 6px 8px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 7px;
  background: #292d2f;
  color: #d7d2c8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  white-space: normal;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.nav-link[data-tooltip]:hover::after,
.nav-link[data-tooltip]:focus-visible::after,
.icon-btn[data-tooltip]:hover::after,
.icon-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ─── Practice workspace ──────────────────────────────────────────────────── */

.practice-workspace {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0 8px;
}

.page-strip {
  width: min(1164px, 100%);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 2px;
}

.page-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7d2c8;
  font-size: 1.25rem;
  font-weight: 850;
}

.page-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-stats span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #292d2f;
  color: #777b7e;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

/* ─── Mode row ────────────────────────────────────────────────────────────── */

.mode-row {
  width: min(1164px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mode-group {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 9px;
  background: #292d2f;
}

.mode-group-wide {
  flex: 1;
  justify-content: center;
  min-width: 340px;
  max-width: 420px;
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #777b7e;
  padding: 7px 9px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-chip.active {
  color: #f2b705;
}

.mode-chip:hover {
  color: #d7d2c8;
}

/* ─── Keyboard ────────────────────────────────────────────────────────────── */

.keyboard-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  /* Horizontal padding gives room for keyboard box-shadow / outline bleed
     and is subtracted from available width so the zoom still fits correctly. */
  padding: 8px 16px 4px;
  box-sizing: border-box;
}

.lessons-page .keyboard-wrap {
  min-height: 286px;
  align-items: flex-start;
}

.keyboard-scale-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  transition: zoom 0.12s ease;
}

/* ─── Page panels (Lessons / Games) ──────────────────────────────────────── */

.lesson-board {
  position: relative;
  z-index: 20;
  width: min(1164px, 100%);
  display: grid;
  gap: 12px;
  overflow: visible;
  padding: 12px;
  border: 1px solid rgba(242, 183, 5, 0.1);
  border-radius: 8px;
  background: rgba(41, 45, 47, 0.72);
}

.lesson-board-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
  align-items: end;
  gap: 16px;
  padding-bottom: 4px;
}

.lesson-board-header.compact {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 360px);
}

.lesson-board-header span,
.games-heading span,
.game-kicker,
.lesson-column-title {
  color: #f2b705;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.lesson-board-header h2,
.games-heading h2,
.game-card h3 {
  margin: 5px 0 0;
  color: #d7d2c8;
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.lesson-board-header p {
  margin: 0;
  color: #8b8f92;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.lesson-dropdown-grid {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(260px, 1.6fr) auto;
  align-items: end;
  gap: 10px;
}

.lesson-select-field {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #777b7e;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lesson-select-button {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  border: 1px solid rgba(242, 183, 5, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 183, 5, 0.08), rgba(42, 166, 161, 0.04)),
    rgba(255, 255, 255, 0.035);
  color: #d7d2c8;
  font-family: inherit;
  outline: none;
  padding: 8px 34px 8px 10px;
  cursor: pointer;
  text-align: left;
  text-transform: none;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.lesson-select-button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.6;
  pointer-events: none;
  transform: rotate(45deg);
}

.lesson-select-button.open::after {
  bottom: 11px;
  transform: rotate(225deg);
}

.lesson-select-button:hover,
.lesson-select-button:focus,
.lesson-select-button.open {
  border-color: rgba(242, 183, 5, 0.25);
  background: rgba(242, 183, 5, 0.07);
}

.lesson-select-button strong,
.lesson-select-button small,
.lesson-selected-row strong,
.lesson-option-copy strong,
.lesson-option-copy small,
.lesson-menu-option strong,
.lesson-menu-option small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lesson-select-button strong,
.lesson-selected-row strong,
.lesson-option-copy strong,
.lesson-menu-option strong {
  color: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.lesson-select-button small,
.lesson-option-copy small,
.lesson-menu-option small {
  color: #8b8f92;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
}

.lesson-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(242, 183, 5, 0.16);
  border-radius: 8px;
  background: #292d2f;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.lesson-menu-wide {
  min-width: min(520px, 92vw);
}

.lesson-menu-option {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d7d2c8;
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.lesson-selected-row,
.lesson-option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lesson-selected-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.lesson-complete-badge {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 166, 161, 0.28);
  border-radius: 999px;
  background: rgba(42, 166, 161, 0.14);
  color: #7ed7d1;
  padding: 2px 7px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.lesson-menu-option:hover,
.lesson-menu-option.active {
  background: rgba(242, 183, 5, 0.08);
  color: #f2b705;
}

.lesson-keyboard-toggle {
  min-height: 40px;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #777b7e;
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.lesson-keyboard-toggle:hover,
.lesson-keyboard-toggle.active {
  border-color: rgba(242, 183, 5, 0.32);
  background: rgba(242, 183, 5, 0.09);
  color: #f2b705;
}

.lesson-preview {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 183, 5, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.lesson-preview span {
  color: #777b7e;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.lesson-preview p {
  margin: 0;
  overflow: hidden;
  color: #d7d2c8;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.games-board {
  width: min(1164px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px 0;
}

.profile-board {
  width: min(1260px, 100%);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0 8px;
}

.profile-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(222, 211, 181, 0.82);
}

.profile-filter {
  min-height: 45px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d7d2c8;
  padding: 9px 11px;
  font-size: 0.96rem;
  font-weight: 850;
  cursor: pointer;
  text-align: left;
}

.profile-filter span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-filter small {
  min-width: 28px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 900;
}

.profile-filter:hover,
.profile-filter.active {
  background: #8aa000;
  color: #25282a;
}

.profile-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.profile-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 4px solid rgba(242, 183, 5, 0.16);
}

.profile-heading span,
.profile-table-head {
  color: #2aa6a1;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-heading h2 {
  margin: 3px 0 4px;
  color: #d7d2c8;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: 0;
}

.profile-heading p {
  max-width: 720px;
  margin: 0;
  color: #8b8f92;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.45;
}

.profile-crown-card {
  width: 68px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(242, 183, 5, 0.13);
  color: #f2b705;
}

.profile-edit-button {
  grid-column: 2;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: #f2b705;
  color: #25282a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 8px;
  background: #292d2f;
  color: #8b8f92;
}

.profile-stat.champion {
  background: rgba(242, 183, 5, 0.12);
}

.profile-stat svg {
  color: #f2b705;
}

.profile-stat span {
  color: #2aa6a1;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-stat strong {
  color: #f2b705;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
}

.profile-stat small {
  overflow: hidden;
  color: #8b8f92;
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-table {
  display: grid;
  gap: 0;
}

.profile-table-head,
.profile-table-row {
  display: grid;
  grid-template-columns: 44px minmax(128px, 1.35fr) minmax(110px, 0.9fr) minmax(108px, 0.85fr) minmax(98px, 0.8fr);
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
}

.profile-table-row {
  min-height: 64px;
  border-radius: 8px;
  color: #d7d2c8;
  font-size: 0.94rem;
  font-weight: 760;
}

.profile-table-row:nth-child(even) {
  background: rgba(242, 183, 5, 0.12);
}

.profile-table-row strong {
  font-size: 1rem;
}

.profile-table-row em {
  color: #2aa6a1;
  font-style: normal;
  font-weight: 850;
}

.profile-badge-remove[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 90;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 140px;
  padding: 4px 8px;
  border: 1px solid rgba(42, 166, 161, 0.2);
  border-radius: 6px;
  background: #1d2022;
  color: #d7d2c8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.profile-badge-remove:hover[data-tooltip]::after,
.profile-badge-remove:focus-visible[data-tooltip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body[data-theme="light"] .profile-badge-remove[data-tooltip]::after {
  background: #f7f0de;
  color: #1f2020;
  border-color: rgba(138, 160, 0, 0.22);
}

body[data-custom-colors="true"] .profile-badge-remove[data-tooltip]::after {
  background: color-mix(in srgb, var(--app-custom-text) 10%, var(--app-custom-bg));
  color: var(--app-custom-text);
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
}

.leaderboard-board {
  width: min(1260px, 100%);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0 8px;
}

.leaderboard-sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
}

.leaderboard-filter-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(222, 211, 181, 0.82);
}

.leaderboard-filter {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2020;
  padding: 9px 12px;
  font-size: 0.98rem;
  font-weight: 850;
  cursor: pointer;
  text-align: left;
  text-transform: lowercase;
}

.leaderboard-filter:hover,
.leaderboard-filter.active {
  background: #8aa000;
  color: #fff7df;
}

.leaderboard-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.leaderboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 4px solid rgba(172, 158, 115, 0.42);
}

.leaderboard-heading h2 {
  margin: 0;
  color: #1f2020;
  font-family: var(--app-font-family, "Inter", "Noto Sans Khmer", sans-serif);
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: 0;
}

.leaderboard-heading h2 span {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  background: #8aa000;
  color: #fff7df;
  padding: 0 4px 3px;
}

.leaderboard-heading p,
.leaderboard-reset,
.leaderboard-table-head {
  color: #1ba6a0;
  font-size: 0.96rem;
  font-weight: 820;
}

.leaderboard-heading p {
  margin: 10px 0 0;
}

.leaderboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 74px;
}

.leaderboard-actions span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(222, 211, 181, 0.62);
  color: #1f2020;
}

.leaderboard-reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.leaderboard-reset button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 850;
  cursor: pointer;
}

.leaderboard-table {
  display: grid;
  gap: 0;
}

.leaderboard-table-head,
.leaderboard-row {
  display: grid;
  grid-template-columns: 44px minmax(128px, 1.35fr) minmax(54px, 0.55fr) minmax(76px, 0.7fr) minmax(60px, 0.6fr) minmax(84px, 0.78fr) minmax(98px, 0.9fr);
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
}

.leaderboard-table-head {
  min-height: 36px;
  font-size: 0.78rem;
  text-transform: lowercase;
}

.leaderboard-row {
  min-height: 80px;
  border-radius: 8px;
  color: #1f2020;
  font-size: 0.92rem;
  font-weight: 760;
}

.leaderboard-row:nth-child(odd),
.leaderboard-row.champion {
  background: rgba(222, 211, 181, 0.74);
}

.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 860;
}

.leaderboard-rank svg {
  color: #f2b705;
  fill: currentColor;
}

.leaderboard-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.leaderboard-name svg {
  color: #1ba6a0;
  flex: 0 0 auto;
}

.leaderboard-row time {
  color: #1ba6a0;
}

.leaderboard-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(222, 211, 181, 0.58);
  color: #706a5d;
  font-weight: 820;
}

.leaderboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #1ba6a0;
  font-weight: 820;
  flex-wrap: wrap;
}

.leaderboard-footer span {
  min-width: 0;
}

.games-heading {
  display: grid;
  gap: 2px;
}

.game-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.game-card {
  min-height: 228px;
  display: grid;
  grid-template-rows: 106px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 8px;
  background: #292d2f;
  color: #d7d2c8;
}

.game-card-has-preview {
  grid-template-rows: 164px minmax(0, 1fr);
}

.game-card-art {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(42, 166, 161, 0.18), rgba(242, 183, 5, 0.12)),
    #25282a;
}

.game-card-preview-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: center top; */
  display: block;
  transition: transform 0.3s ease;
}

.game-card-has-preview:hover .game-card-preview-gif {
  transform: scale(1.04);
}

.hero-dot {
  position: absolute;
  left: 34px;
  bottom: 22px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f2b705;
  box-shadow: 0 0 0 8px rgba(242, 183, 5, 0.1);
}

.word-threat {
  position: absolute;
  right: 42px;
  top: 22px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(202, 71, 84, 0.34);
  border-radius: 8px;
  background: rgba(202, 71, 84, 0.16);
  color: #ff9aaa;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 850;
}

.word-threat.alt {
  top: 62px;
  right: 120px;
  color: #7ed7d1;
  border-color: rgba(42, 166, 161, 0.34);
  background: rgba(42, 166, 161, 0.16);
}

.game-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.game-card h3 {
  font-size: 1.35rem;
}

.game-card p {
  margin: 0;
  color: #8b8f92;
  font-size: 0.9rem;
  line-height: 1.45;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.page-panel {
  width: min(900px, 100%);
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 20px 0;
}

.page-card {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  border-radius: 8px;
  background: #292d2f;
  color: #d7d2c8;
  padding: 22px;
}

.page-card svg {
  color: #f2b705;
}

.page-card h2 {
  margin: 0 0 6px;
  font-size: 1.32rem;
  letter-spacing: 0;
}

.page-card p {
  margin: 0 0 16px;
  color: #8b8f92;
  line-height: 1.55;
}

.primary-action {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f2b705;
  color: #25282a;
  padding: 8px 14px;
  font-weight: 850;
  cursor: pointer;
}

.primary-action:hover {
  background: #dba604;
}

/* ─── Info box ────────────────────────────────────────────────────────────── */

.info-box {
  width: min(940px, 100%);
  align-self: center;
  padding: 12px 16px;
  border-radius: 9px;
  background: #292d2f;
  color: #777b7e;
  font-size: 0.82rem;
  line-height: 1.55;
}

.info-box code {
  color: #f2b705;
  background: rgba(242, 183, 5, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ─── About ─────────────────────────────────────────────────────────────── */

.about-page-card {
  width: min(980px, calc(100% - 28px));
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(242, 183, 5, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(242, 183, 5, 0.08), transparent 42%),
    #292d2f;
  color: #d7d2c8;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.about-logo-wrap {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.about-logo {
  width: min(150px, 74%);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
}

.about-copy {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2aa6a1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-copy h2 {
  margin: 0;
  color: #f2b705;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.about-copy p {
  max-width: 680px;
  margin: 0;
  color: #a7aaad;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

.about-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.about-fact {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.about-fact span {
  color: #777b7e;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.about-fact strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d7d2c8;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
}

/* ─── Domain lifetime card ───────────────────────────────────────────────── */

.domain-lifetime-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.domain-lifetime-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-lifetime-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--domain-color, #22c55e);
  box-shadow: 0 0 10px 3px var(--domain-glow, rgba(34,197,94,0.45));
  flex-shrink: 0;
  animation: domain-pulse 2s ease-in-out infinite;
}

@keyframes domain-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.domain-lifetime-title {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #777b7e;
}

.domain-lifetime-title strong {
  color: var(--domain-color, #22c55e);
}

.domain-bar-wrap {
  display: grid;
  gap: 7px;
}

.domain-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 850;
  color: #5a5e61;
}

.domain-bar-labels span:last-child {
  color: var(--domain-color, #22c55e);
}

.domain-bar-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  position: relative;
}

.domain-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--domain-color-start, #22c55e), var(--domain-color, #22c55e));
  transition: width 1s linear, background 2s ease;
  position: relative;
}

.domain-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.18));
  border-radius: inherit;
}

.domain-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.domain-countdown-cell {
  display: grid;
  gap: 4px;
  padding: 10px 8px 8px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  text-align: center;
}

.domain-countdown-num {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1;
  color: var(--domain-color, #22c55e);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  transition: color 2s ease;
}

.domain-countdown-label {
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555960;
}

.domain-appeal {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 10px;
  background: rgba(242, 183, 5, 0.04);
}

.domain-appeal-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.domain-appeal-icon {
  flex-shrink: 0;
  color: #f2b705;
  margin-top: 1px;
}

.domain-appeal p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.55;
  color: #8b8f92;
}

.domain-appeal p strong {
  color: #c9c4ba;
}

.domain-appeal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.domain-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1.5px solid rgba(242, 183, 5, 0.6);
  border-radius: 99px;
  background: rgba(242, 183, 5, 0.16);
  color: #f2b705;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(242,183,5,0);
}

.domain-support-btn:hover {
  background: rgba(242, 183, 5, 0.26);
  border-color: rgba(242, 183, 5, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(242,183,5,0.22);
}

.domain-support-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.domain-support-btn.secondary {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #c9c4ba;
}

.domain-support-btn.secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.45);
  color: #f0ece4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ─── Info pages ─────────────────────────────────────────────────────────── */

.info-page-card {
  width: min(1080px, calc(100% - 28px));
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(242, 183, 5, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(42, 166, 161, 0.08), transparent 42%),
    #292d2f;
  color: #d7d2c8;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.info-page-hero {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.info-page-hero.compact {
  max-width: 760px;
  justify-self: center;
}

.info-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2aa6a1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-page-card h2 {
  margin: 0;
  color: #f2b705;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.info-page-card h3 {
  margin: 0;
  color: #d7d2c8;
  font-size: 1rem;
  font-weight: 920;
  line-height: 1.2;
}

.info-page-card p {
  margin: 0;
  color: #a7aaad;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

.policy-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policy-section,
.press-info-section,
.community-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(242, 183, 5, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.policy-section:first-child,
.policy-section:last-child,
.press-info-section.wide {
  grid-column: 1 / -1;
}

.press-download-hero {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 8px 0 4px;
  text-align: center;
}

.press-logo {
  width: clamp(160px, 24vw, 240px);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.22));
}

.press-hero-copy {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.press-hero-copy p {
  max-width: 720px;
}

.store-button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.store-button {
  width: 132px;
  height: 132px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: transparent;
  padding: 0;
}

.store-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* .store-button.store-button-icon {
  background: #636363;
  border-radius: 18px;
  padding: 16px;
  overflow: hidden;
} */

.store-button.disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.85);
}

.store-note {
  color: #777b7e;
  font-size: 0.78rem;
  font-weight: 850;
}

.web-edition-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: #8aa000;
  color: #25282a;
  padding: 12px 18px;
  font-size: 0.98rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(138, 160, 0, 0.22);
}

.web-edition-button:hover {
  background: #f2b705;
}

.press-kit-download-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid rgba(34, 197, 94, 0.55);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  padding: 11px 22px;
  font-size: 0.98rem;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 6px 20px rgba(34,197,94,0.12);
}

.press-kit-download-btn:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(34,197,94,0.22);
}

.press-kit-download-btn:active {
  transform: translateY(0);
}

.press-kit-download-note {
  font-size: 0.73rem;
  font-weight: 800;
  color: #555960;
  letter-spacing: 0.03em;
}

.press-section-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.press-info-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: #a7aaad;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.community-card svg {
  color: #2aa6a1;
}

.community-contact-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

/* ─── Light theme ─────────────────────────────────────────────────────────── */

body[data-theme="light"] {
  background: #e7e4dc;
  color: #272b2d;
}

body[data-theme="light"] .app-header h1,
body[data-theme="light"] .page-title,
body[data-theme="light"] .profile-heading h2,
body[data-theme="light"] .profile-table-row {
  color: #272b2d;
}

body[data-theme="light"] .mode-group,
body[data-theme="light"] .page-stats span,
body[data-theme="light"] .page-card,
body[data-theme="light"] .lesson-board,
body[data-theme="light"] .game-card,
body[data-theme="light"] .profile-stat,
body[data-theme="light"] .about-page-card,
body[data-theme="light"] .info-page-card,
body[data-theme="light"] .info-box {
  background: #d8d4cb;
}

body[data-theme="light"] .mode-chip,
body[data-theme="light"] .icon-btn,
body[data-theme="light"] .nav-link,
body[data-theme="light"] .page-card p,
body[data-theme="light"] .lesson-board-header p,
body[data-theme="light"] .lesson-select-button small,
body[data-theme="light"] .lesson-menu-option small,
body[data-theme="light"] .game-card p,
body[data-theme="light"] .profile-heading p,
body[data-theme="light"] .profile-stat small,
body[data-theme="light"] .about-copy p,
body[data-theme="light"] .about-fact span,
body[data-theme="light"] .info-page-card p,
body[data-theme="light"] .press-info-section ul,
body[data-theme="light"] .store-note,
body[data-theme="light"] .info-box {
  color: #76736d;
}

body[data-theme="light"] .about-page-card,
body[data-theme="light"] .about-fact,
body[data-theme="light"] .info-page-card,
body[data-theme="light"] .policy-section,
body[data-theme="light"] .press-info-section,
body[data-theme="light"] .community-card {
  border-color: rgba(201, 155, 0, 0.14);
}

body[data-theme="light"] .domain-lifetime-card,
body[data-theme="light"] .domain-appeal {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(201, 155, 0, 0.18);
}

body[data-theme="light"] .domain-countdown-cell {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .domain-bar-track {
  background: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .domain-bar-labels,
body[data-theme="light"] .domain-lifetime-title,
body[data-theme="light"] .domain-countdown-label {
  color: #76736d;
}

body[data-theme="light"] .domain-appeal p {
  color: #76736d;
}

body[data-theme="light"] .domain-appeal p strong {
  color: #3a3630;
}

body[data-theme="light"] .domain-support-btn {
  color: #5a4a00;
}

body[data-theme="light"] .domain-support-btn.secondary {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.07);
  color: #4a4740;
}

body[data-theme="light"] .domain-support-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.4);
  color: #1a1714;
}

body[data-theme="light"] .about-logo-wrap,
body[data-theme="light"] .about-fact,
body[data-theme="light"] .policy-section,
body[data-theme="light"] .press-info-section,
body[data-theme="light"] .community-card {
  background: rgba(255, 255, 255, 0.26);
}

body[data-theme="light"] .about-copy h2,
body[data-theme="light"] .info-page-card h2 {
  color: #8a6500;
}

body[data-theme="light"] .about-fact strong,
body[data-theme="light"] .info-page-card h3 {
  color: #272b2d;
}

body[data-theme="light"] .lesson-board,
body[data-theme="light"] .lesson-select-button,
body[data-theme="light"] .lesson-keyboard-toggle,
body[data-theme="light"] .lesson-preview,
body[data-theme="light"] .game-card {
  border-color: rgba(201, 155, 0, 0.14);
}

body[data-theme="light"] .brand-crown,
body[data-theme="light"] .profile-sidebar,
body[data-theme="light"] .profile-crown-card,
body[data-theme="light"] .profile-stat.champion,
body[data-theme="light"] .profile-table-row:nth-child(even) {
  background: rgba(201, 155, 0, 0.12);
}

body[data-theme="light"] .brand-crown,
body[data-theme="light"] .profile-crown-card,
body[data-theme="light"] .profile-stat svg,
body[data-theme="light"] .profile-stat strong {
  color: #c99b00;
}

body[data-theme="light"] .profile-filter {
  color: #272b2d;
}
body[data-theme="light"] .profile-filter small {
  background: rgba(0, 0, 0, 0.1);
  color: #272b2d;
}

body[data-theme="light"] .lesson-select-field,
body[data-theme="light"] .lesson-keyboard-toggle {
  color: #76736d;
}

body[data-theme="light"] .lesson-select-button,
body[data-theme="light"] .lesson-keyboard-toggle {
  background: rgba(255, 255, 255, 0.18);
  color: #272b2d;
}

body[data-theme="light"] .lesson-menu {
  border-color: rgba(201, 155, 0, 0.18);
  background: #d8d4cb;
}

body[data-theme="light"] .lesson-menu-option {
  color: #272b2d;
}

body[data-theme="light"] .lesson-complete-badge {
  border-color: rgba(42, 166, 161, 0.32);
  background: rgba(42, 166, 161, 0.12);
  color: #238b86;
}

body[data-theme="light"] .lesson-select-button:hover,
body[data-theme="light"] .lesson-select-button:focus,
body[data-theme="light"] .lesson-select-button.open,
body[data-theme="light"] .lesson-keyboard-toggle:hover,
body[data-theme="light"] .lesson-keyboard-toggle.active,
body[data-theme="light"] .lesson-menu-option:hover,
body[data-theme="light"] .lesson-menu-option.active {
  background: rgba(201, 155, 0, 0.1);
  border-color: rgba(201, 155, 0, 0.34);
  color: #c99b00;
}

body[data-theme="light"] .lesson-board-header h2,
body[data-theme="light"] .games-heading h2,
body[data-theme="light"] .game-card h3,
body[data-theme="light"] .lesson-preview p {
  color: #272b2d;
}

body[data-theme="light"] .lesson-preview span {
  color: #76736d;
}

body[data-theme="light"] .mode-chip.active,
body[data-theme="light"] .icon-btn:hover,
body[data-theme="light"] .icon-btn.active,
body[data-theme="light"] .nav-link:hover,
body[data-theme="light"] .nav-link.active {
  color: #c99b00;
}

body[data-theme="light"] .icon-btn[data-tooltip]::after {
  border-color: rgba(201, 155, 0, 0.2);
  background: #d8d4cb;
  color: #272b2d;
}

body[data-theme="dark"] .leaderboard-filter-card,
body[data-theme="dark"] .profile-sidebar,
body[data-theme="dark"] .leaderboard-actions span,
body[data-theme="dark"] .leaderboard-row:nth-child(odd),
body[data-theme="dark"] .leaderboard-row.champion,
body[data-theme="dark"] .leaderboard-empty {
  background: #292d2f;
}

body[data-theme="dark"] .leaderboard-heading h2,
body[data-theme="dark"] .leaderboard-filter,
body[data-theme="dark"] .profile-filter,
body[data-theme="dark"] .leaderboard-row {
  color: #d7d2c8;
}

body[data-theme="dark"] .leaderboard-heading {
  border-bottom-color: rgba(242, 183, 5, 0.18);
}

body[data-theme="dark"] .leaderboard-actions span {
  color: #d7d2c8;
}

body[data-theme="dark"] .leaderboard-empty {
  color: #8b8f92;
}

/* ─── User custom colors ─────────────────────────────────────────────────── */

body[data-custom-colors="true"] {
  background: var(--app-custom-bg);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"][data-leaderboard="true"] {
  background: var(--app-custom-bg);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"][data-result="true"] {
  background: var(--app-custom-bg);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .app-header h1,
body[data-custom-colors="true"] .page-title,
body[data-custom-colors="true"] .page-card h2,
body[data-custom-colors="true"] .lesson-board-header h2,
body[data-custom-colors="true"] .games-heading h2,
body[data-custom-colors="true"] .game-card h3,
body[data-custom-colors="true"] .leaderboard-heading h2,
body[data-custom-colors="true"] .leaderboard-row,
body[data-custom-colors="true"] .profile-heading h2,
body[data-custom-colors="true"] .profile-table-row,
body[data-custom-colors="true"] .about-copy h2,
body[data-custom-colors="true"] .about-fact strong,
body[data-custom-colors="true"] .info-page-card h2,
body[data-custom-colors="true"] .info-page-card h3 {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .brand-kicker,
body[data-custom-colors="true"] .mode-chip,
body[data-custom-colors="true"] .mode-custom-value,
body[data-custom-colors="true"] .icon-btn,
body[data-custom-colors="true"] .nav-link,
body[data-custom-colors="true"] .page-card p,
body[data-custom-colors="true"] .lesson-board-header p,
body[data-custom-colors="true"] .lesson-select-button small,
body[data-custom-colors="true"] .lesson-menu-option small,
body[data-custom-colors="true"] .game-card p,
body[data-custom-colors="true"] .leaderboard-empty,
body[data-custom-colors="true"] .profile-heading p,
body[data-custom-colors="true"] .profile-stat small,
body[data-custom-colors="true"] .lesson-preview span,
body[data-custom-colors="true"] .about-copy p,
body[data-custom-colors="true"] .about-fact span,
body[data-custom-colors="true"] .info-page-card p,
body[data-custom-colors="true"] .press-info-section ul,
body[data-custom-colors="true"] .store-note,
body[data-custom-colors="true"] .info-box {
  color: color-mix(in srgb, var(--app-custom-text) 62%, transparent);
}

body[data-custom-colors="true"] .mode-chip.active,
body[data-custom-colors="true"] .mode-quote-select-label,
body[data-custom-colors="true"] .mode-quote-trigger svg,
body[data-custom-colors="true"] .icon-btn:hover,
body[data-custom-colors="true"] .icon-btn.active,
body[data-custom-colors="true"] .nav-link:hover,
body[data-custom-colors="true"] .nav-link.active,
body[data-custom-colors="true"] .page-card svg,
body[data-custom-colors="true"] .lesson-board-header span,
body[data-custom-colors="true"] .games-heading span,
body[data-custom-colors="true"] .game-kicker,
body[data-custom-colors="true"] .leaderboard-heading p,
body[data-custom-colors="true"] .leaderboard-reset,
body[data-custom-colors="true"] .leaderboard-table-head,
body[data-custom-colors="true"] .leaderboard-name svg,
body[data-custom-colors="true"] .leaderboard-row time,
body[data-custom-colors="true"] .brand-crown,
body[data-custom-colors="true"] .profile-crown-card,
body[data-custom-colors="true"] .profile-heading span,
body[data-custom-colors="true"] .profile-stat svg,
body[data-custom-colors="true"] .profile-stat span,
body[data-custom-colors="true"] .profile-stat strong,
body[data-custom-colors="true"] .profile-table-head,
body[data-custom-colors="true"] .profile-table-row em,
body[data-custom-colors="true"] .lesson-select-field,
body[data-custom-colors="true"] .about-kicker,
body[data-custom-colors="true"] .info-page-kicker,
body[data-custom-colors="true"] .community-card svg,
body[data-custom-colors="true"] .info-box code {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .mode-group,
body[data-custom-colors="true"] .type-test-notice,
body[data-custom-colors="true"] .page-stats span,
body[data-custom-colors="true"] .page-card,
body[data-custom-colors="true"] .lesson-board,
body[data-custom-colors="true"] .lesson-select-button,
body[data-custom-colors="true"] .lesson-keyboard-toggle,
body[data-custom-colors="true"] .lesson-preview,
body[data-custom-colors="true"] .game-card,
body[data-custom-colors="true"] .leaderboard-filter-card,
body[data-custom-colors="true"] .leaderboard-actions span,
body[data-custom-colors="true"] .leaderboard-row:nth-child(odd),
body[data-custom-colors="true"] .leaderboard-row.champion,
body[data-custom-colors="true"] .leaderboard-empty,
body[data-custom-colors="true"] .profile-stat,
body[data-custom-colors="true"] .about-page-card,
body[data-custom-colors="true"] .about-logo-wrap,
body[data-custom-colors="true"] .about-fact,
body[data-custom-colors="true"] .info-page-card,
body[data-custom-colors="true"] .policy-section,
body[data-custom-colors="true"] .press-info-section,
body[data-custom-colors="true"] .community-card,
body[data-custom-colors="true"] .info-box {
  background: color-mix(in srgb, var(--app-custom-text) 9%, transparent);
}

body[data-custom-colors="true"] .mode-quote-trigger,
body[data-custom-colors="true"] .mode-quote-menu,
body[data-custom-colors="true"] .type-config-quote-trigger,
body[data-custom-colors="true"] .type-config-quote-menu,
body[data-custom-colors="true"] .type-config-field input,
body[data-custom-colors="true"] .type-config-field select,
body[data-custom-colors="true"] .type-config-field textarea {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--app-custom-accent) 10%, transparent),
      color-mix(in srgb, var(--app-custom-text) 6%, transparent)
    ),
    var(--app-custom-bg);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .mode-quote-option,
body[data-custom-colors="true"] .type-config-quote-option {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .mode-quote-select-label,
body[data-custom-colors="true"] .mode-quote-trigger svg,
body[data-custom-colors="true"] .type-test-notice svg,
body[data-custom-colors="true"] .type-config-quote-trigger > span:last-child {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .mode-quote-option:hover,
body[data-custom-colors="true"] .mode-quote-option.active,
body[data-custom-colors="true"] .type-config-quote-option:hover,
body[data-custom-colors="true"] .type-config-quote-option.active {
  border-color: color-mix(in srgb, var(--app-custom-accent) 28%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .type-config-language-guard {
  border-color: color-mix(in srgb, var(--app-custom-accent) 24%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 8%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .type-config-language-guard strong,
body[data-custom-colors="true"] .type-config-language-guard span {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .type-config-language-guard.danger,
body[data-custom-colors="true"] .type-config-language-guard.danger strong,
body[data-custom-colors="true"] .type-config-language-guard.danger span {
  color: #ffb4ae;
}

body[data-custom-colors="true"] .mode-quote-trigger:focus-visible,
body[data-custom-colors="true"] .type-config-quote-trigger:focus-visible,
body[data-custom-colors="true"] .type-config-field input:focus,
body[data-custom-colors="true"] .type-config-field select:focus,
body[data-custom-colors="true"] .type-config-field textarea:focus {
  border-color: color-mix(in srgb, var(--app-custom-accent) 72%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}

body[data-custom-colors="true"] .mode-quote-option,
body[data-custom-colors="true"] .type-config-quote-option {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .mode-quote-option:hover,
body[data-custom-colors="true"] .mode-quote-option.active,
body[data-custom-colors="true"] .type-config-quote-option:hover,
body[data-custom-colors="true"] .type-config-quote-option.active {
  border-color: color-mix(in srgb, var(--app-custom-accent) 28%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .type-config-modal {
  border-color: color-mix(in srgb, var(--app-custom-accent) 24%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 8%, var(--app-custom-bg));
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .type-config-quote-option-row:hover,
body[data-custom-colors="true"] .type-config-quote-option-row.active {
  border-color: color-mix(in srgb, var(--app-custom-accent) 28%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
}

body[data-custom-colors="true"] .type-config-quote-option-row:hover .type-config-quote-option,
body[data-custom-colors="true"] .type-config-quote-option-row.active .type-config-quote-option {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .type-config-quote-tools {
  border-left-color: color-mix(in srgb, var(--app-custom-accent) 18%, transparent);
}

body[data-custom-colors="true"] .type-config-quote-tool,
body[data-custom-colors="true"] .type-config-edit-cancel {
  color: color-mix(in srgb, var(--app-custom-text) 62%, transparent);
}

body[data-custom-colors="true"] .type-config-header span,
body[data-custom-colors="true"] .type-config-field span {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .type-config-help {
  color: color-mix(in srgb, var(--app-custom-text) 68%, transparent);
}

body[data-custom-colors="true"] .type-config-close,
body[data-custom-colors="true"] .secondary-action {
  background: color-mix(in srgb, var(--app-custom-text) 10%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .mode-change-chip {
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .mode-quote-trigger:focus-visible,
body[data-custom-colors="true"] .type-config-quote-trigger:focus-visible,
body[data-custom-colors="true"] .type-config-field input:focus,
body[data-custom-colors="true"] .type-config-field select:focus,
body[data-custom-colors="true"] .type-config-field textarea:focus {
  border-color: color-mix(in srgb, var(--app-custom-accent) 72%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
}

body[data-custom-colors="true"] .brand-crown,
body[data-custom-colors="true"] .profile-sidebar,
body[data-custom-colors="true"] .profile-crown-card,
body[data-custom-colors="true"] .profile-stat.champion,
body[data-custom-colors="true"] .profile-table-row:nth-child(even) {
  background: color-mix(in srgb, var(--app-custom-accent) 13%, transparent);
}

body[data-custom-colors="true"] .profile-filter {
  color: var(--app-custom-text);
}
body[data-custom-colors="true"] .profile-filter small {
  background: color-mix(in srgb, var(--app-custom-accent) 16%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .profile-filter:hover,
body[data-custom-colors="true"] .profile-filter.active,
body[data-custom-colors="true"] .leaderboard-filter:hover,
body[data-custom-colors="true"] .leaderboard-filter.active,
body[data-custom-colors="true"] .leaderboard-heading h2 span,
body[data-custom-colors="true"] .brand-crown-label {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] .leaderboard-filter {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .leaderboard-heading {
  border-bottom-color: color-mix(in srgb, var(--app-custom-accent) 24%, transparent);
}

body[data-custom-colors="true"] .lesson-board,
body[data-custom-colors="true"] .lesson-select-button,
body[data-custom-colors="true"] .lesson-keyboard-toggle,
body[data-custom-colors="true"] .lesson-preview,
body[data-custom-colors="true"] .game-card {
  border-color: color-mix(in srgb, var(--app-custom-accent) 18%, transparent);
}

body[data-custom-colors="true"] .lesson-select-button,
body[data-custom-colors="true"] .lesson-keyboard-toggle,
body[data-custom-colors="true"] .lesson-preview p {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .lesson-menu {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: var(--app-custom-bg);
}

body[data-custom-colors="true"] .lesson-menu-option {
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .lesson-complete-badge {
  border-color: color-mix(in srgb, var(--app-custom-accent) 34%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 14%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .lesson-select-button:hover,
body[data-custom-colors="true"] .lesson-select-button:focus,
body[data-custom-colors="true"] .lesson-select-button.open,
body[data-custom-colors="true"] .lesson-keyboard-toggle:hover,
body[data-custom-colors="true"] .lesson-keyboard-toggle.active,
body[data-custom-colors="true"] .lesson-menu-option:hover,
body[data-custom-colors="true"] .lesson-menu-option.active {
  background: color-mix(in srgb, var(--app-custom-accent) 11%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 34%, transparent);
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .primary-action {
  background: var(--app-custom-accent);
  color: var(--app-custom-bg);
}

body[data-custom-colors="true"] .leaderboard-rank svg {
  color: var(--app-custom-accent);
}

body[data-custom-colors="true"] .domain-support-btn {
  border-color: color-mix(in srgb, var(--app-custom-accent) 60%, transparent);
  background: color-mix(in srgb, var(--app-custom-accent) 12%, transparent);
  color: var(--app-custom-accent);
}
body[data-custom-colors="true"] .domain-support-btn:hover {
  background: color-mix(in srgb, var(--app-custom-accent) 26%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-accent) 85%, transparent);
}
body[data-custom-colors="true"] .domain-support-btn.secondary {
  border-color: color-mix(in srgb, var(--app-custom-text) 30%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 8%, transparent);
  color: var(--app-custom-text);
}
body[data-custom-colors="true"] .domain-support-btn.secondary:hover {
  background: color-mix(in srgb, var(--app-custom-text) 15%, transparent);
  border-color: color-mix(in srgb, var(--app-custom-text) 50%, transparent);
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] .icon-btn[data-tooltip]::after {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background: color-mix(in srgb, var(--app-custom-text) 12%, var(--app-custom-bg));
  color: var(--app-custom-text);
}

body[data-custom-colors="true"] * {
  scrollbar-color: color-mix(in srgb, var(--app-custom-accent) 62%, transparent) color-mix(in srgb, var(--app-custom-text) 10%, transparent);
}

body[data-custom-colors="true"] *::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--app-custom-text) 10%, transparent);
}

body[data-custom-colors="true"] *::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--app-custom-accent) 62%, transparent);
  background-clip: padding-box;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1050px) {
  .app {
    padding-inline: 28px;
  }

  .practice-workspace {
    gap: 12px;
  }

  .mode-row {
    gap: 8px;
  }

  .mode-chip {
    padding-inline: 6px;
  }

  .mode-quote-select-field {
    min-width: min(100%, 360px);
  }

  .app-title-row {
    gap: 14px;
  }

  .main-nav,
  .top-actions {
    gap: 6px;
  }

  .nav-link,
  .icon-btn {
    padding-inline: 8px;
  }

  .page-title {
    font-size: 1.08rem;
  }

  .leaderboard-board,
  .profile-board {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
  }

  .leaderboard-filter-card,
  .profile-sidebar {
    gap: 8px;
    padding: 14px;
  }

  .leaderboard-filter,
  .profile-filter {
    min-height: 38px;
    gap: 8px;
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .leaderboard-heading {
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .leaderboard-heading h2 {
    font-size: 1.8rem;
  }

  .leaderboard-actions {
    display: none;
  }

  .leaderboard-table-head,
  .leaderboard-row,
  .profile-table-head,
  .profile-table-row {
    grid-template-columns: 34px minmax(92px, 1.2fr) 46px 62px 48px 70px 78px;
    gap: 4px;
    padding: 10px 8px;
  }

  .profile-table-head,
  .profile-table-row {
    grid-template-columns: 34px minmax(92px, 1.2fr) minmax(70px, 0.8fr) minmax(68px, 0.8fr) minmax(66px, 0.75fr);
  }

  .leaderboard-table-head,
  .profile-table-head {
    font-size: 0.68rem;
  }

  .leaderboard-row {
    min-height: 64px;
    font-size: 0.78rem;
  }

  .leaderboard-name {
    gap: 6px;
  }

  .about-page-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .about-facts,
  .policy-section-grid,
  .press-section-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .press-info-section.wide,
  .community-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .app {
    padding-inline: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .app-title-row {
    gap: 6px 12px;
  }

  /* brand-lockup gets left space, top-actions right, nav wraps to second row */
  .brand-lockup {
    flex: 1;
  }

  .main-nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .top-actions {
    gap: 8px;
  }

  .app-header h1 {
    font-size: 1.6rem;
  }

  .brand-crown {
    width: 36px;
    height: 36px;
  }

  .icon-btn span {
    display: none;
  }

  .icon-btn {
    min-width: 36px;
    padding-inline: 6px;
  }

  .about-page-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .info-page-card {
    width: min(100%, calc(100% - 8px));
    padding: 18px;
  }

  .about-logo-wrap {
    min-height: 150px;
  }

  .about-copy {
    text-align: center;
    justify-items: center;
  }

  .about-facts,
  .policy-section-grid,
  .press-section-grid,
  .community-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy-section:first-child,
  .policy-section:last-child,
  .press-info-section.wide,
  .community-card:last-child {
    grid-column: auto;
  }

  .store-button {
    width: 112px;
    height: 112px;
  }
}

@media (max-width: 440px) {
  .nav-link span {
    display: none;
  }

  .nav-link {
    min-width: 36px;
    justify-content: center;
    padding: 6px;
    gap: 0;
  }

  .brand-kicker {
    display: none;
  }

  .type-test-notice {
    top: 68px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* ─── Type test configuration modal ──────────────────────────────────────── */

.mode-group-config {
  max-width: min(100%, 680px);
}

.mode-custom-value {
  max-width: 340px;
  display: inline-flex;
  align-items: center;
  color: #d7d2c8;
  padding: 6px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 800;
}

.mode-quote-select-field {
  min-width: min(430px, 54vw);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.mode-quote-select-label {
  color: #f2b705;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mode-quote-combobox {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}

.mode-quote-trigger {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(242, 183, 5, 0.11), rgba(242, 183, 5, 0.04)),
    #222629;
  color: #f3f0e7;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.mode-quote-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-quote-trigger svg {
  flex: 0 0 auto;
  color: #f2b705;
  transition: transform 160ms ease;
}

.mode-quote-combobox.open .mode-quote-trigger svg {
  transform: rotate(180deg);
}

.mode-quote-trigger:focus-visible {
  border-color: rgba(242, 183, 5, 0.72);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.12);
}

.mode-quote-trigger:disabled {
  color: #777b7e;
  cursor: default;
}

.mode-quote-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(520px, 82vw);
  max-height: 260px;
  display: grid;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(242, 183, 5, 0.2);
  border-radius: 9px;
  background: #222629;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.mode-quote-option {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d7d2c8;
  padding: 8px 9px;
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.mode-quote-option:hover,
.mode-quote-option.active {
  border-color: rgba(242, 183, 5, 0.22);
  background: rgba(242, 183, 5, 0.1);
  color: #f2b705;
}

.mode-change-chip {
  color: #f2b705;
  background: rgba(242, 183, 5, 0.08);
}

.type-test-notice {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 960;
  width: min(360px, calc(100vw - 32px));
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(42, 166, 161, 0.32);
  border-radius: 8px;
  background: #0b2632;
  color: #d7d2c8;
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 820;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
  animation: typeTestNoticeIn 180ms ease-out;
}

.type-test-notice svg {
  color: #2aa6a1;
}

.type-test-notice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.type-test-notice button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.type-test-notice button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.type-test-notice.info {
  border-color: rgba(242, 183, 5, 0.32);
  background: #1e1700;
}

.type-test-notice.info svg {
  color: #f2b705;
}

.type-test-notice.danger {
  border-color: rgba(255, 95, 87, 0.36);
  background: #200a0a;
  color: #ffb4ae;
}

.type-test-notice.danger svg {
  color: #ffb4ae;
}

@keyframes typeTestNoticeIn {
  from {
    opacity: 0;
    transform: translate3d(12px, -8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.kb-mismatch-toast-backdrop {
  position: fixed;
  inset: 0;
  z-index: 960;
  pointer-events: all;
}

.kb-mismatch-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 961;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  min-width: 280px;
  max-width: 480px;
  border: 1px solid rgba(255, 168, 0, 0.38);
  border-radius: 12px;
  background: #fff9ed;
  color: #8a5500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(200, 120, 0, 0.12);
  pointer-events: all;
  animation: kbMismatchIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.kb-mismatch-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.kb-mismatch-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.kb-mismatch-body strong {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.kb-mismatch-body span {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.8;
  line-height: 1.4;
}

.kb-mismatch-close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.12s;
}

.kb-mismatch-close:hover {
  opacity: 1;
}

@keyframes kbMismatchIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

body[data-theme="dark"] .kb-mismatch-toast {
  border-color: rgba(242, 183, 5, 0.3);
  background: #2a2210;
  color: #f2b705;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36), 0 2px 8px rgba(242, 183, 5, 0.08);
}

.type-config-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
}

.type-config-modal {
  width: min(620px, 100%);
  max-height: min(720px, 92vh);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 18px;
  background: #292d2f;
  color: #d7d2c8;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.type-config-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.type-config-header span {
  color: #f2b705;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.type-config-header h2 {
  margin-top: 4px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.type-config-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7d2c8;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}

.type-config-body {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.type-config-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.type-config-field span {
  color: #a7a49d;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.type-config-field input,
.type-config-field select,
.type-config-field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(242, 183, 5, 0.2);
  border-radius: 12px;
  background: #222629;
  color: #f3f0e7;
  padding: 12px 13px;
  font: inherit;
  font-weight: 750;
  outline: none;
}

.type-config-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.type-config-mode-row {
  display: flex;
  gap: 6px;
}

.type-config-mode-btn {
  flex: 1;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  color: #a7a49d;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.type-config-mode-btn.active {
  border-color: #f2b705;
  background: rgba(242, 183, 5, 0.12);
  color: #f2b705;
}

.type-config-mode-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: #d7d2c8;
}

.type-config-quote-picker {
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.type-config-quote-trigger {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(242, 183, 5, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(242, 183, 5, 0.1), rgba(242, 183, 5, 0.03)),
    #222629;
  color: #f3f0e7;
  padding: 11px 13px;
  font: inherit;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.type-config-quote-trigger > span:first-child {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.type-config-quote-trigger > span:last-child {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(242, 183, 5, 0.12);
  color: #f2b705;
  transition: transform 160ms ease;
}

.type-config-quote-picker.open .type-config-quote-trigger > span:last-child {
  transform: rotate(180deg);
}

.type-config-quote-trigger:focus-visible {
  border-color: rgba(242, 183, 5, 0.72);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.12);
}

.type-config-quote-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 90;
  max-height: 270px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(242, 183, 5, 0.2);
  border-radius: 12px;
  background: #202427;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.type-config-quote-option-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
}

.type-config-quote-option {
  min-width: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d7d2c8;
  padding: 10px 11px;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.type-config-quote-option-row:hover,
.type-config-quote-option-row.active {
  border-color: rgba(242, 183, 5, 0.24);
  background: rgba(242, 183, 5, 0.1);
}

.type-config-quote-option-row:hover .type-config-quote-option,
.type-config-quote-option-row.active .type-config-quote-option {
  color: #f2b705;
}

.type-config-quote-tools {
  align-self: stretch;
  display: grid;
  grid-template-columns: 34px 34px;
  border-left: 1px solid rgba(242, 183, 5, 0.14);
}

.type-config-quote-tool {
  min-height: 38px;
  align-self: center;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #aaa69b;
  cursor: pointer;
}

.type-config-quote-tool:hover {
  background: rgba(42, 166, 161, 0.12);
  color: #2aa6a1;
}

.type-config-quote-tool.danger:hover {
  background: rgba(255, 95, 87, 0.12);
  color: #ffb4ae;
}

.type-config-edit-cancel {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 9px;
  background: rgba(242, 183, 5, 0.06);
  color: #aaa69b;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.type-config-edit-cancel:hover {
  border-color: rgba(242, 183, 5, 0.34);
  color: #f2b705;
}

.type-config-language-guard {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(42, 166, 161, 0.24);
  border-radius: 10px;
  background: rgba(42, 166, 161, 0.08);
  color: #d7d2c8;
  padding: 9px 11px;
  font-size: 0.84rem;
  font-weight: 800;
}

.type-config-language-guard strong {
  flex: 0 0 auto;
  color: #2aa6a1;
}

.type-config-language-guard span {
  min-width: 0;
  color: #aaa69b;
  text-align: right;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.type-config-language-guard.danger {
  border-color: rgba(255, 95, 87, 0.35);
  background: rgba(255, 95, 87, 0.12);
}

.type-config-language-guard.danger strong,
.type-config-language-guard.danger span {
  color: #ffb4ae;
}

.type-config-field input:focus,
.type-config-field select:focus,
.type-config-field textarea:focus {
  border-color: rgba(242, 183, 5, 0.72);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.12);
}

.type-config-help {
  min-width: 0;
  max-width: 100%;
  color: #aaa69b;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.type-config-error {
  margin-top: 14px;
  border-radius: 12px;
  background: rgba(255, 95, 87, 0.12);
  color: #ffb4ae;
  padding: 10px 12px;
  font-weight: 800;
}

.type-config-convert-preview {
  min-width: 0;
  max-width: 100%;
  color: #2aa6a1;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  font-style: italic;
  opacity: 0.9;
}

.type-config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.secondary-action {
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #c9c4ba;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

body[data-theme="light"] .secondary-action {
  color: #766541;
}

body[data-theme="light"] .type-config-modal {
  background: #f7f0de;
  color: #1f2020;
}

body[data-theme="light"] .type-config-field input,
body[data-theme="light"] .type-config-field select,
body[data-theme="light"] .type-config-field textarea {
  background: #fffaf0;
  color: #1f2020;
}

body[data-theme="light"] .mode-quote-trigger,
body[data-theme="light"] .type-config-quote-trigger {
  border-color: rgba(138, 160, 0, 0.2);
  background:
    linear-gradient(180deg, rgba(242, 183, 5, 0.12), rgba(255, 255, 255, 0.4)),
    #fffaf0;
  color: #1f2020;
}

body[data-theme="light"] .mode-quote-menu,
body[data-theme="light"] .type-config-quote-menu {
  border-color: rgba(138, 160, 0, 0.18);
  background: #fffaf0;
}

body[data-theme="light"] .mode-quote-option,
body[data-theme="light"] .type-config-quote-option,
body[data-theme="light"] .type-config-quote-tool,
body[data-theme="light"] .type-config-edit-cancel,
body[data-theme="light"] .type-config-language-guard {
  color: #4d4b45;
}

body[data-theme="light"] .mode-custom-value {
  color: #4d4b45;
}

body[data-theme="light"] .type-test-notice {
  border-color: rgba(42, 166, 161, 0.28);
  background: #e8f9f8;
  color: #1a3a42;
}

body[data-theme="light"] .type-test-notice.info {
  border-color: rgba(180, 130, 0, 0.28);
  background: #fef9e4;
  color: #4a3000;
}

body[data-theme="light"] .type-test-notice.danger {
  border-color: rgba(200, 50, 50, 0.24);
  background: #fef0f0;
  color: #5c0a0a;
}

body[data-custom-colors="true"] .mode-quote-trigger,
body[data-custom-colors="true"] .mode-quote-menu,
body[data-custom-colors="true"] .type-config-quote-trigger,
body[data-custom-colors="true"] .type-config-quote-menu,
body[data-custom-colors="true"] .type-config-field input,
body[data-custom-colors="true"] .type-config-field select,
body[data-custom-colors="true"] .type-config-field textarea {
  border-color: color-mix(in srgb, var(--app-custom-accent) 22%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--app-custom-accent) 10%, transparent),
      color-mix(in srgb, var(--app-custom-text) 6%, transparent)
    ),
    var(--app-custom-bg);
  color: var(--app-custom-text);
}

/* ── App version badge ── */
.app-version-badge {
  position: fixed;
  bottom: 7px;
  right: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.28;
  color: inherit;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
/* noto-sans-khmer-khmer-400-normal */
@font-face {
  font-family: 'Noto Sans Khmer';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./noto-sans-khmer-khmer-400-normal-DnqNet9s.woff2) format('woff2'), url(./noto-sans-khmer-khmer-400-normal-CfhpqDv8.woff) format('woff');
  unicode-range: U+1780-17FF,U+19E0-19FF,U+200C-200D,U+25CC;
}

/* noto-sans-khmer-latin-ext-400-normal */
@font-face {
  font-family: 'Noto Sans Khmer';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./noto-sans-khmer-latin-ext-400-normal-DodaIRJA.woff2) format('woff2'), url(./noto-sans-khmer-latin-ext-400-normal-Bd3ZAoRX.woff) format('woff');
  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;
}

/* noto-sans-khmer-latin-400-normal */
@font-face {
  font-family: 'Noto Sans Khmer';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./noto-sans-khmer-latin-400-normal-BLI6HyUZ.woff2) format('woff2'), url(./noto-sans-khmer-latin-400-normal-Dek0CCYB.woff) format('woff');
  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;
}/* hanuman-khmer-400-normal */
@font-face {
  font-family: 'Hanuman';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./hanuman-khmer-400-normal-CHnYKCL1.woff2) format('woff2'), url(./hanuman-khmer-400-normal-CAhb-3dc.woff) format('woff');
  unicode-range: U+1780-17FF,U+19E0-19FF,U+200C-200D,U+25CC;
}

/* hanuman-latin-400-normal */
@font-face {
  font-family: 'Hanuman';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./hanuman-latin-400-normal-CGuH6Z7K.woff2) format('woff2'), url(./hanuman-latin-400-normal-vh7qAxe_.woff) format('woff');
  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;
}/* battambang-khmer-400-normal */
@font-face {
  font-family: 'Battambang';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./battambang-khmer-400-normal-s3caPRQm.woff2) format('woff2'), url(./battambang-khmer-400-normal-qFamkjv4.woff) format('woff');
  unicode-range: U+1780-17FF,U+19E0-19FF,U+200C-200D,U+25CC;
}

/* battambang-latin-400-normal */
@font-face {
  font-family: 'Battambang';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./battambang-latin-400-normal-BDG-aP-o.woff2) format('woff2'), url(./battambang-latin-400-normal-DtOJnmI9.woff) format('woff');
  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;
}/* khmer-khmer-400-normal */
@font-face {
  font-family: 'Khmer';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./khmer-khmer-400-normal-ddEOfdwC.woff2) format('woff2'), url(./khmer-khmer-400-normal-f720Nyqp.woff) format('woff');
  unicode-range: U+1780-17FF,U+19E0-19FF,U+200C-200D,U+25CC,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;
}/* inter-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./inter-cyrillic-ext-400-normal-BQZuk6qB.woff2) format('woff2'), url(./inter-cyrillic-ext-400-normal-DQukG94-.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./inter-cyrillic-400-normal-obahsSVq.woff2) format('woff2'), url(./inter-cyrillic-400-normal-HOLc17fK.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./inter-greek-ext-400-normal-DGGRlc-M.woff2) format('woff2'), url(./inter-greek-ext-400-normal-KugGGMne.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./inter-greek-400-normal-B4URO6DV.woff2) format('woff2'), url(./inter-greek-400-normal-q2sYcFCs.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./inter-vietnamese-400-normal-DMkecbls.woff2) format('woff2'), url(./inter-vietnamese-400-normal-Bbgyi5SW.woff) format('woff');
  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;
}

/* inter-latin-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./inter-latin-ext-400-normal-C1nco2VV.woff2) format('woff2'), url(./inter-latin-ext-400-normal-77YHD8bZ.woff) format('woff');
  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;
}

/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./inter-latin-400-normal-C38fXH4l.woff2) format('woff2'), url(./inter-latin-400-normal-CyCys3Eg.woff) format('woff');
  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;
}/* inter-cyrillic-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./inter-cyrillic-ext-500-normal-B0yAr1jD.woff2) format('woff2'), url(./inter-cyrillic-ext-500-normal-BmqWE9Dz.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./inter-cyrillic-500-normal-BasfLYem.woff2) format('woff2'), url(./inter-cyrillic-500-normal-CxZf_p3X.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./inter-greek-ext-500-normal-C4iEst2y.woff2) format('woff2'), url(./inter-greek-ext-500-normal-2j5mBUwD.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./inter-greek-500-normal-BIZE56-Y.woff2) format('woff2'), url(./inter-greek-500-normal-Xzm54t5V.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./inter-vietnamese-500-normal-DOriooB6.woff2) format('woff2'), url(./inter-vietnamese-500-normal-mJboJaSs.woff) format('woff');
  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;
}

/* inter-latin-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./inter-latin-ext-500-normal-CV4jyFjo.woff2) format('woff2'), url(./inter-latin-ext-500-normal-BxGbmqWO.woff) format('woff');
  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;
}

/* inter-latin-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(./inter-latin-500-normal-Cerq10X2.woff2) format('woff2'), url(./inter-latin-500-normal-BL9OpVg8.woff) format('woff');
  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;
}