#tetriskart, body[data-ana="tetris"] {
  --game-accent: #176459;
  --scene-color: #147865;
  --title-color: #176459;
}
.sw-premium .anakartlar [data-premium-game="tetris"] {
  --game-surface: #d3f3e7;
  --game-ink: #145849;
}
.wt-screen, .wt-theme-choice {
  --wt-paper: #fffaf2;
  --wt-ink: #6b1531;
  --wt-wash: #f3e5e9;
  --wt-shell: linear-gradient(160deg, var(--wt-paper), var(--wt-wash));
  --wt-stat-line: color-mix(in srgb, var(--wt-ink) 27%, var(--wt-paper));
  --wt-grid-edge: color-mix(in srgb, var(--wt-ink) 56%, var(--wt-paper));
  --wt-empty: color-mix(in srgb, var(--wt-wash) 61%, transparent);
  --wt-fixed: linear-gradient(160deg, var(--wt-paper), var(--wt-wash));
  --wt-fixed-line: color-mix(in srgb, var(--wt-ink) 40%, var(--wt-paper));
  --wt-fixed-shadow: var(--wt-stat-line);
  --wt-btn: linear-gradient(155deg, #fff, var(--wt-wash));
}
.wt-screen {
  width: min(100%, 480px);
  margin-inline: auto;
  min-height: min(560px, calc(100dvh - 96px));
  gap: 6px;
}
[data-wt-theme="app"] {
  --wt-paper: color-mix(in srgb, var(--wt-app-light, #fffaf2) 24%, #fffaf2);
  --wt-ink: var(--wt-app-ink, #6b1531);
  --wt-wash: color-mix(in srgb, var(--wt-app-light, #f3e5e9) 43%, var(--wt-paper));
}
[data-wt-theme="jade"] {
  --wt-paper: #f5fbf7;
  --wt-ink: #195447;
  --wt-wash: #d7ede2;
}
[data-wt-theme="graphite"] {
  --wt-paper: #f2f6ff;
  --wt-ink: #223d72;
  --wt-wash: #dce6fa;
}
.wt-center { display: grid; gap: 10px; margin-block: auto; }
body:has(#sahne > :is(.wt-menu,.wt-play)) #premium-navigation { display: none; }
.screen.wt-menu {
  position: fixed;
  z-index: 5;
  inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  width: min(calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px), 480px);
  height: max-content;
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: stretch;
  min-height: 0;
  padding: 12px;
  gap: 10px;
  box-sizing: border-box;
  overflow-y: auto;
  color: var(--wt-ink);
  background: var(--wt-shell);
  box-shadow: 0 0 0 100vmax var(--wt-paper);
}
.wt-menu > .sw-ust { margin: 0; background: transparent; }
.wt-menu > .sw-ust h2 { color: var(--wt-ink); }
.wt-menu .kdm-sec { margin: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.wt-menu .kdm-kart {
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 0;
  padding: 6px 4px;
  border-radius: 11px;
  text-align: center;
}
.wt-menu .kdm-rozet svg { width: 28px; height: 28px; }
.wt-menu .kdm-tx { width: 100%; }
.wt-menu .kdm-tx b { font-size: .82rem; }
.wt-menu .kdm-kilit { display: block; font-size: .67rem; line-height: 1.12; overflow-wrap: anywhere; }
.wt-menu .kdm-kilit svg { display: none; }
.wt-menu .kdm-isaret { position: absolute; inset: 4px 4px auto auto; width: 14px; height: 14px; }
.wt-menu .kdm-kart.secili .kdm-isaret { background: radial-gradient(circle,#386ca3 0 3px,#fff 3.5px); }
.wt-menu .kdm-joker {
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 3px;
  gap: 2px;
  margin-top: auto;
  border-radius: 8px;
  font-size: .65rem;
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wt-menu .kdm-joker svg { width: 12px; height: 12px; flex: none; }
.wt-menu .wt-status:empty { display: none; }
.wt-theme-field { min-width: 0; margin: 0; padding: 0; border: 0; text-align: start; }
.wt-theme-field legend { margin-bottom: 6px; padding: 0; font-size: .84rem; font-weight: 750; }
.wt-themes, .wt-start-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.wt-themes { grid-template-columns: repeat(3,minmax(0,1fr)); }
.wt-theme-choice {
  position: relative;
  display: grid;
  gap: 5px;
  justify-items: center;
  align-content: center;
  min-width: 0;
  padding: 6px 4px;
  border: 2px solid var(--wt-stat-line);
  border-radius: 10px;
  background: var(--wt-shell);
  color: var(--wt-ink);
  text-align: center;
  cursor: pointer;
}
.wt-theme-choice:has(input:checked) { border-color: var(--wt-ink); box-shadow: inset 0 0 0 1px var(--wt-stat-line); }
.wt-theme-choice:focus-within { outline: 2px solid var(--accent, #356e7a); outline-offset: 2px; }
.wt-theme-choice input { position: absolute; inset: 5px 5px auto auto; margin: 0; accent-color: var(--wt-ink); }
.wt-theme-name { font-size: .73rem; line-height: 1.1; font-weight: 750; overflow-wrap: anywhere; }
.wt-mini-board {
  display: grid;
  grid-template: repeat(2,10px) / repeat(5,10px);
  gap: 2px;
  padding: 3px;
  border-radius: 5px;
  background: var(--wt-paper);
}
.wt-mini-board i { border: 1px solid var(--wt-grid-edge); border-radius: 2px; background: var(--wt-empty); }
.wt-mini-board i:nth-child(3) { background: #ffcd75; border-color: #ffe3a6; }
.wt-mini-board i:nth-child(n+8) { background: var(--wt-fixed); border-color: var(--wt-fixed-line); }
.wt-avatar-preview {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 57px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 7px;
  border: 1px dashed var(--wt-grid-edge);
  border-radius: 11px;
  color: var(--wt-ink);
  background: var(--wt-paper);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.wt-avatar-preview strong, .wt-avatar-preview small { display: block; line-height: 1.12; }
.wt-avatar-preview strong { font-size: .83rem; }
.wt-avatar-preview small { margin-top: 3px; font-size: .72rem; }
.wt-avatar-preview .wt-avatar-active,
.wt-avatar-preview .silk-player-avatar[data-silk-player-avatar="self"]:has(.silk-starter),
.wt-avatar-preview .silk-starter,
.wt-avatar-preview:not(:has(.wt-avatar-badge .silk-starter)) :is(.wt-avatar-locked,.wt-avatar-example) { display: none; }
.wt-avatar-preview:not(:has(.wt-avatar-badge .silk-starter)) { border-style: solid; }
.wt-avatar-preview:not(:has(.wt-avatar-badge .silk-starter)) .wt-avatar-active { display: block; }
.wt-avatar-badge { display: grid; width: 36px; height: 36px; place-items: center; position: relative; }
.wt-avatar-badge .wt-avatar-example { line-height: 0; }
.wt-avatar-badge:has(.silk-starter)::before {
  position: absolute;
  inset: auto -3px -2px auto;
  width: 17px;
  height: 17px;
  border: 2px solid var(--wt-paper);
  border-radius: 50%;
  background: var(--wt-ink);
  z-index: 1;
  content: '';
}
.wt-avatar-badge:has(.silk-starter)::after {
  position: absolute;
  inset: auto 3px 4px auto;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--wt-paper);
  box-shadow: 0 -3px 0 -1px var(--wt-ink), 0 -4px 0 -1px var(--wt-paper);
  z-index: 1;
  content: '';
}
.wt-avatar-sample {
  display: grid;
  place-items: center;
  position: relative;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--wt-stat-line);
  border-radius: 7px;
  background: var(--wt-wash);
}
.wt-avatar-sample > span { position: absolute; opacity: .56; }
.wt-avatar-sample > .wt-avatar-example { opacity: .78; }
.wt-avatar-sample::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right,var(--wt-grid-edge) 1px,transparent 1px),
    linear-gradient(to bottom,var(--wt-grid-edge) 1px,transparent 1px);
  background-size: 25% 33.333%;
  opacity: .62;
  content: '';
}
.wt-avatar-preview:focus-visible { outline: 2px solid var(--wt-ink); outline-offset: 2px; }
.wt-start-actions .btn { width: 100%; min-width: 0; min-height: 44px; padding: 6px 4px; overflow-wrap: anywhere; }
.screen.wt-play {
  position: fixed;
  z-index: 5;
  inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
  width: min(calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right)), 490px);
  min-height: 0;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) 26px 44px auto;
  align-items: stretch;
  gap: 3px;
  color: var(--wt-ink);
  background: var(--wt-shell);
  box-shadow: 0 24px 64px #28152042;
  isolation: isolate;
}
.wt-play > .sw-ust {
  color: var(--wt-ink);
  margin: 0;
  padding: 0;
  min-height: 44px;
  background: transparent;
}
.wt-play > .sw-ust h2 { color: var(--wt-ink); font-size: clamp(1rem, 4.8vw, 1.55rem); }
.wt-play .sw-ust-baslik p { color: var(--wt-ink); }
.wt-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  min-width: 0;
  gap: 3px;
  font-size: clamp(.7rem, 3.2vw, .88rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wt-stat {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 32px;
  box-sizing: border-box;
  padding: 3px 2px;
  background: var(--wt-paper);
  border: 1px solid var(--wt-stat-line);
  border-radius: 8px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.wt-scorecard { gap: 4px; }
.wt-scorecard .silk-player-avatar { flex: 0 0 auto; }
.wt-scorecard > span:last-child { min-width: 0; }
.wt-peer { flex-direction: row-reverse; }
#wt-score { transform-origin: left; }
#wt-next { color: var(--wt-ink); }
#wt-speed { white-space: nowrap; }
.wt-online #wt-clock { background: var(--wt-wash); }
.wt-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  touch-action: none;
  overflow: hidden;
  border: 1px solid var(--wt-grid-edge);
  border-radius: 12px;
  background: var(--wt-paper);
  isolation: isolate;
}
.wt-board:has(.wt-watermark .silk-avatar:not(.silk-starter)) {
  box-shadow: inset 0 0 0 2px var(--wt-wash), inset 0 0 21px var(--wt-stat-line);
}
.wt-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  container-type: size;
  opacity: .36;
  z-index: -1;
  pointer-events: none;
}
.wt-watermark .silk-starter {
  opacity: .28;
  filter: grayscale(.4);
}
.wt-watermark :is(.silk-avatar,.sw-frame) {
  --avatar-size: min(93cqw, 89cqh, 360px) !important;
  --sw-frame-size: var(--avatar-size) !important;
}
.wt-watermark .silk-avatar {
  border-radius: 20%;
  box-shadow: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, #000b 46%, transparent 71%);
}
.wt-cell, .wt-drop-tile {
  appearance: none;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wt-grid-edge);
  border-radius: clamp(3px, 1.4vw, 8px);
  background: var(--wt-empty);
  color: var(--wt-ink);
  font: 800 clamp(.9rem, min(4.2vh, 5.2vw), 1.65rem)/1 var(--f-display, system-ui);
  pointer-events: none;
}
.wt-cell[data-kind="fixed"] {
  border-color: var(--wt-fixed-line);
  background: var(--wt-fixed);
  box-shadow: inset 0 -3px var(--wt-fixed-shadow), inset 0 1px #fff9;
  text-shadow: 0 1px #ecfff1a0;
}
.wt-cell[data-kind="falling"], .wt-drop-tile {
  border-color: #b17839;
  background: linear-gradient(160deg, #fff6d9, #f0c88e);
  box-shadow: inset 0 -3px #af7139, 0 1px 8px #eeae564d;
}
.wt-cell.wt-ghost { border: 2px dashed var(--wt-ink); background: var(--wt-empty); }
.wt-cell.wt-hint { border: 2px solid #a46b26; background: #f3d7a580; }
.wt-cell[data-kind="burst"] {
  background: radial-gradient(ellipse at top, #fffce7, #ffc972);
  border-color: #ffe1a3;
  box-shadow: 0 0 16px #ffd88cb8;
  z-index: 1;
  animation: wt-burst .34s cubic-bezier(.25,.7,.35,1) both;
}
@keyframes wt-burst {
  0% { transform: scale(.96); }
  36% { transform: scale(1.15); color: #694010; }
  100% { transform: scale(.52); opacity: .35; }
}
.wt-dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wt-dust i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}
.wt-drop-copy { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.wt-drop-tile { position: absolute; box-sizing: border-box; }
.wt-board > .wt-cell.wt-drop-covered {
  color: transparent; text-shadow: none; border: 1px solid var(--wt-grid-edge);
  background: var(--wt-empty); box-shadow: none;
}
.wt-targeting .wt-cell { opacity: .65; }
.wt-targeting .wt-selectable { opacity: 1; pointer-events: auto; cursor: crosshair; }
.wt-targeting .wt-selectable:focus-visible { outline: 2px solid #fff6db; outline-offset: -2px; }
.wt-targeting .wt-selected {
  opacity: 1;
  z-index: 1;
  outline: 2px solid #ffe2a0;
  outline-offset: -2px;
  background: linear-gradient(140deg, #ffe1a2, #ce9351);
}
.wt-status { text-align: center; }
.wt-play .wt-status {
  align-self: center;
  margin: 0;
  max-width: none;
  padding-inline: 3px;
  color: var(--wt-ink);
  font-size: clamp(.69rem, 3vw, .88rem);
  font-weight: 700;
  line-height: 1.13;
  overflow-wrap: anywhere;
}
.wt-controls, .wt-helps { display: grid; gap: 3px; min-width: 0; }
.wt-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wt-target-controls { grid-template-columns: minmax(0,1fr) minmax(0,.85fr) minmax(0,1.1fr); align-items: center; }
.wt-target-controls > strong { font-size: .72rem; line-height: 1.1; overflow-wrap: anywhere; }
.wt-target-controls select { width: 100%; min-width: 0; min-height: 42px; padding: 2px; font-size: .74rem; }
.wt-controls[hidden] { display: none; }
.wt-helps { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wt-play .wt-controls .btn, .wt-play .wt-helps .btn {
  position: relative;
  min-width: 0;
  min-height: 44px;
  padding: 2px;
  margin: 0;
  border: 1px solid var(--wt-stat-line);
  border-radius: 8px;
  background: var(--wt-btn);
  color: var(--wt-ink);
  box-shadow: inset 0 1px #c6ffe633;
}
.wt-controls:not(.wt-target-controls) .btn { font-size: 1.18rem; line-height: 1; }
.wt-target-controls .btn { font-size: .72rem; line-height: 1.08; overflow-wrap: anywhere; }
.wt-play .wt-controls .main, .wt-play .wt-helps .btn[aria-pressed="true"] {
  background: linear-gradient(155deg, #ffe3a5, #e6ac5e);
  color: #352409;
  border-color: #ffdda3;
}
.wt-helps .btn { display: grid; grid-template: 22px auto / minmax(0, 1fr); justify-items: center; align-content: center; }
.wt-help-icon {
  width: 26px;
  height: 26px;
  align-self: center;
  filter: drop-shadow(0 2px 1px #081a1a9e);
  transform-origin: bottom;
  transition: transform .16s ease-out, filter .16s ease-out;
}
.wt-helps .btn:is(:hover,:focus-visible,[aria-pressed="true"]) .wt-help-icon {
  transform: translateY(-2px) rotate(-7deg) scale(1.1);
  filter: drop-shadow(0 3px 2px #081a1aa7) brightness(1.12);
}
.wt-help-name { width: 100%; min-width: 0; font-size: clamp(.69rem, 2.4vw, .78rem); font-weight: 750; line-height: 1.25; white-space: nowrap; }
.wt-help-cost {
  position: absolute;
  inset: 3px 3px auto auto;
  padding-inline: 2px;
  background: #17312c;
  border-radius: 4px;
  color: #ffdfa7;
  font-size: .58rem;
  line-height: 1.15;
}
.wt-play .btn:disabled { opacity: .54; }
.wt-play .btn:focus-visible { outline: 2px solid var(--wt-ink); outline-offset: -2px; }
@media (max-width: 340px) { .wt-helps { gap: 0; } }
@media (orientation: landscape) and (max-height: 500px) {
  .screen.wt-play {
    width: min(calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right)), 820px);
    grid-template-columns: minmax(0, 1fr) minmax(235px, .7fr);
    grid-template-rows: auto auto minmax(0, 1fr) 44px auto;
  }
  .wt-play > .sw-ust, .wt-stats, .wt-status, .wt-controls, .wt-helps { grid-column: 2; }
  .wt-helps { gap: 1px; }
  .wt-play .wt-helps .btn { padding-inline: 0; }
  .wt-help-name { font-size: .69rem; }
  .wt-board { grid-column: 1; grid-row: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .wt-cell[data-kind="burst"] { animation: none; } }
