.si-squarespell{--gold:#f4c542;--bg:#0b0b0b;--panel:#141414;--line:#383838;max-width:760px;margin:28px auto;padding:24px;border-radius:26px;background:var(--bg);color:#fff;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 30px 80px rgba(0,0,0,.28);outline:0}.si-squarespell *{box-sizing:border-box}.si-squarespell button{font:inherit}.si-squarespell__topbar,.si-squarespell__leaderboard-head{display:flex;align-items:center;justify-content:space-between}.si-squarespell__eyebrow{font-size:11px;letter-spacing:.18em;color:#999}.si-squarespell h2{margin:2px 0 0;font-size:34px;letter-spacing:.055em}.si-squarespell h3{font-size:14px;margin:0;color:#ddd}.si-squarespell__fullscreen{width:44px;height:44px;border:2px solid var(--line);border-radius:10px;background:#161616;color:#fff;cursor:pointer}.si-squarespell__status{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:20px}.si-squarespell__status>div{background:var(--panel);border:2px solid #292929;border-radius:14px;padding:13px}.si-squarespell__status span{display:block;font-size:11px;color:#999;text-transform:uppercase;letter-spacing:.08em}.si-squarespell__status strong{display:block;margin-top:4px;font-size:20px}.si-squarespell__message{text-align:center;color:#c2c2c2;min-height:24px;margin-top:17px}.si-squarespell__entry{text-align:center;height:47px;font-size:33px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.si-squarespell__board{display:grid;grid-template-columns:repeat(4,86px);gap:7px;justify-content:center;width:max-content;margin:7px auto 17px}.si-squarespell__letter{width:86px;height:86px;border:3px solid #444;border-radius:9px;background:#1d1d1d;color:#fff;font-size:32px;font-weight:850;text-transform:uppercase;cursor:pointer;transition:transform .1s ease,background .1s ease,border-color .1s ease}.si-squarespell__letter:hover{transform:translateY(-2px);border-color:#656565}.si-squarespell__letter.is-center{background:var(--gold);border-color:var(--gold);color:#111}.si-squarespell__actions{display:flex;justify-content:center;gap:10px}.si-squarespell__actions button,.si-squarespell__leaderboard button{border:2px solid #343434;background:#171717;color:#ddd;border-radius:999px;padding:10px 17px;cursor:pointer}.si-squarespell__submit{background:var(--gold)!important;color:#111!important;border-color:var(--gold)!important;font-weight:750}.si-squarespell__progress{height:7px;background:#222;border-radius:99px;overflow:hidden;margin:22px 0}.si-squarespell__progress i{display:block;height:100%;width:0;background:var(--gold);transition:width .25s ease}.si-squarespell__found-wrap,.si-squarespell__leaderboard{background:#121212;border:2px solid #292929;border-radius:17px;padding:17px;margin-top:13px}.si-squarespell__found{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.si-squarespell__found span{padding:7px 10px;border-radius:7px;background:#202020;border:1px solid #333;font-size:13px;text-transform:uppercase}.si-squarespell__found span.country{background:#123047}.si-squarespell__found span.slang{background:#362148}.si-squarespell__leaderboard ol{margin:14px 0 0;padding-left:24px}.si-squarespell__leaderboard li{padding:5px 0;color:#ddd}.si-squarespell:fullscreen{max-width:none;width:100%;height:100%;border-radius:0;overflow:auto}.si-squarespell.is-good{animation:squarePulse .35s ease}.si-squarespell.is-bad .si-squarespell__entry{animation:squareShake .25s linear}@keyframes squarePulse{50%{box-shadow:0 0 0 6px rgba(244,197,66,.15)}}@keyframes squareShake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}@media(max-width:600px){.si-squarespell{margin:0;border-radius:0;min-height:100vh;padding:17px}.si-squarespell h2{font-size:29px}.si-squarespell__board{grid-template-columns:repeat(4,min(20vw,78px));gap:6px}.si-squarespell__letter{width:min(20vw,78px);height:min(20vw,78px);font-size:29px}.si-squarespell__status>div{padding:11px 9px}}.si-squarespell__section-head{display:flex;justify-content:space-between;align-items:center}.si-squarespell__section-head>span{font-size:12px;color:#999}.si-squarespell__finish{text-align:center;margin:16px 0 4px}.si-squarespell__finish button{border:2px solid var(--gold);background:var(--gold);color:#111;border-radius:999px;padding:12px 22px;font-weight:800;cursor:pointer}.si-squarespell__finish button:disabled{opacity:.55;cursor:not-allowed}.si-squarespell__finish p{max-width:520px;margin:9px auto 0;color:#8f8f8f;font-size:12px;line-height:1.45}.si-squarespell__leaderboard li{display:flex;justify-content:space-between;gap:16px}.si-squarespell__leaderboard li span{color:#999;font-size:12px;text-align:right}.si-squarespell button:disabled{cursor:not-allowed;opacity:.55}.si-squarespell.is-finished .si-squarespell__entry{opacity:.55}

.si-squarespell__rank-progress{margin:22px 0}.si-squarespell__rank-progress-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.si-squarespell__rank-progress-head span{font-size:11px;color:#999;text-transform:uppercase;letter-spacing:.08em}.si-squarespell__rank-progress-head strong{font-size:12px;color:#ddd}.si-squarespell__rank-progress .si-squarespell__progress{margin:0}.si-squarespell__leaderboard li>div{display:flex;flex-direction:column;gap:2px}.si-squarespell__leaderboard li small{color:var(--gold);font-size:11px}.si-squarespell__status>div:first-child strong{font-size:26px;color:var(--gold)}
.si-squarespell__finish-panel{max-width:520px;margin:14px auto 0;padding:15px;border:2px solid #323232;border-radius:14px;background:#151515;text-align:left}.si-squarespell__finish-panel[hidden]{display:none}.si-squarespell__finish-panel label{display:block;margin-bottom:7px;font-size:12px;font-weight:700;color:#ddd}.si-squarespell__finish-panel input{width:100%;padding:12px 13px;border:2px solid #414141;border-radius:9px;background:#0d0d0d;color:#fff;font:inherit;outline:none}.si-squarespell__finish-panel input:focus{border-color:var(--gold)}.si-squarespell__finish-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:11px}.si-squarespell__finish-actions button{padding:10px 14px}.si-squarespell__finish-actions [data-confirm-finish]{background:var(--gold);border-color:var(--gold);color:#111;font-weight:800}
.si-squarespell__final-check{display:flex!important;align-items:flex-start;gap:9px;margin:12px 0!important;font-size:12px!important;font-weight:500!important;color:#cfcfcf!important;cursor:pointer}.si-squarespell__final-check input{width:18px!important;height:18px!important;margin:0!important;flex:0 0 auto;accent-color:var(--gold)}.si-squarespell__finish-panel>[data-finish]{display:block;width:100%;margin-top:12px}.si-squarespell__finish-panel[data-finish-panel]{display:block}

.si-squarespell__refresh{border:2px solid #343434;background:#171717;color:#ddd;border-radius:999px;padding:10px 17px;text-decoration:none;font-size:14px}.si-squarespell__refresh:hover{border-color:#5a5a5a;color:#fff}


/* Reliable touch input and a CSS fullscreen fallback for iPhone/in-app browsers. */
.si-squarespell__letter,
.si-squarespell__actions button,
.si-squarespell__fullscreen{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  -webkit-user-select:none;
}
.si-squarespell__letter:active{transform:scale(.96);border-color:#777}
html.squarespell-fullscreen-open,
body.squarespell-fullscreen-open{overflow:hidden!important;overscroll-behavior:none}
.si-squarespell.is-app-fullscreen{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  border-radius:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  padding-top:max(17px,env(safe-area-inset-top))!important;
  padding-right:max(17px,env(safe-area-inset-right))!important;
  padding-bottom:max(17px,env(safe-area-inset-bottom))!important;
  padding-left:max(17px,env(safe-area-inset-left))!important;
}
.si-squarespell:fullscreen,
.si-squarespell:-webkit-full-screen{
  max-width:none;
  width:100%;
  height:100%;
  min-height:100%;
  margin:0;
  border-radius:0;
  overflow:auto;
  padding-top:max(24px,env(safe-area-inset-top));
  padding-bottom:max(24px,env(safe-area-inset-bottom));
}

/* Prevent rapid game taps from being interpreted as double-tap zoom.
   Pinch-to-zoom remains available outside the game. */
.si-squarespell,
.si-squarespell *{
  touch-action:manipulation;
}
.si-squarespell{
  -webkit-text-size-adjust:100%;
}
@media(max-width:600px){
  .si-squarespell input,
  .si-squarespell textarea,
  .si-squarespell select{
    font-size:16px!important;
  }
}
