@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,700;9..144,800&display=swap");

/* tc-scoped:tc-wp-tool-root */

.tc-wp-tool-root{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flow-root;
  isolation: isolate;
  position: relative;
}.wpc-scope-77 .tc-wp-tool-root img, .wpc-scope-77 .tc-wp-tool-root video, .wpc-scope-77 .tc-wp-tool-root svg, .wpc-scope-77 .tc-wp-tool-root iframe{
  max-width: 100%;
  height: auto;
}.wpc-scope-77 .tc-wp-tool-root{
      --transition-duration: 280ms;
      --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
      --transition-flip: 550ms;
      --bg: #0f172a;
      --bg-elevated: #1e293b;
      --surface: rgba(30, 41, 59, 0.85);
      --surface-solid: #1e293b;
      --border: #334155;
      --border-focus: #475569;
      --text: #f1f5f9;
      --text-muted: #94a3b8;
      --correct: #10b981;
      --present: #f59e0b;
      --elsewhere: #6366f1;
      --absent: #475569;
      --indigo: #6366f1;
      --emerald: #10b981;
      --radius-cell: 10px;
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 18px;
      --cell-size: clamp(28px, 6.5vw, 52px);
      --shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.06);
      --shadow-soft: 0 4px 12px rgb(0 0 0 / 0.15);
      --shadow-card: 0 8px 32px rgb(0 0 0 / 0.25), 0 2px 8px rgb(0 0 0 / 0.15);
      --shadow-key: 0 2px 0 0 rgb(0 0 0 / 0.2);
      --blur: 12px;
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"]{
      --bg: #f1f5f9;
      --bg-elevated: #ffffff;
      --surface: rgba(255, 255, 255, 0.9);
      --surface-solid: #ffffff;
      --border: #94a3b8;
      --border-focus: #64748b;
      --text: #0f172a;
      --text-muted: #475569;
      --correct: #059669;
      --present: #d97706;
      --elsewhere: #6366f1;
      --absent: #94a3b8;
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .game-wrapper{
      background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(148, 163, 184, 0.2) 0%, transparent 55%);
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .category-tag{
      color: #4338ca;
      background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
      border: 1px solid #818cf8;
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .game-area-wrap, .wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .keyboard-dock, .wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .header-wrapper{
      background: var(--surface);
      backdrop-filter: blur(var(--blur));
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .cell{
      background: var(--surface-solid);
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .cell.filled{
      border-color: var(--border-focus);
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .key{
      background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
      color: var(--text);
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .key:hover{
      background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .icon-btn{
      background: var(--surface-solid);
    }.wpc-scope-77 .tc-wp-tool-root *{
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }.wpc-scope-77 .tc-wp-tool-root{
      transition: background-color var(--transition-duration) var(--transition-ease);
      -webkit-text-size-adjust: 100%;
    }.wpc-scope-77 .tc-wp-tool-root .game-wrapper{
      font-family: 'Inter', system-ui, sans-serif;
      background: var(--bg);
      background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
      color: var(--text);
      min-height: 100vh;
      min-height: 100dvh;
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      transition: background-color var(--transition-duration) var(--transition-ease);
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }.wpc-scope-77 .tc-wp-tool-root .header-wrapper{
      padding: 0.75rem 1rem;
      padding-top: max(0.75rem, env(safe-area-inset-top));
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      max-width: min(960px, 100%);
      margin: 0 auto;
      width: 100%;
      min-width: 0;
      background: var(--surface);
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }.wpc-scope-77 .tc-wp-tool-root .game-title{
      font-family: 'Fraunces', Georgia, serif;
      font-size: clamp(1rem, 4vw, 1.5rem);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1.2;
      color: var(--text);
      flex: 1 1 100%;
      min-width: 0;
      margin-bottom: 0.25rem;
    }.wpc-scope-77 .tc-wp-tool-root .header-actions{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      flex: 1 1 100%;
      min-width: 0;
    }.wpc-scope-77 .tc-wp-tool-root .mode-pills{
      display: flex;
      background: var(--bg-elevated);
      border-radius: 100px;
      padding: 4px;
      border: 1px solid var(--border);
    }.wpc-scope-77 .tc-wp-tool-root .mode-pills .mode-btn{
      padding: 6px 14px;
      border: none;
      border-radius: 100px;
      font-family: 'Inter', sans-serif;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      background: transparent;
      color: var(--text-muted);
      transition: all var(--transition-duration) var(--transition-ease);
    }.wpc-scope-77 .tc-wp-tool-root .mode-pills .mode-btn.active{
      background: var(--indigo);
      color: #fff;
    }.wpc-scope-77 .tc-wp-tool-root .mode-pills .mode-btn:not(.active):hover{
      color: var(--text);
    }.wpc-scope-77 .tc-wp-tool-root .icon-btn{
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface-solid);
      border: 1px solid var(--border);
      color: var(--text);
      border-radius: var(--radius-sm);
      cursor: pointer;
      font-size: 1.15rem;
      transition: all var(--transition-duration) var(--transition-ease);
      box-shadow: var(--shadow-subtle);
    }.wpc-scope-77 .tc-wp-tool-root .icon-btn:hover{
      background: var(--bg-elevated);
      border-color: var(--border-focus);
      transform: translateY(-1px);
      box-shadow: var(--shadow-soft);
    }.wpc-scope-77 .tc-wp-tool-root .icon-btn:active{
      transform: translateY(0);
    }.wpc-scope-77 .tc-wp-tool-root .icon-btn:focus-visible{
      outline: 2px solid var(--elsewhere);
      outline-offset: 2px;
    }.wpc-scope-77 .tc-wp-tool-root .main-content{
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0.75rem 0.5rem 0.5rem;
      padding-left: max(0.5rem, env(safe-area-inset-left));
      padding-right: max(0.5rem, env(safe-area-inset-right));
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      gap: 0.75rem;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
    }.wpc-scope-77 .tc-wp-tool-root .phrase-info{
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem 1rem;
      flex-wrap: wrap;
      padding-bottom: 0.5rem;
      min-width: 0;
      width: 100%;
    }.wpc-scope-77 .tc-wp-tool-root .category-tag{
      font-size: clamp(0.6rem, 2vw, 0.7rem);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #a5b4fc;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%);
      padding: 0.4rem 0.75rem;
      border-radius: 100px;
      margin-bottom: 0;
      display: inline-block;
      border: 1px solid rgba(99, 102, 241, 0.4);
    }.wpc-scope-77 .tc-wp-tool-root .structure-hint{
      font-size: clamp(0.75rem, 2.5vw, 0.875rem);
      color: var(--text-muted);
      font-weight: 500;
      letter-spacing: 0.03em;
    }.wpc-scope-77 .tc-wp-tool-root .game-area-wrap{
      width: fit-content;
      max-width: 100%;
      min-width: 0;
      padding: clamp(0.75rem, 3vw, 1.5rem);
      background: var(--surface);
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-card);
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .game-area-wrap .phrase-info{
      margin-bottom: 0.5rem;
    }.wpc-scope-77 .tc-wp-tool-root [data-theme="light"] .game-area-wrap .grid{
      margin-top: 0.5rem;
    }.wpc-scope-77 .tc-wp-tool-root .grid{
      display: flex;
      flex-direction: column;
      gap: clamp(4px, 1.5vw, 8px);
      width: max-content;
      max-width: 100%;
      min-width: 0;
      margin: 0 auto;
      perspective: 1200px;
      overflow-x: auto;
      overflow-y: visible;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
    }.wpc-scope-77 .tc-wp-tool-root .grid::-webkit-scrollbar{
      display: none;
    }.wpc-scope-77 .tc-wp-tool-root .guess-row{
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0;
      flex-wrap: nowrap;
      transform-style: preserve-3d;
    }.wpc-scope-77 .tc-wp-tool-root .word-group{
      display: inline-flex;
      gap: clamp(3px, 1vw, 5px);
      padding: 0 clamp(4px, 2vw, 10px);
    }.wpc-scope-77 .tc-wp-tool-root .cell{
      width: var(--cell-size);
      height: var(--cell-size);
      min-width: var(--cell-size);
      min-height: var(--cell-size);
      border: 2px solid var(--border);
      border-radius: var(--radius-cell);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Fraunces', Georgia, serif;
      font-size: clamp(0.75rem, 2.8vw, 1.35rem);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      line-height: 1;
      user-select: none;
      background: var(--bg-elevated);
      color: var(--text);
      box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.15), 0 1px 0 0 rgba(255, 255, 255, 0.04);
      transition: transform var(--transition-duration) var(--transition-ease), border-color var(--transition-duration) var(--transition-ease);
      transform-style: preserve-3d;
      backface-visibility: hidden;
    }.wpc-scope-77 .tc-wp-tool-root .cell.filled{
      border-color: var(--border-focus);
      background: var(--surface-solid);
      animation: cellSquashStretch var(--transition-duration) var(--transition-ease);
    }@keyframes cellSquashStretch{
      0% {
        transform: scale(1, 1);
      }

      40% {
        transform: scale(1.08, 0.92);
      }

      70% {
        transform: scale(0.96, 1.05);
      }

      100% {
        transform: scale(1, 1);
      }
    }.wpc-scope-77 .tc-wp-tool-root .cell.reveal{
      animation: flip3d var(--transition-flip) var(--transition-ease) forwards;
      color: #fff !important;
    }.wpc-scope-77 .tc-wp-tool-root .cell.correct{
      background: var(--correct);
      border-color: var(--correct);
      box-shadow: 0 0 0 2px var(--correct);
    }.wpc-scope-77 .tc-wp-tool-root .cell.present{
      background: var(--present);
      border-color: var(--present);
      color: #fff !important;
    }.wpc-scope-77 .tc-wp-tool-root .cell.elsewhere{
      background: var(--elsewhere);
      border-color: var(--elsewhere);
      color: #fff !important;
    }.wpc-scope-77 .tc-wp-tool-root .cell.absent{
      background: var(--absent);
      border-color: var(--absent);
      color: var(--text-muted) !important;
    }@keyframes flip3d{
      0% {
        transform: rotateX(0deg);
      }

      50% {
        transform: rotateX(-90deg);
      }

      100% {
        transform: rotateX(0deg);
      }
    }.wpc-scope-77 .tc-wp-tool-root .guess-row.jiggle{
      animation: jiggle 0.5s var(--transition-ease);
    }@keyframes jiggle{

      0%,
      100% {
        transform: translateX(0);
      }

      15% {
        transform: translateX(-6px);
      }

      30% {
        transform: translateX(5px);
      }

      45% {
        transform: translateX(-4px);
      }

      60% {
        transform: translateX(3px);
      }

      75% {
        transform: translateX(-2px);
      }
    }.wpc-scope-77 .tc-wp-tool-root .guess-row.bounce{
      animation: rowBounce 0.6s var(--transition-ease);
    }@keyframes rowBounce{

      0%,
      100% {
        transform: scale(1);
      }

      40% {
        transform: scale(1.03);
      }

      70% {
        transform: scale(0.99);
      }
    }.wpc-scope-77 .tc-wp-tool-root .keyboard-dock{
      flex-shrink: 0;
      min-width: 0;
      width: 100%;
      background: var(--surface);
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
      padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
      padding-left: max(0.5rem, env(safe-area-inset-left));
      padding-right: max(0.5rem, env(safe-area-inset-right));
      width: 100%;
      border-top: 1px solid var(--border);
      box-shadow: 0 -6px 20px rgb(0 0 0 / 0.15);
    }.wpc-scope-77 .tc-wp-tool-root .keyboard{
      max-width: min(540px, 100%);
      width: 100%;
      min-width: 0;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: clamp(4px, 1vw, 6px);
    }.wpc-scope-77 .tc-wp-tool-root .kb-row{
      display: flex;
      justify-content: center;
      gap: clamp(4px, 1vw, 6px);
      touch-action: manipulation;
    }.wpc-scope-77 .tc-wp-tool-root .key{
      height: clamp(44px, 12vw, 54px);
      min-width: 28px;
      max-width: 44px;
      min-height: 44px;
      flex: 1;
      background: linear-gradient(180deg, var(--surface-solid) 0%, var(--bg-elevated) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: clamp(0.75rem, 2.2vw, 0.9rem);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      box-shadow: var(--shadow-key);
      transition: all var(--transition-duration) var(--transition-ease);
    }.wpc-scope-77 .tc-wp-tool-root .key:hover{
      background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--surface-solid) 100%);
      border-color: var(--border-focus);
      transform: translateY(-1px);
      box-shadow: 0 3px 0 0 rgb(0 0 0 / 0.2);
    }.wpc-scope-77 .tc-wp-tool-root .key:active{
      transform: translateY(2px);
      box-shadow: 0 0 0 0 rgb(0 0 0 / 0.2);
    }.wpc-scope-77 .tc-wp-tool-root .key:focus-visible{
      outline: 2px solid var(--elsewhere);
      outline-offset: 2px;
    }.wpc-scope-77 .tc-wp-tool-root .key.wide{
      max-width: 72px;
      font-size: clamp(0.65rem, 1.8vw, 0.72rem);
      font-weight: 700;
    }.wpc-scope-77 .tc-wp-tool-root .key.correct{
      background: var(--correct) !important;
      border-color: var(--correct) !important;
      color: #fff !important;
    }.wpc-scope-77 .tc-wp-tool-root .key.present{
      background: var(--present) !important;
      border-color: var(--present) !important;
      color: #fff !important;
    }.wpc-scope-77 .tc-wp-tool-root .key.elsewhere{
      background: var(--elsewhere) !important;
      border-color: var(--elsewhere) !important;
      color: #fff !important;
    }.wpc-scope-77 .tc-wp-tool-root .key.absent{
      background: var(--absent) !important;
      border-color: var(--absent) !important;
      color: var(--text-muted) !important;
      opacity: 0.9;
    }.wpc-scope-77 .tc-wp-tool-root .modal-overlay{
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.7);
      backdrop-filter: blur(8px);
      display: grid;
      place-items: center;
      padding: 1.25rem;
      padding-top: max(1.25rem, env(safe-area-inset-top));
      padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
      padding-left: max(1.25rem, env(safe-area-inset-left));
      padding-right: max(1.25rem, env(safe-area-inset-right));
      z-index: 100;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition-duration) var(--transition-ease);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }.wpc-scope-77 .tc-wp-tool-root .modal-overlay.active{
      opacity: 1;
      pointer-events: auto;
    }.wpc-scope-77 .tc-wp-tool-root .modal{
      background: var(--surface-solid);
      padding: clamp(1.25rem, 4vw, 2rem);
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: min(440px, calc(100vw - 2rem));
      max-height: min(90vh, 90dvh);
      overflow-y: auto;
      box-shadow: var(--shadow-card);
      border: 1px solid var(--border);
      transition: transform var(--transition-duration) var(--transition-ease);
      margin: auto;
    }.wpc-scope-77 .tc-wp-tool-root .modal-title{
      font-family: 'Inter', sans-serif;
      font-size: clamp(1.125rem, 3.5vw, 1.3125rem);
      font-weight: 700;
      margin-bottom: 0.75rem;
      letter-spacing: -0.03em;
      color: var(--text);
    }.wpc-scope-77 .tc-wp-tool-root .modal-text, .wpc-scope-77 .tc-wp-tool-root .modal-list{
      color: var(--text-muted);
      font-size: clamp(0.875rem, 2.2vw, 0.9375rem);
      line-height: 1.65;
      margin-bottom: 0.75rem;
    }.wpc-scope-77 .tc-wp-tool-root .modal-list{
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }.wpc-scope-77 .tc-wp-tool-root .modal .swatch{
      display: inline-block;
      width: 16px;
      height: 16px;
      border-radius: 4px;
      margin-right: 10px;
      vertical-align: middle;
    }.wpc-scope-77 .tc-wp-tool-root .stats-grid{
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.75rem;
      margin-bottom: 1.25rem;
    }.wpc-scope-77 .tc-wp-tool-root .stat-box{
      text-align: center;
      padding: 0.75rem;
      background: var(--bg-elevated);
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
    }.wpc-scope-77 .tc-wp-tool-root .stat-box .value{
      font-size: clamp(1.25rem, 4vw, 1.5rem);
      font-weight: 700;
      color: var(--text);
    }.wpc-scope-77 .tc-wp-tool-root .stat-box .label{
      font-size: 0.65rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 2px;
    }.wpc-scope-77 .tc-wp-tool-root .dist-section{
      margin-bottom: 1rem;
    }.wpc-scope-77 .tc-wp-tool-root .dist-section .label{
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }.wpc-scope-77 .tc-wp-tool-root .dist-bar-wrap{
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 4px;
    }.wpc-scope-77 .tc-wp-tool-root .dist-bar-wrap .guess-num{
      width: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-muted);
    }.wpc-scope-77 .tc-wp-tool-root .dist-bar-wrap .bar-bg{
      flex: 1;
      height: 22px;
      background: var(--bg-elevated);
      border-radius: 4px;
      overflow: hidden;
    }.wpc-scope-77 .tc-wp-tool-root .dist-bar-wrap .bar-fill{
      height: 100%;
      background: var(--correct);
      border-radius: 4px;
      min-width: 0;
      transition: width var(--transition-duration) var(--transition-ease);
    }.wpc-scope-77 .tc-wp-tool-root .countdown{
      font-size: 0.9rem;
      color: var(--text-muted);
      margin-top: 1rem;
    }.wpc-scope-77 .tc-wp-tool-root .game-over-actions{
      display: flex;
      gap: 10px;
      margin-top: 1.5rem;
    }.wpc-scope-77 .tc-wp-tool-root .game-over-actions .btn-primary{
      flex: 1;
      margin-top: 0;
    }.wpc-scope-77 .tc-wp-tool-root .btn-secondary{
      padding: 14px 20px;
      background: var(--bg-elevated);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: 0.9375rem;
      cursor: pointer;
      transition: all var(--transition-duration) var(--transition-ease);
    }.wpc-scope-77 .tc-wp-tool-root .btn-secondary:hover{
      border-color: var(--border-focus);
    }.wpc-scope-77 .tc-wp-tool-root .settings-row{
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
    }.wpc-scope-77 .tc-wp-tool-root .settings-row label{
      font-size: 0.9375rem;
      color: var(--text);
    }.wpc-scope-77 .tc-wp-tool-root .toggle{
      width: 48px;
      height: 26px;
      background: var(--border);
      border-radius: 100px;
      cursor: pointer;
      position: relative;
      transition: background var(--transition-duration);
    }.wpc-scope-77 .tc-wp-tool-root .toggle.on{
      background: var(--correct);
    }.wpc-scope-77 .tc-wp-tool-root .toggle::after{
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #fff;
      top: 3px;
      left: 3px;
      transition: transform var(--transition-duration);
      box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
    }.wpc-scope-77 .tc-wp-tool-root .toggle.on::after{
      transform: translateX(22px);
    }.wpc-scope-77 .tc-wp-tool-root .btn-primary{
      width: 100%;
      padding: clamp(12px, 3vw, 14px) clamp(16px, 4vw, 20px);
      background: linear-gradient(180deg, #14b8a6 0%, var(--correct) 50%, #0d9668 100%);
      color: #fff;
      border: none;
      border-radius: var(--radius-sm);
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: clamp(0.875rem, 2.2vw, 0.9375rem);
      margin-top: 1.5rem;
      cursor: pointer;
      transition: all var(--transition-duration) var(--transition-ease);
      box-shadow: 0 4px 12px rgb(16 185 129 / 0.35);
    }.wpc-scope-77 .tc-wp-tool-root .btn-primary:hover{
      filter: brightness(1.08);
      transform: translateY(-1px);
    }.wpc-scope-77 .tc-wp-tool-root .btn-primary:active{
      transform: translateY(0);
    }.wpc-scope-77 .tc-wp-tool-root .btn-primary:focus-visible{
      outline: 2px solid var(--correct);
      outline-offset: 2px;
    }.wpc-scope-77 .tc-wp-tool-root .hint-btn{
      padding: clamp(6px, 2vw, 8px) clamp(12px, 3vw, 16px);
      font-size: clamp(0.7rem, 2vw, 0.8rem);
      font-weight: 600;
      border-radius: 100px;
      border: 1px solid var(--elsewhere);
      background: rgba(99, 102, 241, 0.2);
      color: var(--elsewhere);
      cursor: pointer;
      transition: all var(--transition-duration) var(--transition-ease);
    }.wpc-scope-77 .tc-wp-tool-root .hint-btn:hover:not(:disabled){
      background: rgba(99, 102, 241, 0.35);
    }.wpc-scope-77 .tc-wp-tool-root .hint-btn:disabled{
      opacity: 0.5;
      cursor: not-allowed;
    }.wpc-scope-77 .tc-wp-tool-root .hidden{
      display: none !important;
    }.wpc-scope-77 .tc-wp-tool-root .toast{
      position: fixed;
      top: 14%;
      left: 50%;
      transform: translateX(-50%);
      max-width: min(90vw, 320px);
      background: var(--text);
      color: var(--bg);
      padding: 0.75rem 1.25rem;
      border-radius: 100px;
      font-weight: 600;
      font-size: clamp(0.8rem, 2vw, 0.9rem);
      z-index: 200;
      box-shadow: var(--shadow-card);
      animation: toastIn 0.35s var(--transition-ease);
    }@keyframes toastIn{
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
      }

      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }@media (max-width: 359px){.tc-wp-tool-root{
        --cell-size: clamp(26px, 8vw, 32px);
        --radius-cell: 8px;
      }.tc-wp-tool-root .header-wrapper{
        padding: 0.5rem 0.5rem;
        padding-top: max(0.5rem, env(safe-area-inset-top));
      }.tc-wp-tool-root .game-title{
        font-size: 0.9rem;
      }.tc-wp-tool-root .mode-pills .mode-btn{
        padding: 4px 8px;
        font-size: 0.65rem;
      }.tc-wp-tool-root .icon-btn{
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 0.9rem;
      }.tc-wp-tool-root .main-content{
        padding: 0.5rem 0.25rem 0.25rem;
      }.tc-wp-tool-root .game-area-wrap{
        padding: 0.5rem;
      }.tc-wp-tool-root .category-tag{
        padding: 0.3rem 0.5rem;
        font-size: 0.55rem;
      }.tc-wp-tool-root .structure-hint{
        font-size: 0.7rem;
      }.tc-wp-tool-root .hint-btn{
        padding: 6px 12px;
        font-size: 0.7rem;
      }.tc-wp-tool-root .key{
        height: 42px;
        min-height: 42px;
        min-width: 22px;
        max-width: 32px;
        font-size: 0.7rem;
      }.tc-wp-tool-root .key.wide{
        max-width: 48px;
        font-size: 0.6rem;
      }.tc-wp-tool-root .modal{
        padding: 1rem;
        max-width: calc(100vw - 1rem);
      }.tc-wp-tool-root .stats-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
      }.tc-wp-tool-root .stat-box{
        padding: 0.5rem;
      }.tc-wp-tool-root .stat-box .value{
        font-size: 1.1rem;
      }.tc-wp-tool-root .dist-bar-wrap .bar-bg{
        height: 18px;
      }}@media (min-width: 360px) and (max-width: 389px){.tc-wp-tool-root{
        --cell-size: clamp(28px, 7.5vw, 36px);
      }.tc-wp-tool-root .key{
        min-width: 24px;
        max-width: 36px;
      }.tc-wp-tool-root .key.wide{
        max-width: 52px;
      }}@media (max-width: 480px){.tc-wp-tool-root .mode-pills{
        padding: 2px;
      }.tc-wp-tool-root .mode-pills .mode-btn{
        padding: 5px 10px;
        font-size: 0.72rem;
      }.tc-wp-tool-root .stats-grid{
        grid-template-columns: repeat(2, 1fr);
      }.tc-wp-tool-root .game-over-actions{
        flex-direction: column;
      }.tc-wp-tool-root .game-over-actions .btn-primary, .tc-wp-tool-root .game-over-actions .btn-secondary{
        width: 100%;
      }}@media (min-width: 480px){.tc-wp-tool-root .header-wrapper{
        flex-wrap: nowrap;
      }.tc-wp-tool-root .game-title{
        flex: 0 1 auto;
        margin-bottom: 0;
      }.tc-wp-tool-root .header-actions{
        flex: 0 1 auto;
        justify-content: flex-end;
      }}@media (max-width: 375px){.tc-wp-tool-root{
        --cell-size: clamp(28px, 7vw, 40px);
      }.tc-wp-tool-root .main-content{
        padding: 0.75rem 0.5rem 0.5rem;
        gap: 0.5rem;
      }.tc-wp-tool-root .key{
        height: 48px;
        min-height: 48px;
        min-width: 24px;
        max-width: 36px;
        font-size: 0.8rem;
      }.tc-wp-tool-root .key.wide{
        max-width: 56px;
        font-size: 0.65rem;
      }}@media (max-height: 600px){.tc-wp-tool-root{
        --cell-size: clamp(26px, 5.5vh, 38px);
      }.tc-wp-tool-root .main-content{
        padding: 0.5rem 0.5rem 0.25rem;
        gap: 0.5rem;
      }.tc-wp-tool-root .game-area-wrap{
        padding: 0.5rem 0.75rem;
      }.tc-wp-tool-root .grid{
        gap: 4px;
      }.tc-wp-tool-root .keyboard-dock{
        padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
      }.tc-wp-tool-root .key{
        height: 40px;
        min-height: 40px;
      }}@media (max-height: 500px){.tc-wp-tool-root{
        --cell-size: clamp(24px, 5vh, 32px);
      }.tc-wp-tool-root .key{
        height: 38px;
        min-height: 38px;
      }}@media (min-width: 768px){.tc-wp-tool-root .header-wrapper{
        padding: 1rem 1.25rem;
        padding-top: max(1rem, env(safe-area-inset-top));
      }.tc-wp-tool-root .main-content{
        padding: 1.25rem 1rem 0.75rem;
        gap: 1rem;
      }.tc-wp-tool-root .game-area-wrap{
        padding: 1.5rem;
      }.tc-wp-tool-root .grid{
        gap: 8px;
      }.tc-wp-tool-root .keyboard-dock{
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
      }.tc-wp-tool-root .key{
        height: 54px;
      }}@media (min-width: 1024px){.tc-wp-tool-root{
        --cell-size: clamp(44px, 4vw, 52px);
      }.tc-wp-tool-root .header-wrapper{
        max-width: 960px;
      }}@media (min-width: 1440px){.tc-wp-tool-root{
        --cell-size: 52px;
      }}.wpc-scope-77 /* tc-layout-guard: stay in page body flow — do not overlap theme header/nav */
.tc-wp-tool-root{
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  z-index: 0 !important;
}