.sdk-shell, .sdk-shell * { box-sizing: border-box; }
.sdk-shell button, .sdk-shell select { font: inherit; }
.sdk-shell {
  --brand: #f59e0b;
  --brand-dark: #9a3412;
  min-height: auto;
  display: grid;
  place-items: center;
  padding: 14px 10px;
  background: transparent;
}
.sdk-card {
  position: relative;
  width: min(100%, 880px);
  padding: clamp(15px, 4vw, 29px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  color: #2b241e;
  background: linear-gradient(155deg, #fff, #f7f0e7);
  box-shadow: 0 18px 55px rgba(54,40,30,.16);
}
.sdk-game-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.55fr) minmax(250px, .85fr);
  grid-template-areas:
    "play toolbar"
    "play mode"
    "play pad"
    "play actions"
    "play help";
  gap: 10px 18px;
  align-items: start;
  margin-top: 14px;
}
.sdk-game-layout.sdk-no-mode {
  grid-template-areas:
    "play toolbar"
    "play pad"
    "play actions"
    "play help";
}
.sdk-play-area { grid-area: play; min-width: 0; }
.sdk-header, .sdk-brand, .sdk-toolbar, .sdk-status, .sdk-actions, .sdk-header-actions { display: flex; align-items: center; }
.sdk-header { justify-content: space-between; gap: 12px; }
.sdk-header-actions { gap: 5px; }
.sdk-brand { gap: 12px; color: inherit; text-decoration: none; }
.sdk-brand > span:last-child { display: grid; }
.sdk-brand small { color: var(--brand-dark); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.sdk-brand strong { font-size: clamp(32px, 8vw, 46px); line-height: .95; letter-spacing: -.05em; }
.sdk-logo { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; color: white; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); font-size: 18px; font-weight: 900; box-shadow: 0 10px 24px rgba(194,91,12,.27); }
.sdk-icon { width: 42px; height: 42px; border: 1px solid #e7ddd0; border-radius: 14px; background: white; cursor: pointer; }
.sdk-toolbar { grid-area: toolbar; gap: 7px; margin: 0; }
.sdk-level, .sdk-stat { flex: 1; min-width: 0; min-height: 57px; padding: 8px 10px; border-radius: 14px; background: #463a31; color: white; text-align: center; }
.sdk-level { display: grid; gap: 2px; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.sdk-level select { width: 100%; border: 0; outline: 0; color: white; background: transparent; font-weight: 800; text-align: center; cursor: pointer; }
.sdk-level option { color: #2b241e; background: white; }
.sdk-stat span { display: block; font-size: 9px; font-weight: 800; letter-spacing: .13em; opacity: .7; }
.sdk-stat strong { display: block; margin-top: 5px; font-size: 17px; font-variant-numeric: tabular-nums; }
.sdk-stat:last-child { background: linear-gradient(145deg, var(--brand), var(--brand-dark)); }
.sdk-mode { grid-area: mode; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sdk-mode button { min-height: 34px; border: 1px solid #e2d5c7; border-radius: 10px; color: #66574c; background: #fff; font-size: 10px; font-weight: 850; cursor: pointer; }
.sdk-mode button.sdk-active { border-color: var(--brand-dark); color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); }
.sdk-status { justify-content: space-between; gap: 8px; min-height: 28px; color: #776b61; font-size: 11px; }
.sdk-status [data-message] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sdk-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #4b4037;
  border-radius: 16px;
  background: #4b4037;
  touch-action: manipulation;
  box-shadow: 0 15px 30px rgba(67,51,39,.18);
}
.sdk-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #cbbfb3;
  border-bottom: 1px solid #cbbfb3;
  color: #ab3b13;
  background: #fffdf9;
  font-size: clamp(17px, 4.8vw, 28px);
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sdk-cell:nth-child(9n) { border-right: 0; }
.sdk-cell:nth-child(n+73) { border-bottom: 0; }
.sdk-cell:nth-child(9n+3), .sdk-cell:nth-child(9n+6) { border-right: 3px solid #4b4037; }
.sdk-cell:nth-child(n+19):nth-child(-n+27), .sdk-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 3px solid #4b4037; }
.sdk-cell.sdk-given { color: #39312b; background: #f1e8dc; }
.sdk-cell.sdk-related { background: #fff3dc; }
.sdk-cell.sdk-same { background: #ffe4ad; }
.sdk-cell.sdk-selected { z-index: 1; background: #ffc864; box-shadow: inset 0 0 0 3px var(--brand-dark); }
.sdk-cell.sdk-wrong { color: #fff; background: #c83d2e; animation: sdk-shake .25s ease; }
.sdk-cell.sdk-pop { animation: sdk-pop .18s ease-out; }
.sdk-notes { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); color: #8f5a35; font-size: clamp(6px, 1.25vw, 10px); font-weight: 800; line-height: 1; }
.sdk-notes i { display: grid; place-items: center; min-width: 0; font-style: normal; }
@keyframes sdk-pop { from { transform: scale(.65); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes sdk-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.sdk-pad { grid-area: pad; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 0; }
.sdk-pad button { position: relative; display: grid; place-items: center; min-width: 0; min-height: 45px; padding: 2px 0 7px; border: 1px solid #eadfd3; border-radius: 11px; color: var(--brand-dark); background: white; cursor: pointer; box-shadow: 0 5px 11px rgba(58,43,32,.08); }
.sdk-pad button b { font-size: 20px; line-height: 1; }
.sdk-pad button small { position: absolute; right: 5px; bottom: 3px; color: #9c8b7d; font-size: 8px; font-weight: 850; }
.sdk-pad button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.sdk-pad button:active, .sdk-actions button:active { transform: translateY(1px); }
.sdk-actions { grid-area: actions; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 0; }
.sdk-actions .sdk-primary { grid-column: 1 / -1; }
.sdk-actions button, .sdk-modal button { flex: 1; min-height: 43px; border: 0; border-radius: 12px; color: #574a40; background: #e9dfd4; font-size: 12px; font-weight: 850; cursor: pointer; }
.sdk-actions .sdk-primary, .sdk-modal .sdk-primary { color: white; background: #2e261f; }
.sdk-actions button.sdk-active { color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); box-shadow: 0 5px 14px rgba(154,52,18,.2); }
.sdk-actions button:disabled { opacity: .42; cursor: default !important; }
.sdk-help { grid-area: help; margin: 2px 4px 0; color: #817469; font-size: 11px; line-height: 1.45; text-align: center; }
.sdk-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: rgba(31,24,19,.87); backdrop-filter: blur(6px); }
.sdk-overlay[hidden] { display: none; }
.sdk-pause-overlay { z-index: 6; }
.sdk-modal { width: min(100%, 430px); max-height: 94%; overflow: auto; padding: 24px; border-radius: 24px; text-align: center; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: sdk-pop .22s ease-out; }
.sdk-modal > span { color: var(--brand-dark); font-size: 10px; font-weight: 950; letter-spacing: .2em; }
.sdk-modal h2 { margin: 8px 0; font-size: 29px; }
.sdk-modal p { margin: 0 0 18px; color: #766a60; }
.sdk-modal button { width: 100%; min-height: 46px; }
.sdk-result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 11px 0; }
.sdk-result-stats div, .sdk-profile-stats div { padding: 8px 3px; border-radius: 10px; background: #f5ede4; }
.sdk-result-stats b, .sdk-profile-stats b { display: block; color: var(--brand-dark); font-size: 17px; }
.sdk-result-stats small, .sdk-profile-stats small { color: #837367; font-size: 7px; font-weight: 900; }
.sdk-score-submit { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 8px 0; }
.sdk-score-submit[hidden] { display: none; }
.sdk-score-submit input { min-width: 0; height: 39px; padding: 7px 10px; border: 1px solid #ddcdbd; border-radius: 10px; }
.sdk-score-submit button { width: auto; min-height: 39px; padding: 0 12px; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); }
.sdk-score-submit small { grid-column: 1 / -1; color: #75685e; }
.sdk-result-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 6px; }
.sdk-result-actions > [data-action="share"] { color: var(--brand-dark); background: #fff1dc; border: 1px solid #e8c79d; }
.sdk-result-actions > .sdk-primary:only-child { grid-column: 1 / -1; }
.sdk-panel-overlay { z-index: 7; }
.sdk-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.sdk-leaderboard { margin: 10px 0 15px; padding: 0; list-style: none; text-align: left; }
.sdk-leaderboard li { display: grid; grid-template-columns: 28px 1fr auto; gap: 7px; align-items: center; padding: 8px 9px; border-bottom: 1px solid #eee4da; font-size: 12px; }
.sdk-leaderboard li:first-child { border-radius: 10px; background: #fff3cf; }
.sdk-leaderboard li b { color: var(--brand-dark); }
.sdk-leaderboard li em { font-style: normal; font-weight: 900; }
.sdk-leaderboard li small { display: block; color: #8b7d71; }
.sdk-leaderboard li.sdk-empty-row { display: block; text-align: center; color: #837367; }
@media (max-width: 520px) {
  .sdk-shell { padding-inline: 0; }
  .sdk-card { padding: 13px 10px max(13px, env(safe-area-inset-bottom)); border-radius: 16px; }
  .sdk-logo { width: 47px; height: 47px; border-radius: 14px; font-size: 15px; }
  .sdk-brand small { display: none; }
  .sdk-icon { width: 38px; height: 38px; }
  .sdk-toolbar { margin-top: 14px; gap: 6px; }
  .sdk-level, .sdk-stat { min-height: 51px; padding: 7px 5px; border-radius: 11px; }
  .sdk-board { border-radius: 11px; }
  .sdk-pad { gap: 3px; margin-top: 9px; }
  .sdk-pad button { min-height: 40px; border-radius: 8px; }
  .sdk-pad button b { font-size: 18px; }
  .sdk-actions button { min-height: 40px; }
  .sdk-header-actions { gap: 3px; }
}
@media (max-width: 820px) {
  .sdk-card { width: min(100%, 590px); }
  .sdk-game-layout { display: flex; flex-direction: column; gap: 0; margin-top: 0; }
  .sdk-toolbar { width: 100%; margin: 14px 0 10px; }
  .sdk-mode { width: 100%; margin-bottom: 9px; }
  .sdk-play-area { width: 100%; }
  .sdk-pad { width: 100%; grid-template-columns: repeat(9, 1fr); gap: 3px; margin-top: 9px; }
  .sdk-actions { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
  .sdk-actions .sdk-primary { grid-column: 1 / -1; }
  .sdk-help { margin-top: 13px; }
}
@media (min-width: 821px) and (max-height: 800px) {
  .sdk-shell { padding-block: 8px; }
  .sdk-card { width: min(100%, 820px); padding: 15px 20px; border-radius: 22px; }
  .sdk-logo { width: 46px; height: 46px; border-radius: 13px; font-size: 15px; }
  .sdk-brand strong { font-size: 34px; }
  .sdk-game-layout { grid-template-columns: minmax(420px, 1.35fr) minmax(235px, .75fr); margin-top: 8px; gap: 7px 14px; }
  .sdk-status { min-height: 24px; }
  .sdk-level, .sdk-stat { min-height: 50px; padding-block: 6px; }
  .sdk-pad button { min-height: 39px; }
  .sdk-actions button { min-height: 37px; font-size: 11px; }
  .sdk-help { font-size: 10px; }
}
.sdk-shell button:not(:disabled), .sdk-shell select { cursor: pointer !important; touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { .sdk-cell, .sdk-modal { animation-duration: .01ms !important; } }
.sdk-brand h1 { margin:0; font-size:clamp(32px,8vw,46px); line-height:.95; letter-spacing:-.05em; }
.sdk-seo-content { width:min(100%,880px); margin-top:14px; padding:18px clamp(16px,3vw,26px); border:1px solid #eadfd3; border-radius:20px; color:#44382f; background:#fff; box-shadow:0 10px 28px rgba(54,40,30,.08); }
.sdk-seo-content h2 { margin:0 0 8px; color:#7f3515; font-size:clamp(20px,3vw,26px); }
.sdk-seo-content p { margin:0; line-height:1.65; }
.sdk-seo-content ul { margin:10px 0 0; padding-left:21px; line-height:1.6; }
@media (max-width:520px) { .sdk-brand h1{font-size:31px}.sdk-seo-content{margin-top:8px;border-radius:14px;font-size:13px} }

/* v1.3.3 mobil ekran güvenliği */
@media(max-width:820px){.sdk-shell,.sdk-card,.sdk-game-layout,.sdk-play-area{width:100%;max-width:100%;min-width:0;overflow-x:clip}.sdk-board{width:100%;max-width:min(100%,calc(100dvh - 315px));margin-inline:auto}.sdk-cell{touch-action:manipulation}}
@media(max-width:520px) and (max-height:700px){.sdk-card{padding:7px}.sdk-header{min-height:43px}.sdk-logo{width:38px;height:38px}.sdk-brand small{display:none}.sdk-top{gap:4px}.sdk-level,.sdk-stat{min-height:42px;padding:4px}.sdk-game-layout{margin-top:5px}.sdk-board{max-width:min(100%,calc(100dvh - 260px))}.sdk-pad{margin-top:5px}.sdk-pad button{min-height:38px}.sdk-actions{margin-top:5px}.sdk-actions button{min-height:35px}.sdk-help{display:none}}
