:root {
  --bg: #061725;
  --bg-deep: #03101c;
  --panel: rgba(12, 36, 56, .88);
  --panel-strong: #0b263c;
  --panel-soft: #102f49;
  --line: rgba(188, 220, 241, .12);
  --line-strong: rgba(237, 190, 101, .34);
  --text: #f6f1e8;
  --muted: #a8b9c7;
  --muted-2: #7990a3;
  --gold: #f2b64d;
  --gold-2: #ffd077;
  --gold-deep: #d99122;
  --blue: #45bfe5;
  --success: #6fd5a5;
  --danger: #ff7c79;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --header-h: 78px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 9%, rgba(41, 129, 173, .13), transparent 34%),
    radial-gradient(circle at 15% 20%, rgba(242, 182, 77, .07), transparent 28%),
    linear-gradient(180deg, #061827 0%, #071d2f 40%, #04131f 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.game-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.ambient { position: fixed; pointer-events: none; filter: blur(70px); opacity: .12; z-index: -1; }
.ambient-one { width: 420px; height: 420px; border-radius: 50%; background: #1ba6d8; top: 8%; right: -180px; }
.ambient-two { width: 340px; height: 340px; border-radius: 50%; background: #e5a83c; left: -170px; top: 45%; }

.app { min-height: 100vh; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 68px);
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(3, 16, 28, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(130%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.brand-symbol { width: 34px; height: 34px; display: inline-grid; place-items: center; color: var(--gold); }
.brand-symbol svg { width: 100%; height: 100%; fill: currentColor; }
.desktop-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.nav-link { border: 0; background: transparent; color: #d5e0e8; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; cursor: pointer; font-weight: 650; font-size: 14px; transition: .2s ease; }
.nav-link:hover { background: rgba(255,255,255,.055); color: #fff; transform: translateY(-1px); }
.nav-icon { color: var(--gold-2); font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.button {
  border: 1px solid transparent;
  border-radius: 13px;
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary { color: #15202b; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 12px 28px rgba(240, 174, 63, .22); }
.button.primary:hover { box-shadow: 0 16px 34px rgba(240, 174, 63, .32); }
.button.secondary { background: rgba(255,255,255,.055); border-color: var(--line); color: #f1f5f7; }
.button.secondary:hover, .button.ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.button.ghost { background: transparent; border-color: var(--line); color: #dbe4ea; }
.button.compact { min-height: 44px; padding: 0 17px; font-size: 14px; }
.button.large { min-height: 56px; padding: 0 27px; border-radius: 15px; font-size: 16px; }
.button.full { width: 100%; }
.button.outline-light { border-color: rgba(255,255,255,.42); background: rgba(1,14,23,.2); color: #fff; backdrop-filter: blur(10px); }
.button.outline-light:hover { border-color: var(--gold-2); background: rgba(4,22,36,.6); }
.play-icon { font-size: 14px; }
.mobile-menu-button { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-size: 20px; }
.mobile-menu { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); padding: 12px; background: #0a2438; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.mobile-menu button { width: 100%; border: 0; border-radius: 10px; padding: 13px 14px; text-align: left; background: transparent; cursor: pointer; }
.mobile-menu button:hover { background: rgba(255,255,255,.06); }

.home-view { width: min(1510px, 100%); margin: 0 auto; padding: 0 clamp(20px, 3vw, 46px) 42px; }
.hero-section { min-height: 610px; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(36px, 6vw, 92px); padding: 36px 0 30px; }
.hero-copy { padding: 20px 0 10px; }
.eyebrow, .overline { color: var(--gold-2); font-size: 12px; line-height: 1; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.spark { display: inline-block; margin-right: 8px; }
.hero-copy h1 { margin: 18px 0 18px; font-family: var(--serif); font-size: clamp(50px, 5.2vw, 82px); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.hero-copy h1 em { color: var(--gold-2); font-style: italic; font-weight: 500; }
.hero-copy > p { max-width: 610px; color: #bdcbd5; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.68; margin: 0; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; margin: 28px 0 27px; }
.hero-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.hero-benefits > div { min-width: 0; display: flex; align-items: flex-start; gap: 10px; color: #bdcad4; font-size: 12px; }
.hero-benefits > div > span { color: var(--gold); font-size: 22px; }
.hero-benefits p { margin: 0; line-height: 1.45; }
.hero-benefits strong { color: #eff4f7; font-size: 13px; }

.featured-puzzle { position: relative; min-height: 505px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(229, 201, 147, .25); box-shadow: var(--shadow); isolation: isolate; background: #0a263b; }
.featured-puzzle > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .7s ease; }
.featured-puzzle:hover > img { transform: scale(1.018); }
.featured-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,13,22,.05) 20%, rgba(2,12,20,.12) 50%, rgba(2,12,20,.94) 100%), linear-gradient(90deg, rgba(3,15,24,.1), transparent 60%); }
.featured-topline { position: absolute; left: 24px; right: 24px; top: 22px; display: flex; justify-content: space-between; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.pill.warm { color: #ffe2a7; background: rgba(9,28,42,.72); border: 1px solid rgba(244,182,79,.42); backdrop-filter: blur(10px); }
.pill.dark { color: var(--gold-2); background: rgba(1,15,25,.68); border: 1px solid rgba(255,255,255,.18); }
.like-pill { border: 1px solid rgba(255,255,255,.2); background: rgba(4,20,32,.65); color: #fff; padding: 9px 13px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(10px); }
.like-pill.liked { color: #ff9aa8; border-color: rgba(255,154,168,.5); }
.featured-content { position: absolute; left: 30px; right: 28px; bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.featured-content h2 { margin: 0 0 3px; font-family: var(--serif); font-size: clamp(31px, 3vw, 48px); line-height: 1; }
.featured-content p { margin: 0 0 15px; color: #d1dae1; }
.verified { color: var(--gold); font-size: 11px; }
.puzzle-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #e6edf1; font-size: 14px; }
.puzzle-meta b { font-weight: 750; }
.circle-play { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #11202b; display: grid; place-items: center; font-size: 22px; cursor: pointer; box-shadow: 0 12px 35px rgba(240,178,67,.32); transition: .2s ease; }
.circle-play:hover { transform: scale(1.06); }
.featured-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; display: flex; gap: 7px; }
.featured-dots button { width: 26px; height: 3px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.25); cursor: pointer; transition: .2s ease; }
.featured-dots button.active { width: 42px; background: var(--gold); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .6fr); gap: 18px; }
.panel { background: linear-gradient(145deg, rgba(13,42,64,.94), rgba(8,30,48,.94)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0,0,0,.13); }
.collections-panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading.tight { align-items: start; margin-bottom: 14px; }
.panel-heading h2, .section-heading h2 { font-size: 22px; line-height: 1.1; margin: 7px 0 0; letter-spacing: -.025em; }
.text-action { border: 0; padding: 6px 0; background: transparent; color: var(--gold-2); font-weight: 750; cursor: pointer; font-size: 13px; }
.collection-strip { display: grid; grid-template-columns: repeat(6, minmax(118px, 1fr)); gap: 10px; }
.collection-card { position: relative; min-height: 142px; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #0a263a; cursor: pointer; text-align: left; }
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.collection-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(2,11,18,.9) 100%); }
.collection-card:hover img { transform: scale(1.07); }
.collection-card > div { position: absolute; z-index: 2; left: 12px; right: 10px; bottom: 10px; }
.collection-card strong { display: block; font-size: 13px; line-height: 1.2; }
.collection-card small { color: #c6d2da; font-size: 11px; }
.challenge-panel { padding: 22px; }
.piece-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.piece-option { min-height: 65px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #eff4f7; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: .18s ease; }
.piece-option strong { font-size: 22px; line-height: 1; }
.piece-option span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.piece-option:hover { border-color: rgba(244,182,79,.45); background: rgba(255,255,255,.055); }
.piece-option.active { color: #142231; border-color: var(--gold); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 25px rgba(229,160,43,.18); }
.piece-option.active span { color: #4c391e; }
.selection-hint { color: var(--muted-2); font-size: 12px; margin: 13px 0 0; text-align: center; }
.most-played-panel { padding: 22px; }
.live-now-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.live-now-card { position: relative; min-height: 175px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; overflow: hidden; background: #0a2538; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
.live-now-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-now-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgba(3,13,21,.94) 100%); }
.live-now-pulse { position: absolute; z-index: 2; left: 9px; top: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: rgba(3,13,21,.7); color: #7ff1c5; font-size: 10px; font-weight: 900; }
.live-now-pulse i { width: 7px; height: 7px; border-radius: 50%; background: #3bdf9b; box-shadow: 0 0 0 4px rgba(59,223,155,.18); animation: yapbozLivePulse 1.6s ease-in-out infinite; }
@keyframes yapbozLivePulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
.live-now-body { position: relative; z-index: 2; display: grid; gap: 5px; padding: 10px 11px 12px; }
.live-now-body strong { font-size: 13px; color: #f8fbfd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-now-body small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-now-progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.live-now-progress > span { display: block; height: 100%; background: var(--gold-2); }
.live-now-join { min-height: 34px; margin-top: 2px; border: 1px solid rgba(244,182,79,.4); border-radius: 10px; background: rgba(244,182,79,.14); color: var(--gold-2); font: 800 12px/1 var(--font); cursor: pointer; }
.live-now-join:disabled { opacity: .55; cursor: default; }
.live-now-join.room-badge { display: flex; align-items: center; justify-content: center; cursor: default; border-color: rgba(94,225,182,.4); background: rgba(59,223,155,.14); color: #7ff1c5; }
.live-now-empty { grid-column: 1/-1; min-height: 96px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 14px; background: rgba(255,255,255,.02); color: var(--muted); font-size: 13px; }
.live-now-empty b { color: var(--gold-2); }
.most-played-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.most-card { position: relative; min-height: 140px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; overflow: hidden; background: #0a2538; cursor: pointer; text-align: left; padding: 0; }
.most-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.most-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(3,13,21,.94) 100%); }
.most-card:hover img { transform: scale(1.06); }
.most-card .rank { position: absolute; z-index: 2; left: 8px; top: 8px; width: 25px; height: 25px; border-radius: 8px; background: var(--gold-2); color: #1e2932; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.most-card .most-info { position: absolute; z-index: 2; left: 10px; right: 8px; bottom: 8px; }
.most-card strong { display: block; font-size: 12px; line-height: 1.25; }
.most-card small { color: #c9d5dc; font-size: 9px; }
.leaderboard-panel { padding: 22px; grid-row: span 1; }
.leaderboard-list, .ranking-card ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.leaderboard-list li, .ranking-card li { display: grid; grid-template-columns: 22px 30px 1fr auto; align-items: center; gap: 8px; min-height: 36px; color: #d8e2e8; font-size: 12px; }
.leaderboard-list li:first-child { color: #fff; }
.leaderboard-list .rank-number { color: var(--gold); font-weight: 900; }
.avatar { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3d7999, #c27683); font-weight: 850; color: #fff; font-size: 10px; border: 2px solid rgba(255,255,255,.16); }
.leaderboard-list .score { color: #c3d1da; font-weight: 750; }
.daily-card { position: relative; min-height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(235,197,126,.26); }
.daily-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.daily-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,17,29,.95) 0%, rgba(4,17,29,.74) 47%, rgba(4,17,29,.08) 100%); }
.daily-copy { position: relative; z-index: 2; width: min(470px, 75%); padding: 25px; }
.daily-copy h2 { margin: 14px 0 7px; font-family: var(--serif); font-size: 29px; }
.daily-copy p { color: #c5d2da; margin: 0 0 17px; font-size: 13px; }

.experience-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 70px; }
.experience-card { position: relative; min-height: 280px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.experience-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .45s ease; }
.experience-card:hover img { transform: scale(1.045); }
.experience-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,17,25,.94) 0%, rgba(5,17,25,.62) 55%, rgba(5,17,25,.1) 100%); }
.experience-card > div:last-child { position: relative; z-index: 2; padding: 26px; width: 78%; }
.experience-card h2 { font-family: var(--serif); font-size: 31px; line-height: 1.04; margin: 11px 0 9px; }
.experience-card p { color: #d0dbe1; margin: 0 0 18px; }
.overline.light { color: #fff2cb; }

.all-puzzles-section { padding: 10px 0 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 52px); margin-top: 11px; }
.library-tools { display: flex; align-items: center; gap: 10px; }
.search-field { min-width: 240px; height: 48px; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 13px; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.search-field span { color: var(--gold); font-size: 18px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; }
.search-field input::placeholder { color: var(--muted-2); }
.library-tools select { height: 48px; padding: 0 37px 0 14px; border: 1px solid var(--line); border-radius: 13px; background: #0c2a41; color: #e8eef2; outline: 0; }
.filter-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #cbd7de; font-weight: 700; font-size: 13px; cursor: pointer; }
.filter-chip.active { color: #16222b; background: var(--gold-2); border-color: var(--gold-2); }
.puzzle-library { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.puzzle-card { background: rgba(12,39,60,.88); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; transition: .22s ease; }
.puzzle-card:hover { transform: translateY(-5px); border-color: rgba(244,182,79,.35); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.puzzle-card-image { position: relative; aspect-ratio: 1.45; overflow: hidden; cursor: pointer; }
.puzzle-card-image img { width: 100%; height: 100%; object-fit: cover; transition: .45s ease; }
.puzzle-card:hover .puzzle-card-image img { transform: scale(1.045); }
.puzzle-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(2,12,20,.62)); pointer-events: none; }
.card-favorite { position: absolute; z-index: 2; right: 11px; top: 11px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(2,15,25,.63); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.card-favorite.active { color: #ff9fb0; background: rgba(52,20,28,.7); }
.card-category { position: absolute; z-index: 2; left: 11px; bottom: 10px; padding: 6px 9px; border-radius: 999px; background: rgba(3,16,26,.7); font-size: 10px; font-weight: 800; }
.puzzle-card-body { padding: 14px; }
.puzzle-card-title-row { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.puzzle-card h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.puzzle-card .play-mini { flex: 0 0 auto; width: 37px; height: 37px; border-radius: 50%; border: 0; background: var(--gold); color: #11202a; cursor: pointer; }
.puzzle-card-meta { display: flex; gap: 12px; color: var(--muted); font-size: 11px; margin-top: 9px; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }

.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 0; margin-top: 0; }
.stats-strip > div { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding-left: 26px; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip > div > span { grid-row: 1 / 3; color: var(--gold); font-size: 27px; }
.stats-strip strong { font-size: 18px; }
.stats-strip small { color: var(--muted); }
.site-footer { display: grid; grid-template-columns: 1.4fr repeat(3, .55fr) 1.35fr; gap: 32px; padding: 42px 0 28px; }
.footer-brand p, .site-footer p { color: var(--muted); }
.site-footer h3 { font-size: 13px; margin: 0 0 13px; }
.site-footer > div:not(.footer-brand) a { display: block; color: var(--muted); margin: 7px 0; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.newsletter form { display: flex; height: 45px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.newsletter input { flex: 1; min-width: 0; border: 0; background: rgba(255,255,255,.035); color: #fff; padding: 0 13px; outline: 0; }
.newsletter button { width: 48px; border: 0; background: var(--gold); color: #13212b; cursor: pointer; }

/* Game */
.game-view { position: fixed; inset: 0; z-index: 100; background: #041522; min-height: 100dvh; overflow: auto; }
.game-header { height: 70px; position: sticky; top: 0; z-index: 25; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(3,17,29,.94); backdrop-filter: blur(18px); }
.game-header-left, .game-header-actions { display: flex; align-items: center; gap: 14px; }
.game-brand { font-size: 26px; padding-right: 22px; border-right: 1px solid var(--line); }
.game-back { border: 0; background: transparent; color: #d1dde4; cursor: pointer; font-weight: 700; }
.game-back:hover { color: #fff; }
.game-action { min-height: 42px; padding: 0 15px; border: 1px solid rgba(210,228,242,.16); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 14px rgba(2,10,18,.28); font-size: 13px; }
.game-action:hover { border-color: rgba(244,182,79,.4); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 8px 18px rgba(2,10,18,.34); }
#saveProgressButton.game-action { border-color: rgba(244,182,79,.45); background: linear-gradient(180deg, rgba(244,182,79,.14), rgba(244,182,79,.03)); color: var(--gold-2); }
.multiplayer-action.game-action { border-color: rgba(94,225,182,.32); }
.profile-button { width: 43px; height: 43px; position: relative; border-radius: 50%; border: 1px solid rgba(244,182,79,.45); background: linear-gradient(135deg,#b26b4b,#496b90); color: #fff; font-weight: 900; cursor: pointer; }
.profile-button i { position: absolute; width: 10px; height: 10px; right: -1px; bottom: 1px; border-radius: 50%; background: #42d189; border: 2px solid #061725; }
.game-shell { min-height: calc(100dvh - 70px); display: grid; grid-template-columns: 102px minmax(720px, 1fr) 320px; gap: 14px; padding: 14px; }
.game-toolbar { background: rgba(8,32,49,.8); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 9px; align-self: start; position: sticky; top: 84px; }
.tool-button { min-height: 85px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #e9f0f4; transition: .18s ease; }
.tool-button:hover, .tool-button.active { transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(244,182,79,.4); }
.tool-button.highlight { border-color: rgba(244,182,79,.55); background: linear-gradient(180deg, rgba(244,182,79,.08), rgba(255,255,255,.015)); }
.tool-icon { font-size: 24px; color: var(--gold); line-height: 1; }
.tool-button strong { font-size: 12px; }
.tool-button small { color: var(--muted); font-size: 10px; }
.tool-button.highlight small { position: absolute; transform: translate(27px,-30px); width: 23px; height: 23px; border-radius: 50%; background: var(--gold); color: #15212b; display: grid; place-items: center; font-weight: 900; }
.workspace-panel { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.game-workspace { position: relative; height: clamp(620px, calc(100dvh - 172px), 920px); min-height: 620px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #143651 0%, #0b263b 47%, #071c2d 100%); touch-action: none; }
.puzzle-board { position: absolute; left: 2.2%; top: 2.3%; width: 95.6%; height: 73%; border-radius: 13px; background: #061523; border: 1px solid rgba(244,182,79,.38); box-shadow: 0 16px 44px rgba(0,0,0,.24), inset 0 0 0 8px rgba(0,0,0,.08); overflow: hidden; transform-origin: center center; transition: transform .22s ease; }
.board-surface { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 24px 24px; }
.board-reference { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.board-reference.visible { opacity: .34; }
.board-reference img { width: 100%; height: 100%; object-fit: contain; }
.hint-target { position: absolute; border: 3px solid var(--gold); border-radius: 9px; box-shadow: 0 0 0 8px rgba(244,182,79,.17), 0 0 35px rgba(244,182,79,.7); animation: hintPulse 1s ease infinite; pointer-events: none; z-index: 99990; }
@keyframes hintPulse { 50% { box-shadow: 0 0 0 14px rgba(244,182,79,.04), 0 0 45px rgba(244,182,79,.85); } }
.piece-tray { position: absolute; left: 2.2%; right: 2.2%; bottom: 2.1%; height: 20.5%; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(180deg, rgba(4,20,32,.82), rgba(4,20,32,.96)); }
.tray-tabs { position: absolute; left: 12px; right: 138px; top: 8px; height: 38px; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tray-tabs::-webkit-scrollbar { display: none; }
.tray-tab { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #adbfca; cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 750; }
.tray-tab.active { color: var(--gold-2); border-color: rgba(244,182,79,.48); background: rgba(244,182,79,.08); }
.tray-navigation { position: absolute; right: 11px; top: 8px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.tray-navigation button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; font-size: 20px; }
.tray-guide { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.pieces-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.puzzle-piece { position: absolute; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; background-repeat: no-repeat; filter: drop-shadow(0 4px 4px rgba(0,0,0,.48)); will-change: transform, left, top; transition: opacity .15s ease, filter .15s ease, transform .12s ease; }
.puzzle-piece:hover { filter: drop-shadow(0 8px 8px rgba(0,0,0,.58)) brightness(1.07); transform: translateY(-2px); }
.puzzle-piece.dragging { cursor: grabbing; filter: drop-shadow(0 14px 14px rgba(0,0,0,.62)) brightness(1.09); transform: scale(1.055); transition: none; }
.puzzle-piece.locked { cursor: default; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.puzzle-piece.locked:hover { transform: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.puzzle-piece.hidden-piece { opacity: 0; pointer-events: none; }
.puzzle-piece.hint-piece { filter: drop-shadow(0 0 12px var(--gold)) brightness(1.18); animation: piecePulse .7s ease infinite alternate; }
@keyframes piecePulse { to { transform: scale(1.08); } }
@keyframes snapPop { 50% { transform: scale(1.09); filter: brightness(1.25) drop-shadow(0 0 10px rgba(244,182,79,.65)); } }
.puzzle-piece.snap-pop { animation: snapPop .25s ease; }
.game-bottom-bar { min-height: 82px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8,31,48,.92); display: grid; grid-template-columns: minmax(150px,1.2fr) repeat(3,.55fr) minmax(150px,.8fr) minmax(180px,1fr) minmax(190px,1fr); align-items: stretch; }
.game-title-block, .bottom-stat { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.game-title-block strong { font-size: 15px; }
.game-title-block small, .bottom-stat small { color: var(--muted); font-size: 10px; }
.bottom-stat strong { font-size: 16px; }
.game-bottom-bar > .button { align-self: center; margin: 0 14px; }
.feature-toggle { min-width: 0; padding: 10px 12px; display: grid; grid-template-columns: 35px 1fr 39px; align-items: center; gap: 8px; border-left: 1px solid var(--line); cursor: pointer; }
.feature-toggle input { display: none; }
.feature-toggle > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.feature-toggle strong { font-size: 11px; }
.feature-toggle small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.feature-icon { font-size: 23px; }
.feature-toggle i { width: 37px; height: 21px; border-radius: 99px; background: #345065; position: relative; transition: .2s ease; }
.feature-toggle i::after { content: ''; position: absolute; width: 17px; height: 17px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: .2s ease; }
.feature-toggle input:checked + i { background: var(--gold); }
.feature-toggle input:checked + i::after { transform: translateX(16px); }
.game-side { display: flex; flex-direction: column; gap: 10px; }
.game-card { background: linear-gradient(145deg, rgba(13,42,64,.97), rgba(7,28,45,.97)); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.game-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.game-card h3 { margin: 0; font-size: 14px; }
.game-card-heading button, .reference-peek, .smart-card button { border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); color: var(--gold-2); cursor: pointer; min-height: 30px; padding: 0 9px; font-size: 10px; }
.game-card-heading span { color: var(--muted); font-size: 9px; }
.reference-card img { width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); transition: .2s ease; }
.reference-card img.hidden-reference { opacity: .08; filter: blur(4px); }
.reference-peek { width: 100%; margin-top: 9px; min-height: 34px; }
.progress-layout { display: grid; grid-template-columns: 114px 1fr; gap: 13px; align-items: center; }
.progress-ring { --progress: 0deg; width: 108px; height: 108px; border-radius: 50%; background: conic-gradient(var(--gold) var(--progress), rgba(255,255,255,.09) 0); display: grid; place-items: center; position: relative; }
.progress-ring::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #0a2940; }
.progress-ring strong { position: relative; z-index: 1; font-size: 24px; }
.progress-layout dl { margin: 0; }
.progress-layout dl > div { padding: 6px 0; border-bottom: 1px solid var(--line); }
.progress-layout dl > div:last-child { border-bottom: 0; }
.progress-layout dt { color: var(--muted); font-size: 9px; }
.progress-layout dd { margin: 0; font-weight: 800; font-size: 14px; }
.smart-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.smart-orb { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg,#6e59ff,#35a9e5); box-shadow: 0 0 22px rgba(83,96,240,.32); }
.smart-card h3 { margin: 0; }
.smart-card p { color: var(--muted); font-size: 9px; margin: 3px 0 0; }
.ranking-card { flex: 1; min-height: 220px; }
.ranking-card ol { gap: 5px; }
.ranking-card li { grid-template-columns: 20px 27px 1fr auto; min-height: 31px; font-size: 10px; }
.ranking-card li.you { margin-top: 6px; padding: 7px; background: rgba(244,182,79,.07); border-radius: 9px; color: var(--gold-2); }
.game-shell.focus-mode { grid-template-columns: minmax(720px,1fr); }
.game-shell.focus-mode .game-toolbar, .game-shell.focus-mode .game-side { display: none; }
.game-shell.focus-mode .game-workspace { height: calc(100dvh - 172px); }
.pause-overlay { position: fixed; inset: 70px 0 0; z-index: 90; background: rgba(2,11,18,.86); backdrop-filter: blur(14px); display: grid; place-items: center; text-align: center; }
.pause-overlay > div { padding: 40px; }
.pause-overlay span { font-size: 54px; color: var(--gold); }
.pause-overlay h2 { font-family: var(--serif); font-size: 43px; margin: 7px 0; }
.pause-overlay p { color: var(--muted); margin: 0 0 24px; }

/* Dialogs */
.modal { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 20px; background: rgba(2,10,17,.76); backdrop-filter: blur(16px); color: var(--text); }
.modal::backdrop { background: transparent; }
.modal[open] { display: grid; place-items: center; }
.modal-card { width: min(520px, 100%); position: relative; border: 1px solid rgba(244,182,79,.24); border-radius: 24px; background: linear-gradient(145deg,#0e3049,#081f31); box-shadow: 0 30px 100px rgba(0,0,0,.5); padding: 32px; }
.modal-close { position: absolute; right: 15px; top: 15px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: #fff; cursor: pointer; font-size: 22px; }
.modal-icon, .completion-icon { width: 55px; height: 55px; border-radius: 17px; display: grid; place-items: center; background: rgba(244,182,79,.12); color: var(--gold); font-size: 26px; margin-bottom: 17px; }
.modal-card h2 { font-family: var(--serif); font-size: 37px; line-height: 1.05; margin: 0 0 11px; }
.modal-card > p { color: var(--muted); margin: 0 0 22px; }
.auth-card label { display: grid; gap: 7px; margin: 13px 0; font-size: 12px; font-weight: 750; }
.auth-card input, .global-search input { height: 50px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); color: #fff; padding: 0 14px; outline: 0; }
.auth-card input:focus, .global-search input:focus { border-color: rgba(244,182,79,.55); box-shadow: 0 0 0 3px rgba(244,182,79,.08); }
.auth-card .button { margin-top: 9px; }
.auth-card > small { display: block; color: var(--muted-2); text-align: center; margin-top: 14px; }
.picker-card { width: min(1080px, 100%); max-height: 90dvh; overflow: auto; }
.modal-heading { padding-right: 50px; }
.modal-heading h2 { margin-top: 10px; }
.modal-piece-selector { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.modal-piece-selector .piece-option { min-width: 93px; min-height: 54px; }
.modal-puzzle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.modal-puzzle { position: relative; aspect-ratio: 1.35; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; background: #0a263b; text-align: left; }
.modal-puzzle img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.modal-puzzle::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(2,12,20,.9)); }
.modal-puzzle:hover img { transform: scale(1.06); }
.modal-puzzle div { position: absolute; z-index: 2; left: 11px; right: 8px; bottom: 9px; }
.modal-puzzle strong { display: block; font-size: 13px; }
.modal-puzzle small { color: #c2d0d9; font-size: 10px; }
.search-modal-card { width: min(820px, 100%); padding-top: 68px; max-height: 82dvh; overflow: auto; }
.global-search { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; }
.global-search > span { font-size: 27px; color: var(--gold); }
.global-search input { width: 100%; font-size: 17px; }
.search-results { margin-top: 17px; display: grid; gap: 8px; }
.search-result { display: grid; grid-template-columns: 82px 1fr auto; gap: 13px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.025); }
.search-result:hover { background: rgba(255,255,255,.055); border-color: rgba(244,182,79,.3); }
.search-result img { width: 82px; height: 58px; border-radius: 8px; object-fit: cover; }
.search-result strong { display: block; }
.search-result small { color: var(--muted); }
.completion-card { width: min(670px, 100%); text-align: center; overflow: hidden; }
.completion-icon { margin: 0 auto 14px; border-radius: 50%; background: var(--gold); color: #17222a; }
.completion-score { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 22px 0; }
.completion-score div { padding: 18px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.completion-score strong { display: block; font-size: 27px; color: var(--gold-2); }
.completion-score small { color: var(--muted); }
.completion-actions { display: flex; justify-content: center; gap: 10px; }
.completion-card > .text-action { margin-top: 20px; }
.info-card { text-align: center; }
.info-card .modal-icon { margin: 0 auto 17px; }
.info-card .button { margin-top: 5px; }
.toast-region { position: fixed; z-index: 300; right: 20px; bottom: 20px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 260px; max-width: 380px; padding: 13px 15px; border: 1px solid rgba(244,182,79,.34); background: rgba(8,34,52,.96); border-radius: 12px; box-shadow: var(--shadow); color: #eff4f7; font-size: 13px; animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1250px) {
  .desktop-nav { gap: 0; }
  .nav-link { padding-inline: 10px; font-size: 12px; }
  .header-actions .button.ghost:first-child span { display: none; }
  .collection-strip { grid-template-columns: repeat(3, 1fr); }
  .collection-card { min-height: 120px; }
  .most-played-grid { grid-template-columns: repeat(5, minmax(110px, 1fr)); overflow-x: auto; }
  .live-now-grid { grid-template-columns: repeat(5, minmax(140px, 1fr)); overflow-x: auto; }
  .puzzle-library { grid-template-columns: repeat(3, 1fr); }
  .game-shell { grid-template-columns: 88px minmax(650px, 1fr) 290px; padding: 10px; gap: 10px; }
  .game-toolbar { padding: 8px; }
  .tool-button { min-height: 76px; }
  .game-bottom-bar { grid-template-columns: 1.2fr repeat(3,.5fr) .8fr; }
  .feature-toggle { display: none; }
}

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .header-actions .button.ghost:first-child { display: none; }
  .mobile-menu-button { display: block; }
  .hero-section { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-copy { max-width: 760px; }
  .featured-puzzle { min-height: 520px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .collections-panel, .most-played-panel { overflow: hidden; }
  .experience-cards { grid-template-columns: 1fr; }
  .experience-card { min-height: 320px; }
  .puzzle-library { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1.4fr repeat(3, .7fr); }
  .newsletter { grid-column: 1 / -1; }
  .game-shell { grid-template-columns: 76px minmax(0,1fr); }
  .game-side { display: none; }
  .game-header-actions .game-action { display: none; }
  .game-workspace { height: calc(100dvh - 176px); }
  .game-bottom-bar { grid-template-columns: 1.2fr repeat(3,.55fr) .8fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  body { font-size: 14px; }
  .site-header { padding: 0 14px; gap: 12px; }
  .brand { font-size: 24px; }
  .brand-symbol { width: 29px; height: 29px; }
  .header-actions .button { display: none; }
  .home-view { padding: 0 14px 30px; }
  .hero-section { min-height: auto; gap: 28px; padding-top: 34px; }
  .hero-copy h1 { font-size: clamp(44px, 13vw, 65px); }
  .hero-copy > p { font-size: 16px; }
  .hero-buttons { display: grid; }
  .hero-buttons .button { width: 100%; }
  .hero-benefits { grid-template-columns: 1fr; }
  .featured-puzzle { min-height: 430px; }
  .featured-content { left: 20px; right: 20px; bottom: 24px; }
  .featured-content h2 { font-size: 32px; }
  .circle-play { width: 60px; height: 60px; }
  .puzzle-meta { gap: 10px; font-size: 12px; }
  .collections-panel, .challenge-panel, .most-played-panel, .leaderboard-panel { padding: 16px; }
  .collection-strip { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
  .collection-card { min-width: 150px; scroll-snap-align: start; }
  .most-played-grid { display: flex; }
  .most-card { min-width: 145px; }
  .live-now-grid { display: flex; overflow-x: auto; }
  .live-now-card { min-width: 165px; }
  .daily-card { min-height: 280px; }
  .daily-copy { width: 90%; }
  .experience-card { min-height: 310px; }
  .experience-card > div:last-child { width: 92%; padding: 22px; }
  .section-heading { align-items: start; flex-direction: column; }
  .library-tools { width: 100%; display: grid; grid-template-columns: 1fr; }
  .search-field { min-width: 0; width: 100%; }
  .puzzle-library { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2,1fr); gap: 0; }
  .stats-strip > div { border-bottom: 1px solid var(--line); padding: 16px 8px; }
  .site-footer { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-brand, .newsletter { grid-column: 1 / -1; }
  .modal-puzzle-grid { grid-template-columns: repeat(2, 1fr); }
  .completion-actions { display: grid; }

  .game-header { height: 62px; padding: 0 10px; }
  .game-brand { font-size: 22px; border-right: 0; padding-right: 0; }
  .game-brand > span:last-child { display: none; }
  .game-back { font-size: 12px; }
  .game-header-actions .button.primary { display: none; }
  .game-shell { min-height: calc(100dvh - 62px); display: block; padding: 8px; }
  .game-toolbar { position: fixed; z-index: 45; left: 8px; right: 8px; bottom: 8px; top: auto; padding: 6px; flex-direction: row; background: rgba(5,25,40,.96); backdrop-filter: blur(16px); }
  .tool-button { flex: 1; min-width: 0; min-height: 58px; padding: 4px; }
  .tool-button strong { font-size: 9px; }
  .tool-button small { display: none; }
  .tool-icon { font-size: 19px; }
  .tool-button.highlight small { display: grid; transform: translate(18px,-20px); }
  .workspace-panel { padding-bottom: 70px; }
  .game-workspace { height: calc(100dvh - 150px); min-height: 560px; }
  .puzzle-board { left: 2%; width: 96%; height: 67%; }
  .piece-tray { left: 2%; right: 2%; height: 26%; }
  .tray-tabs { right: 103px; }
  .tray-tab { padding: 0 10px; font-size: 10px; }
  .tray-navigation { right: 7px; }
  .game-bottom-bar { display: none; }
  .pause-overlay { inset: 62px 0 0; }
  .game-shell.focus-mode { display: block; }
  .game-shell.focus-mode .game-toolbar { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================
   Puzlium Game Workspace V3 — playability-first redesign
   ========================================================= */
.game-view {
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 90, 128, .18), transparent 34%),
    linear-gradient(180deg, #031522 0%, #061c2c 100%);
  overflow: auto;
}
.game-header {
  height: 68px;
  padding: 0 18px;
  background: rgba(3, 17, 28, .97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.header-puzzle-name { display: flex; flex-direction: column; min-width: 0; }
.header-puzzle-name strong { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.header-puzzle-name small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.game-shell {
  min-height: calc(100dvh - 68px);
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 326px;
  gap: 12px;
  padding: 12px;
}
.workspace-panel { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.game-workspace {
  position: relative;
  height: clamp(660px, calc(100dvh - 166px), 980px);
  min-height: 660px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(164, 204, 229, .14);
  background:
    radial-gradient(circle at 42% 38%, rgba(22, 70, 102, .86), rgba(8, 35, 55, .92) 47%, #041827 100%),
    linear-gradient(135deg, #0b2b43, #041522);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 28px 70px rgba(0,0,0,.24);
  touch-action: none;
}
.workspace-hud {
  position: absolute;
  z-index: 20000;
  top: 14px;
  left: 14px;
  right: 14px;
  min-height: 54px;
  padding: 6px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  border: 1px solid rgba(172, 207, 228, .14);
  border-radius: 16px;
  background: rgba(4, 24, 39, .9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.hud-stat { min-width: 86px; padding: 5px 12px; display: flex; flex-direction: column; justify-content: center; border-radius: 11px; }
.hud-stat span { color: #8da8b9; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.hud-stat strong { font-size: 15px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.hud-stat.primary-stat { background: rgba(244,182,79,.11); }
.hud-stat.primary-stat strong { color: var(--gold-2); }
.hud-spacer { flex: 1; }
.hud-button {
  min-width: 82px;
  border: 1px solid rgba(172,207,228,.14);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: #eaf2f6;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}
.hud-button:hover, .hud-button.active { border-color: rgba(244,182,79,.5); background: rgba(244,182,79,.1); color: var(--gold-2); }
.hud-button.icon-only { min-width: 42px; width: 42px; font-size: 20px; }
.hud-button.zoom-readout { min-width: 58px; }

.board-stage {
  position: absolute;
  z-index: 20;
  transform-origin: center center;
  transition: transform .2s ease;
  will-change: transform;
}
.board-stage.pan-active { cursor: grab; }
.board-stage.panning { cursor: grabbing; transition: none; }
.puzzle-board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: 2px solid rgba(244,182,79,.48);
  background: #041420;
  box-shadow: 0 18px 54px rgba(0,0,0,.36), 0 0 0 7px rgba(3,15,25,.38);
  overflow: visible;
  transform: none !important;
}
.board-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 13px;
  background-color: #061724;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 28px 28px;
}
.board-reference {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 13px;
  opacity: .16;
  pointer-events: none;
  transition: opacity .16s ease;
}
.board-reference.visible { opacity: var(--ghost-opacity, .16); }
.board-reference.peek { opacity: 1 !important; z-index: 8; }
.board-reference img { width: 100%; height: 100%; display: block; object-fit: fill; }
.board-pieces-layer { position: absolute; inset: 0; z-index: 10; overflow: visible; pointer-events: none; }
.drag-layer { position: absolute; inset: 0; z-index: 50000; pointer-events: none; overflow: visible; }
.hint-target { z-index: 20; }

.piece-tray {
  position: absolute;
  z-index: 15000;
  top: 82px;
  right: 14px;
  bottom: 90px;
  width: 344px;
  height: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(172,207,228,.16);
  background: linear-gradient(180deg, rgba(7,31,49,.97), rgba(3,19,31,.985));
  box-shadow: 0 24px 58px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.025);
  overflow: hidden;
  transition: width .22s ease, transform .22s ease;
}
.tray-header { min-height: 58px; padding: 12px 12px 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(172,207,228,.11); }
.tray-header > div { display: flex; flex-direction: column; gap: 2px; }
.tray-kicker, .card-kicker { color: #7899ad; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.tray-header strong { font-size: 14px; }
.tray-header strong b { color: var(--gold-2); }
.tray-header button { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; font-size: 23px; cursor: pointer; }
.tray-tabs { position: static; height: auto; min-height: 48px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(172,207,228,.08); overflow-x: auto; scrollbar-width: none; }
.tray-tab { height: 32px; padding: 0 11px; font-size: 10px; border-radius: 9px; }
.tray-pieces-layer { position: relative; flex: 1; min-height: 0; overflow: hidden; pointer-events: none; }
.tray-navigation { position: static; min-height: 46px; padding: 6px 12px 8px; display: flex; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid rgba(172,207,228,.08); color: #a7bbc7; }
.tray-navigation button { width: 34px; height: 34px; }
.tray-guide { position: static; transform: none; padding: 0 8px 9px; text-align: center; font-size: 9px; color: #66879a; }
.game-workspace.tray-collapsed .piece-tray { width: 66px; }
.game-workspace.tray-collapsed .tray-header { padding-inline: 14px; justify-content: center; }
.game-workspace.tray-collapsed .tray-header > div,
.game-workspace.tray-collapsed .tray-tabs,
.game-workspace.tray-collapsed .tray-pieces-layer,
.game-workspace.tray-collapsed .tray-navigation,
.game-workspace.tray-collapsed .tray-guide { display: none; }
.game-workspace.tray-collapsed .tray-header button { transform: rotate(180deg); }

.puzzle-piece {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  background-repeat: no-repeat;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.55));
  will-change: transform, left, top;
  transition: opacity .15s ease, filter .15s ease, transform .14s ease;
}
.board-pieces-layer .puzzle-piece { pointer-events: auto; }
.tray-pieces-layer .puzzle-piece { pointer-events: auto; }
.drag-layer .puzzle-piece { pointer-events: auto; }
.puzzle-piece:hover { filter: drop-shadow(0 10px 9px rgba(0,0,0,.62)) brightness(1.09); }
.puzzle-piece.dragging { cursor: grabbing; filter: drop-shadow(0 18px 16px rgba(0,0,0,.7)) brightness(1.1); transition: none; }
.puzzle-piece.locked { cursor: default; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.puzzle-piece.locked:hover { filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.puzzle-piece.hidden-piece { opacity: 0; pointer-events: none; }

.play-tools {
  position: absolute;
  z-index: 16000;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 386px);
  padding: 6px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  border: 1px solid rgba(172,207,228,.14);
  border-radius: 16px;
  background: rgba(4,24,39,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
}
.play-tool {
  min-width: 92px;
  min-height: 58px;
  padding: 7px 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(210,228,242,.14);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 10px rgba(2,10,18,.22);
  color: #dce8ee;
  cursor: pointer;
  transition: .18s ease;
}
.play-tool:hover, .play-tool.active { transform: translateY(-1px); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border-color: rgba(244,182,79,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 14px rgba(2,10,18,.28); color: #fff; }
.play-tool.primary-tool { background: linear-gradient(180deg, rgba(244,182,79,.16), rgba(244,182,79,.04)); border-color: rgba(244,182,79,.4); color: var(--gold-2); }
.play-tool span { font-size: 18px; line-height: 1; }
.play-tool strong { font-size: 10px; }
.play-tool small { position: absolute; top: 4px; right: 5px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #12212a; font-size: 9px; font-weight: 900; }

.game-bottom-bar { min-height: 78px; }
.game-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.game-card { border-radius: 18px; padding: 14px; }
.game-card-heading { margin-bottom: 10px; }
.game-card-heading > div { min-width: 0; }
.game-card-heading h3 { font-size: 14px; margin-top: 3px; }
.reference-card { padding-bottom: 13px; }
.reference-image-button { width: 100%; padding: 0; position: relative; display: block; overflow: hidden; border: 1px solid rgba(244,182,79,.22); border-radius: 13px; background: #03131f; cursor: zoom-in; }
.reference-image-button img { width: 100%; height: min(255px, 28dvh); min-height: 180px; display: block; object-fit: contain; background: #03131f; transition: opacity .2s ease, filter .2s ease; }
.reference-image-button span { position: absolute; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(2,14,23,.82); color: #fff; font-size: 9px; font-weight: 800; }
.reference-image-button img.hidden-reference { opacity: .08; filter: blur(5px); }
.reference-peek { min-height: 40px; width: 100%; margin-top: 9px; font-size: 11px; font-weight: 800; }
.ghost-control { margin-top: 11px; padding-top: 10px; display: grid; grid-template-columns: 1fr 86px 34px; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.ghost-control span { display: flex; flex-direction: column; }
.ghost-control strong { font-size: 11px; }
.ghost-control small { color: var(--muted); font-size: 8px; line-height: 1.3; }
.ghost-control input { width: 100%; accent-color: var(--gold); }
.ghost-control output { color: var(--gold-2); font-size: 10px; font-weight: 900; text-align: right; }
.progress-layout { grid-template-columns: 96px 1fr; }
.progress-ring { width: 92px; height: 92px; }
.progress-ring strong { font-size: 20px; }
.helper-card { display: block; }
.helper-row { min-height: 54px; padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); cursor: pointer; }
.helper-row span { display: flex; flex-direction: column; }
.helper-row b { font-size: 11px; }
.helper-row small { max-width: 190px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.helper-checkbox { appearance: none; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 99px; background: #2b4658; position: relative; cursor: pointer; transition: .2s ease; }
.helper-checkbox::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s ease; }
.helper-checkbox:checked { background: var(--gold); }
.helper-checkbox:checked::after { transform: translateX(18px); }
.wide-helper-button { width: 100%; min-height: 39px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: #c9d7df; cursor: pointer; font-size: 10px; font-weight: 800; }
.wide-helper-button:hover { border-color: rgba(244,182,79,.42); color: var(--gold-2); }
.shortcuts-card { margin-top: auto; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; color: #9db4c2; font-size: 9px; }
.shortcut-grid span { display: flex; align-items: center; gap: 6px; }
kbd { min-width: 24px; height: 23px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-bottom-width: 2px; border-radius: 6px; background: rgba(255,255,255,.04); color: #eef4f7; font: 800 9px/1 var(--sans); }
.reference-lightbox { position: fixed; inset: 0; z-index: 400; padding: 28px; display: grid; place-items: center; background: rgba(0,8,14,.9); backdrop-filter: blur(14px); }
.reference-lightbox[hidden] { display: none; }
.reference-lightbox img { max-width: min(92vw, 1400px); max-height: 90dvh; object-fit: contain; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.reference-lightbox button { position: fixed; top: 22px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-size: 28px; cursor: pointer; }

.game-shell.focus-mode { grid-template-columns: minmax(760px, 1fr); }
.game-shell.focus-mode .game-side { display: none; }
.game-shell.focus-mode .game-workspace { height: calc(100dvh - 84px); }
.game-shell.focus-mode .game-bottom-bar { display: none; }
.pause-overlay { inset: 68px 0 0; }

@media (max-width: 1280px) {
  .game-shell { grid-template-columns: minmax(680px,1fr) 292px; }
  .piece-tray { width: 300px; }
  .play-tools { max-width: calc(100% - 342px); }
  .play-tool { min-width: 76px; }
  .game-bottom-bar { grid-template-columns: minmax(150px,1.2fr) repeat(3,.55fr) minmax(180px,.9fr); }
  .game-bottom-bar .feature-toggle { display: none; }
}

@media (max-width: 1020px) {
  .game-shell { grid-template-columns: 1fr; }
  .game-side { display: grid; grid-template-columns: 1fr 1fr; }
  .shortcuts-card { margin-top: 0; }
  .game-workspace { height: 760px; }
  .game-header-actions .game-action:not(#fullscreenButton) { display: none; }
}

@media (max-width: 820px) {
  .game-header { height: 60px; padding: 0 10px; }
  .game-brand > span:last-child, .header-puzzle-name, #fullscreenButton { display: none; }
  .game-back { font-size: 11px; }
  .game-shell { min-height: calc(100dvh - 60px); padding: 7px; display: block; }
  .game-workspace { height: calc(100dvh - 74px); min-height: 610px; border-radius: 16px; }
  .workspace-hud { top: 7px; left: 7px; right: 7px; min-height: 48px; gap: 3px; }
  .hud-stat { min-width: 58px; padding: 4px 7px; }
  .hud-stat span { font-size: 7px; }
  .hud-stat strong { font-size: 12px; }
  .hud-button { min-width: 40px; width: 40px; font-size: 0; }
  .hud-button span { font-size: 14px; }
  .hud-button.icon-only { min-width: 36px; width: 36px; }
  .hud-button.zoom-readout { min-width: 46px; width: 46px; font-size: 9px; }
  .hud-spacer { min-width: 4px; }
  .piece-tray { top: auto; left: 7px; right: 7px; bottom: 74px; width: auto; height: 228px; }
  .game-workspace.tray-collapsed .piece-tray { width: auto; height: 57px; }
  .game-workspace.tray-collapsed .tray-header { min-height: 57px; }
  .game-workspace.tray-collapsed .tray-header button { transform: rotate(90deg); }
  .tray-header button { transform: rotate(90deg); }
  .tray-header { min-height: 48px; padding: 7px 10px; }
  .tray-header strong { font-size: 12px; }
  .tray-tabs { min-height: 40px; padding: 4px 8px; }
  .tray-tab { height: 29px; }
  .tray-navigation { position: absolute; right: 7px; top: 8px; min-height: 32px; padding: 0; border: 0; }
  .tray-navigation button { width: 30px; height: 30px; }
  .tray-navigation span { font-size: 8px; }
  .tray-guide { display: none; }
  .play-tools { left: 7px; right: 7px; bottom: 7px; max-width: none; padding: 4px; gap: 3px; }
  .play-tool { min-width: 0; flex: 1; min-height: 54px; padding: 4px 2px; }
  .play-tool span { font-size: 16px; }
  .play-tool strong { font-size: 8px; }
  .game-bottom-bar { display: none; }
  .game-side { display: none; }
  .pause-overlay { inset: 60px 0 0; }
}

@media (max-width: 820px) {
  .workspace-hud .hud-stat:nth-of-type(3), #panButton { display: none; }
  .workspace-hud .hud-spacer { display: none; }
  #referenceBoardButton { display: inline-flex; align-items: center; justify-content: center; }
}

/* =========================================================
   Game UX V4 — large board, bottom piece ribbon, pick & place
   ========================================================= */
.game-shell {
  position: relative;
  display: block;
  min-height: calc(100dvh - 70px);
  padding: 0;
}
.workspace-panel { display: block; min-width: 0; }
.game-workspace {
  height: calc(100dvh - 70px);
  min-height: 670px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 36%, rgba(27,72,101,.95) 0%, rgba(8,35,55,.98) 46%, #041522 100%);
}
.game-bottom-bar { display: none !important; }

.workspace-hud {
  top: 12px;
  left: 96px;
  right: 242px;
  min-height: 52px;
  padding: 6px;
  border-radius: 15px;
  background: rgba(4,23,37,.88);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.hud-stat { min-width: 86px; min-height: 40px; }
.hud-button { min-height: 40px; }

.play-tools {
  left: 12px;
  top: 82px;
  bottom: auto;
  max-width: none;
  width: 76px;
  padding: 6px;
  flex-direction: column;
  border-radius: 18px;
}
.play-tool {
  min-width: 62px;
  width: 62px;
  min-height: 60px;
  padding: 6px 4px;
}
.play-tool span { font-size: 20px; }
.play-tool strong { font-size: 9px; }

.piece-tray {
  top: auto;
  left: 96px;
  right: 18px;
  bottom: 16px;
  width: auto;
  height: 194px;
  display: grid;
  grid-template-rows: 56px 42px minmax(88px,1fr);
  border-radius: 20px;
  border-color: rgba(244,182,79,.22);
  background: linear-gradient(180deg, rgba(7,31,49,.965), rgba(3,18,30,.99));
  box-shadow: 0 26px 70px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.tray-header {
  min-height: 56px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid rgba(172,207,228,.1);
}
.tray-title { min-width: 190px; }
.tray-title small { color: #7896a8; font-size: 9px; margin-top: 2px; }
.tray-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.tray-action,
.tray-collapse,
.piece-size-control button {
  min-height: 36px;
  border: 1px solid rgba(172,207,228,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: #dfeaf0;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.tray-action { padding: 0 12px; }
.tray-action:hover,
.tray-collapse:hover,
.piece-size-control button:hover { border-color: rgba(244,182,79,.46); color: var(--gold-2); background: rgba(244,182,79,.08); }
.tray-action.primary { border-color: rgba(244,182,79,.42); color: var(--gold-2); background: rgba(244,182,79,.1); }
.tray-collapse { width: 38px; font-size: 18px; }
.piece-size-control {
  height: 36px;
  display: grid;
  grid-template-columns: 34px 50px 34px;
  align-items: center;
  border: 1px solid rgba(172,207,228,.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(1,13,22,.32);
}
.piece-size-control button { height: 34px; min-height: 34px; border: 0; border-radius: 0; font-size: 18px; }
.piece-size-control span { color: #a9bdc9; font-size: 9px; font-weight: 850; text-align: center; }
.tray-tabs {
  min-height: 42px;
  height: 42px;
  padding: 5px 154px 5px 12px;
  border-bottom: 1px solid rgba(172,207,228,.08);
}
.tray-tab { height: 31px; font-size: 10px; padding-inline: 12px; }
.tray-pieces-layer {
  position: relative;
  min-height: 88px;
  overflow: visible;
  pointer-events: none;
}
.tray-navigation {
  position: absolute;
  z-index: 8;
  right: 12px;
  top: 61px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: rgba(3,18,30,.9);
  border-radius: 10px;
}
.tray-navigation button { width: 32px; height: 32px; }
.tray-guide { display: none; }
.game-workspace.tray-collapsed .piece-tray {
  left: auto;
  right: 18px;
  width: 220px;
  height: 58px;
  grid-template-rows: 58px;
}
.game-workspace.tray-collapsed .tray-header { min-height: 58px; padding: 8px; }
.game-workspace.tray-collapsed .tray-title,
.game-workspace.tray-collapsed .tray-tabs,
.game-workspace.tray-collapsed .tray-pieces-layer,
.game-workspace.tray-collapsed .tray-navigation,
.game-workspace.tray-collapsed .tray-action,
.game-workspace.tray-collapsed .piece-size-control { display: none; }
.game-workspace.tray-collapsed .tray-actions { width: 100%; justify-content: flex-end; }
.game-workspace.tray-collapsed .tray-collapse { transform: rotate(180deg); }

.puzzle-piece { transform-origin: top left; }
.puzzle-piece.dragging,
.puzzle-piece.held { transition: none; }
.puzzle-piece.held {
  pointer-events: none !important;
  filter: drop-shadow(0 20px 18px rgba(0,0,0,.72)) brightness(1.12) saturate(1.08);
}
.puzzle-piece.snap-ready {
  filter: drop-shadow(0 0 8px rgba(255,209,103,.95)) drop-shadow(0 14px 16px rgba(0,0,0,.55)) brightness(1.18);
}
.puzzle-board.drop-active {
  border-color: rgba(255,208,102,.95);
  box-shadow: 0 18px 54px rgba(0,0,0,.36), 0 0 0 5px rgba(244,182,79,.13), inset 0 0 32px rgba(244,182,79,.06);
}
.piece-tray.drop-active { border-color: rgba(107,195,255,.75); box-shadow: 0 0 0 4px rgba(107,195,255,.08), 0 26px 70px rgba(0,0,0,.4); }

.hand-hint {
  position: absolute;
  z-index: 60000;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  min-width: 330px;
  min-height: 54px;
  padding: 8px 9px 8px 12px;
  display: grid;
  grid-template-columns: 36px 1fr 34px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(244,182,79,.5);
  border-radius: 15px;
  background: rgba(5,27,43,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  pointer-events: auto;
}
.hand-hint[hidden] { display: none; }
.hand-piece-icon { font-size: 23px; }
.hand-hint div { display: flex; flex-direction: column; }
.hand-hint strong { color: var(--gold-2); font-size: 12px; }
.hand-hint small { color: #9eb4c1; font-size: 9px; }
.hand-hint kbd { padding: 1px 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; background: rgba(255,255,255,.05); }
.hand-hint button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); color: #fff; font-size: 18px; cursor: pointer; }

.game-side {
  position: absolute;
  z-index: 17000;
  top: 82px;
  right: 18px;
  width: 204px;
  display: flex;
  gap: 8px;
}
.game-side .helper-card,
.game-side .shortcuts-card { display: none; }
.game-side .game-card { padding: 10px; border-radius: 15px; background: rgba(5,27,43,.91); backdrop-filter: blur(16px); }
.game-side .game-card-heading { margin-bottom: 7px; }
.game-side .game-card-heading h3 { font-size: 11px; }
.game-side .reference-image-button img { height: 116px; min-height: 116px; object-fit: cover; }
.game-side .reference-peek { min-height: 34px; font-size: 9px; }
.game-side .ghost-control { grid-template-columns: 1fr; gap: 5px; }
.game-side .ghost-control span,
.game-side .ghost-control output { display: none; }
.game-side .progress-card { padding: 9px 10px; }
.game-side .progress-layout { grid-template-columns: 62px 1fr; gap: 8px; }
.game-side .progress-ring { width: 58px; height: 58px; }
.game-side .progress-ring::after { inset: 7px; }
.game-side .progress-ring strong { font-size: 14px; }
.game-side .progress-layout dl > div { padding: 3px 0; }
.game-side .progress-layout dt { font-size: 7px; }
.game-side .progress-layout dd { font-size: 10px; }

.game-shell.focus-mode { display: block; }
.game-shell.focus-mode .game-workspace { height: calc(100dvh - 70px); }
.game-shell.focus-mode .game-side { display: none; }
.game-shell.focus-mode .piece-tray { right: 18px; }

@media (max-width: 1100px) {
  .workspace-hud { right: 16px; }
  .game-side { width: 174px; opacity: .92; }
  .game-side .progress-card { display: none; }
  .game-side .reference-image-button img { height: 98px; min-height: 98px; }
  .tray-action:not(.primary) { display: none; }
}

@media (max-width: 820px) {
  .game-shell { min-height: calc(100dvh - 60px); }
  .game-workspace { height: calc(100dvh - 60px); min-height: 610px; }
  .workspace-hud { top: 6px; left: 7px; right: 7px; min-height: 48px; }
  .workspace-hud .hud-stat:nth-of-type(3),
  #panButton,
  #fullscreenButton { display: none; }
  .hud-stat { min-width: 64px; padding-inline: 8px; }
  .hud-button { min-width: 39px; width: 39px; font-size: 0; }
  .hud-button span { font-size: 16px; }
  .hud-button.zoom-readout { min-width: 52px; width: 52px; font-size: 10px; }
  .play-tools {
    top: auto;
    left: 7px;
    right: 7px;
    bottom: 205px;
    width: auto;
    max-width: none;
    flex-direction: row;
    justify-content: space-between;
    padding: 4px;
  }
  .play-tool { min-width: 0; width: auto; flex: 1; min-height: 45px; }
  .play-tool span { font-size: 16px; }
  .play-tool strong { font-size: 8px; }
  .play-tool:nth-child(4),
  .play-tool:nth-child(5) { display: none; }
  .piece-tray {
    left: 7px;
    right: 7px;
    bottom: 7px;
    height: 190px;
    grid-template-rows: 54px 38px minmax(86px,1fr);
    border-radius: 17px;
  }
  .tray-header { min-height: 54px; padding: 7px 8px 7px 12px; }
  .tray-title small { display: none; }
  .tray-action { padding: 0 9px; }
  .tray-action.primary { font-size: 0; width: 38px; padding: 0; }
  .tray-action.primary::before { content: '✦'; font-size: 16px; }
  .piece-size-control { display: none; }
  .tray-tabs { min-height: 38px; height: 38px; padding: 4px 108px 4px 7px; }
  .tray-tab { height: 29px; padding-inline: 10px; }
  .tray-navigation { top: 58px; right: 7px; }
  .tray-guide { display: none; }
  .game-side { top: 60px; right: 7px; width: 124px; }
  .game-side .progress-card,
  .game-side .reference-peek,
  .game-side .ghost-control,
  .game-side .game-card-heading { display: none; }
  .game-side .reference-card { padding: 5px; border-radius: 11px; }
  .game-side .reference-image-button img { height: 86px; min-height: 86px; }
  .reference-image-button span { font-size: 0; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; }
  .reference-image-button span::after { content: '↗'; font-size: 12px; }
  .hand-hint { top: 58px; min-width: 0; width: calc(100% - 146px); left: 7px; transform: none; grid-template-columns: 28px 1fr 30px; }
  .hand-hint small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .game-workspace.tray-collapsed .piece-tray { right: 7px; bottom: 7px; width: 58px; height: 54px; }
  .game-workspace.tray-collapsed .tray-actions { justify-content: center; }
}

/* V4 specificity fixes for tray controls */
.tray-header > .tray-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tray-header > .tray-actions {
  width: auto;
  height: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.tray-header .tray-action {
  width: auto;
  height: 36px;
  min-width: auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.tray-header .tray-collapse {
  width: 38px;
  height: 36px;
  min-width: 38px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 820px) {
  .tray-header > .tray-actions { gap: 5px; }
  .tray-header .tray-action.primary { width: 38px; min-width: 38px; padding: 0; }
}

@media (max-width: 820px) {
  .tray-header #spreadPiecesButton,
  .tray-header #dockGatherButton,
  .tray-header .piece-size-control { display: none; }
  .tray-header > .tray-actions { width: 42px; flex: 0 0 42px; }
  .tray-header .tray-collapse { display: block; width: 38px; min-width: 38px; }
  .tray-navigation {
    top: 10px;
    right: 54px;
    min-height: 34px;
    background: rgba(5,27,43,.96);
  }
  .tray-navigation button { width: 31px; height: 31px; }
  .tray-tabs { padding: 4px 7px; }
}

/* V5 — gerçek parça birleşimi: birleşen kümelerde iç gölgeler kaldırılır. */
.board-pieces-layer .puzzle-piece.clustered { filter: none; }
.board-pieces-layer .puzzle-piece.locked { filter: none; }
.puzzle-piece.cluster-dragging { pointer-events: none !important; filter: none !important; }
.puzzle-piece.join-pop { animation: joinClusterPop .24s ease; }
@keyframes joinClusterPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.035); }
  100% { transform: scale(1); }
}


/* V7 — güvenilir tepsi aç/kapat + tek/çift sıra parça görünümü */
.tray-rows-toggle {
  width: 38px; height: 36px; min-width: 38px; min-height: 36px; padding: 0;
  display: grid; place-items: center; border: 1px solid rgba(244,182,79,.42);
  border-radius: 10px; background: rgba(244,182,79,.08); color: var(--gold-2);
  font: inherit; font-size: 18px; font-weight: 900; cursor: ns-resize;
  touch-action: none; user-select: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.tray-rows-toggle:hover,
.tray-rows-toggle.active { background: rgba(244,182,79,.16); border-color: rgba(244,182,79,.72); }
.tray-rows-toggle.dragging { transform: scale(.95); }
.tray-rows-toggle span { pointer-events: none; }

.piece-tray { transition: height .22s ease, opacity .18s ease, transform .22s ease; }
.tray-pieces-layer { overflow: hidden; }
.game-workspace.tray-two-rows .piece-tray {
  height: 328px;
  grid-template-rows: 56px 42px minmax(230px,1fr);
}
.game-workspace.tray-two-rows .tray-pieces-layer { min-height: 230px; }
.game-workspace.tray-two-rows .tray-rows-toggle { box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }

.game-workspace.tray-collapsed .piece-tray { display: none !important; }
.tray-reopen {
  position: absolute; z-index: 52000; right: 18px; bottom: 16px;
  min-width: 186px; height: 48px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid rgba(244,182,79,.58); border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,51,69,.98), rgba(5,27,43,.99));
  color: #f7fbfd; box-shadow: 0 16px 42px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  font: inherit; font-size: 11px; font-weight: 900; cursor: pointer;
}
.tray-reopen:hover { border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-1px); }
.tray-reopen[hidden] { display: none !important; }
.tray-reopen-icon { font-size: 18px; }
.tray-reopen b { color: var(--gold-2); font-size: 17px; }

@media (max-width: 1100px) { .tray-rows-toggle { width: 36px; min-width: 36px; } }
@media (max-width: 820px) {
  .tray-header > .tray-actions { width: 84px !important; flex: 0 0 84px !important; gap: 5px; }
  .tray-header .tray-collapse,
  .tray-header .tray-rows-toggle { display: grid !important; width: 38px; min-width: 38px; }
  .game-workspace.tray-two-rows .piece-tray {
    height: 300px;
    grid-template-rows: 54px 38px minmax(208px,1fr);
  }
  .game-workspace.tray-two-rows .tray-pieces-layer { min-height: 208px; }
  .game-workspace.tray-two-rows .play-tools { bottom: 315px; }
  .tray-reopen { right: 7px; bottom: 7px; min-width: 174px; height: 46px; }
}

/* =========================================================
   YapbozOyna V8 — gerçek üyelik, gerçek sayılar ve okunabilir oyun UI'ı
   ========================================================= */
.brand-word { font-family: var(--sans); font-weight: 900; letter-spacing: -.055em; color: #f5f8fa; }
.brand-word > span { color: var(--gold-2); }
.brand-symbol { position: relative; }
.brand-symbol .brand-play { fill: #071c2d; opacity: .9; }
.admin-link { text-decoration: none; }
.mobile-menu a { display: block; padding: 12px 14px; color: #fff; text-decoration: none; }
.data-mode-badge { align-self: flex-start; padding: 8px 11px; border: 1px solid rgba(244,182,79,.22); border-radius: 999px; color: #c6d5dd; font-size: 11px; font-weight: 800; background: rgba(244,182,79,.05); }
.data-mode-badge.connected { color: #9fe2b2; border-color: rgba(82,213,125,.3); background: rgba(82,213,125,.06); }
.stats-strip { grid-template-columns: repeat(5,1fr); }
.card-favorite { min-width: 52px; gap: 4px; }
.card-favorite small { font-size: 10px; font-weight: 800; }
.puzzle-card-meta { flex-wrap: wrap; row-gap: 6px; }
.leaderboard-list li > span:nth-child(3) { display: flex; flex-direction: column; min-width: 0; }
.leaderboard-list li > span:nth-child(3) small { color: var(--muted-2); font-size: 9px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-empty { color: var(--muted); line-height: 1.5; text-align: center; }
.compact-empty { min-height: 120px; }

/* Authentication */
.account-card { width: min(520px, calc(100vw - 28px)); padding: 26px; text-align: left; }
.auth-logo { display: flex; align-items: center; gap: 12px; margin: 0 36px 22px 0; }
.auth-logo-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(244,182,79,.12); border: 1px solid rgba(244,182,79,.3); font-size: 23px; }
.auth-logo > div { display: flex; flex-direction: column; }
.auth-logo strong { font-size: 22px; letter-spacing: -.04em; }
.auth-logo strong span { color: var(--gold-2); }
.auth-logo small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.auth-tabs { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 850; cursor: pointer; }
.auth-tabs button.active { background: rgba(244,182,79,.13); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(244,182,79,.25); }
.auth-view[hidden] { display: none; }
.auth-heading { margin: 22px 0 10px; }
.auth-heading h2 { margin: 0 0 6px; font-size: 27px; }
.auth-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-form { display: grid; gap: 13px; }
.auth-form label { display: grid; gap: 7px; margin: 0; color: #dce7ed; font-size: 12px; font-weight: 800; }
.auth-form label > small { color: var(--muted-2); font-weight: 600; }
.auth-form input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); color: #fff; padding: 0 14px; outline: 0; }
.auth-form input:focus { border-color: rgba(244,182,79,.6); box-shadow: 0 0 0 3px rgba(244,182,79,.08); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; right: 7px; top: 7px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: rgba(255,255,255,.06); color: #cbd9df; cursor: pointer; font-size: 10px; font-weight: 800; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.terms-check { grid-template-columns: 20px 1fr !important; align-items: start; color: var(--muted) !important; font-weight: 600 !important; line-height: 1.45; }
.terms-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold); }
.auth-text-button, .auth-back { margin: 14px auto 0; display: block; border: 0; background: transparent; color: var(--gold-2); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-back { margin: 0 0 16px; }
.auth-feedback { min-height: 20px; margin: 14px 0 0; color: #ffba9d; font-size: 12px; text-align: center; line-height: 1.45; }

/* Profile */
.profile-card { width: min(780px, calc(100vw - 28px)); padding: 26px; text-align: left; }
.profile-head { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 15px; padding-right: 34px; }
.profile-avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(145deg,#f7c063,#d88931); color: #10212c; font-size: 24px; font-weight: 950; }
.profile-head h2 { margin: 4px 0 1px; font-size: 27px; }
.profile-head p { margin: 0; color: var(--muted); }
.cloud-status { padding: 8px 10px; border-radius: 999px; background: rgba(83,202,126,.08); border: 1px solid rgba(83,202,126,.24); color: #99dcae; font-size: 10px; font-weight: 850; }
.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 20px 0; }
.profile-stats > div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.profile-stats strong { display: block; font-size: 22px; color: var(--gold-2); }
.profile-stats small { color: var(--muted); }
.streak-badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 4px 9px; border: 1px solid rgba(255,142,60,.4); border-radius: 999px; background: linear-gradient(135deg,rgba(255,142,60,.2),rgba(255,80,40,.08)); color: #ffb27a; font-size: 11px; font-weight: 900; }
.profile-badges-section { margin: 16px 0 20px; }
.profile-badges-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.profile-badges-head strong { font-size: 13px; }
.profile-badges-head small { color: var(--muted); font-size: 11px; }
.profile-badges-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(84px,1fr)); gap: 8px; }
.profile-badge-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); text-align: center; }
.profile-badge-chip .profile-badge-icon { font-size: 22px; line-height: 1; }
.profile-badge-chip small { font-size: 9px; font-weight: 800; color: var(--muted); line-height: 1.25; }
.profile-badge-chip.earned { border-color: rgba(244,182,79,.4); background: rgba(244,182,79,.08); }
.profile-badge-chip.earned small { color: var(--gold-2); }
.profile-badge-chip.locked { opacity: .4; filter: grayscale(1); }
.profile-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); overflow-x: auto; }
.profile-tabs button { min-height: 38px; padding: 0 14px; white-space: nowrap; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.profile-tabs button.active { color: #fff; background: rgba(255,255,255,.065); }
.profile-pane { min-height: 210px; max-height: 340px; overflow: auto; padding: 12px 2px 2px; }
.profile-pane[hidden] { display: none; }
.profile-list { display: grid; gap: 8px; }
.profile-result { width: 100%; min-height: 72px; display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); color: #fff; text-align: left; cursor: pointer; }
.profile-result:hover { border-color: rgba(244,182,79,.35); background: rgba(244,182,79,.04); }
.profile-result img { width: 76px; height: 54px; object-fit: cover; border-radius: 9px; }
.profile-result span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-result small { color: var(--muted); }
.profile-result b { color: var(--gold-2); font-size: 12px; white-space: nowrap; }
.profile-empty, .profile-loading { min-height: 180px; display: grid; place-content: center; gap: 6px; text-align: center; color: var(--muted); }
.profile-empty strong { color: #dce7ed; }
.profile-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.button.danger { color: #ffb0a9; border-color: rgba(255,106,96,.25); }

/* v2.1.20 — "Fotoğrafından Puzzle Yap" profil sekmesi */
.photo-puzzle-pane { max-height: none; }
.photo-puzzle-intro { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.photo-puzzle-intro strong { font-size: 13px; }
.photo-puzzle-intro span { color: var(--muted); font-size: 11px; }
.photo-upload-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); }
.photo-upload-section.is-locked { opacity: .6; }
.photo-upload-section > strong { font-size: 12.5px; }
.photo-credit-hint { margin: 0; padding: 8px 10px; border: 1px solid rgba(244,182,79,.35); border-radius: 10px; background: rgba(244,182,79,.08); color: var(--gold-2); font-size: 11.5px; font-weight: 800; cursor: pointer; }
.photo-credit-section { margin-bottom: 16px; padding: 12px; border: 1px solid rgba(244,182,79,.28); border-radius: 13px; background: rgba(244,182,79,.04); }
.photo-credit-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.photo-credit-heading strong { font-size: 13px; }
.photo-credit-balance { font-size: 12px; color: var(--muted); }
.photo-credit-balance b { color: var(--gold-2); }
.photo-credit-packages { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-credit-package { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 7px 12px; border: 1px solid rgba(244,182,79,.3); border-radius: 12px; background: rgba(244,182,79,.06); color: #fff; cursor: pointer; font: inherit; }
.photo-credit-package:hover { border-color: rgba(244,182,79,.5); background: rgba(244,182,79,.12); }
.photo-credit-package:disabled { opacity: .55; cursor: default; }
.photo-credit-package.active { border-color: var(--gold-2); background: rgba(244,182,79,.18); box-shadow: 0 0 0 1px rgba(244,182,79,.3); }
.photo-credit-package strong { font-size: 11.5px; }
.photo-credit-package small { color: var(--gold-2); font-size: 11px; font-weight: 800; }
.photo-buyer-form { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4,10,16,.35); }
.photo-buyer-form[hidden] { display: none; }
.photo-buyer-form small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.photo-buyer-selected { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.photo-buyer-selected b { color: var(--gold-2); }
.photo-buyer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.profile-list-heading { margin: 4px 0 8px; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.profile-list-heading:not(:first-of-type) { margin-top: 18px; }

/* v2.1.24 — üst "canlı aktivite" şeridi */
.activity-ribbon { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 11px 16px; background: linear-gradient(90deg, rgba(244,182,79,.28), rgba(244,182,79,.12)); border-bottom: 2px solid rgba(244,182,79,.4); box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 13.5px; font-weight: 700; color: #fff; text-align: center; }
.activity-ribbon strong { color: var(--gold-2); font-weight: 900; font-size: 15px; }
.activity-pulse-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #5bd67a; box-shadow: 0 0 0 0 rgba(91,214,122,.6); animation: activityPulseBeat 1.6s infinite; flex: 0 0 auto; }
@keyframes activityPulseBeat { 0% { box-shadow: 0 0 0 0 rgba(91,214,122,.6); } 70% { box-shadow: 0 0 0 9px rgba(91,214,122,0); } 100% { box-shadow: 0 0 0 0 rgba(91,214,122,0); } }
@media (max-width: 640px) { .activity-ribbon { font-size: 12px; padding: 9px 12px; } .activity-ribbon strong { font-size: 13px; } }

/* v2.1.24 — "Kendi fotoğrafını puzzle'a çevir" tanıtım bandı */
/* v2.1.29 — "Anılarını puzzle'a çevir" artık deneyim kartları grid'inin (Yetişkin/Çocuk/Birlikte
   Oyna) içinde 4. kart olarak yaşıyor; .experience-card stillerini miras alıyor, ayrı bir bölüm
   olarak değil. Grid'i 2 sütuna (2x2) çeken kural dosyanın sonunda, kademe-güvenli blokta. */
.photo-promo-card .overline.light { display: inline-flex; align-items: center; gap: 5px; }

/* Ranking */
.ranking-card { width: min(900px, calc(100vw - 28px)); padding: 26px; text-align: left; }
.ranking-piece-tabs { display: flex; gap: 6px; margin: 18px 0 12px; overflow-x: auto; }
.ranking-piece-tabs button { min-width: 62px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); font: inherit; font-weight: 850; cursor: pointer; }
.ranking-piece-tabs button.active { color: #15242d; background: var(--gold); border-color: var(--gold); }
.ranking-table-wrap { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 15px; }
.ranking-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.ranking-table th { position: sticky; top: 0; z-index: 1; padding: 12px 14px; background: #0a263b; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-align: left; }
.ranking-table td { padding: 11px 14px; border-top: 1px solid rgba(172,207,228,.09); color: #dce7ed; }
.ranking-table tr.is-you td { background: rgba(244,182,79,.08); }
.ranking-user { display: flex; align-items: center; gap: 9px; }
.ranking-user i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(244,182,79,.14); color: var(--gold-2); font-style: normal; font-size: 10px; font-weight: 900; }
.ranking-user > span { display: flex; flex-direction: column; }
.ranking-user small { color: var(--muted); font-size: 9px; }

/* Game side leaderboard */
.game-leaderboard-card { min-height: 132px; }
.card-link-button { min-width: 40px; }
.mini-ranking { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.mini-ranking li { min-height: 26px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 5px; padding: 3px 4px; border-radius: 7px; font-size: 9px; }
.mini-ranking li.is-you { background: rgba(244,182,79,.1); }
.mini-ranking li > b { color: var(--gold-2); }
.mini-ranking li > span { display: flex; justify-content: space-between; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-ranking li small { color: var(--muted); }
.mini-ranking li > strong { color: #dce7ed; font-size: 8px; }
.mini-ranking li.ranking-empty {
  display: block;
  min-height: 72px;
  padding: 14px 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
  white-space: normal;
}
.completion-score { grid-template-columns: repeat(4,1fr); }
.completion-save-status { margin: -10px 0 18px; color: var(--gold-2); font-size: 12px; font-weight: 750; cursor: pointer; }

/* Oyun alanındaki tüm okunabilir metinler yaklaşık 2pt (2.67px) büyütüldü. */
.game-view .game-back { font-size: 14.67px; }
.game-view .game-action { font-size: 15.67px; }
.game-view .hud-stat strong { font-size: 16.67px; }
.game-view .hud-stat small { font-size: 11.67px; }
.game-view .hud-button { font-size: 12.67px; }
.game-view .tray-kicker,
.game-view .card-kicker { font-size: 10.67px; }
.game-view .tray-header strong { font-size: 16.67px; }
.game-view .tray-title small { font-size: 11.67px; }
.game-view .tray-action,
.game-view .tray-collapse,
.game-view .piece-size-control button { font-size: 12.67px; }
.game-view .piece-size-control span { font-size: 11.67px; }
.game-view .tray-tab { font-size: 12.67px; }
.game-view .tray-navigation { font-size: 12.67px; }
.game-view .play-tool strong { font-size: 11.67px; }
.game-view .play-tool small { font-size: 11.67px; }
.game-view .game-card-heading h3 { font-size: 13.67px; }
.game-view .game-card-heading span { font-size: 11.67px; }
.game-view .reference-peek { font-size: 11.67px; }
.game-view .progress-layout dt { font-size: 9.67px; }
.game-view .progress-layout dd { font-size: 12.67px; }
.game-view .mini-ranking li { font-size: 11.67px; }
.game-view .mini-ranking li > strong { font-size: 10.67px; }
.game-view .hand-hint strong { font-size: 14.67px; }
.game-view .hand-hint small { font-size: 11.67px; }

@media (max-width: 900px) {
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .stats-strip > div:last-child { grid-column: 1 / -1; }
  .profile-card, .ranking-card, .account-card { padding: 20px; }
  .two-fields { grid-template-columns: 1fr; }
  .profile-result { grid-template-columns: 64px 1fr; }
  .profile-result img { width: 64px; height: 50px; }
  .profile-result b { grid-column: 2; }
}
@media (max-width: 820px) {
  .game-side .game-leaderboard-card { display: none; }
  .game-view .play-tool strong { font-size: 10.67px; }
  .game-view .tray-tab { font-size: 11.67px; }
}
@media (max-width: 560px) {
  .profile-head { grid-template-columns: 52px 1fr; }
  .profile-avatar { width: 52px; height: 52px; border-radius: 16px; }
  .cloud-status { grid-column: 1 / -1; justify-self: start; }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-actions { flex-direction: column; }
  .profile-actions .button { width: 100%; }
  .completion-score { grid-template-columns: repeat(2,1fr); }
}

/* =========================================================
   YapbozOyna V10 — modern controls, iguana identity, stable game layout
   ========================================================= */
:root {
  --serif: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.brand-iguana { width: 42px; height: 32px; color: transparent; }
.brand-iguana img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(217,145,34,.18)); }
.game-brand .brand-iguana { width: 38px; height: 29px; }
.auth-logo-mark { padding: 5px; }
.auth-logo-mark img { width: 100%; height: 100%; object-fit: contain; }

/* Native select yerine tüm tarayıcılarda aynı görünen açılır menü */
.yo-select { position: relative; width: 100%; min-width: 0; font-family: var(--sans); }
.yo-select-native {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}
.yo-select-button {
  width: 100%; min-height: 48px; padding: 0 46px 0 14px;
  display: flex; align-items: center; text-align: left;
  border: 1px solid rgba(172,207,228,.18); border-radius: 13px;
  background: linear-gradient(180deg, #0d304b, #09243a);
  color: #f4f8fa; font: 800 14px/1.2 var(--sans); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.yo-select-button:hover { border-color: rgba(244,182,79,.46); }
.yo-select-button:focus-visible { outline: 3px solid rgba(244,182,79,.16); border-color: var(--gold); }
.yo-select-button i {
  position: absolute; right: 16px; width: 9px; height: 9px;
  border-right: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2);
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.yo-select.is-open .yo-select-button i { transform: rotate(225deg) translate(-2px,-2px); }
.yo-select-menu {
  position: absolute; z-index: 120000; left: 0; right: 0; top: calc(100% + 7px);
  max-height: min(360px, 52vh); padding: 7px; overflow: auto;
  border: 1px solid rgba(244,182,79,.3); border-radius: 15px;
  background: #071d2f; box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.yo-select-menu[hidden] { display: none !important; }
.yo-select-option {
  width: 100%; min-height: 43px; padding: 9px 12px; border: 0; border-radius: 10px;
  display: flex; align-items: center; text-align: left;
  background: transparent; color: #dce8ee; font: 750 13px/1.3 var(--sans); cursor: pointer;
}
.yo-select-option:hover, .yo-select-option.is-active { background: rgba(255,255,255,.065); color: #fff; }
.yo-select-option.is-selected { color: #10202a; background: linear-gradient(135deg,var(--gold-2),var(--gold)); }
.yo-select-option.is-selected::before { content: "✓"; margin-right: 8px; font-weight: 950; }
.yo-select.is-disabled { opacity: .55; }

.profile-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.member-role-badge { padding: 8px 10px; border-radius: 999px; background: rgba(244,182,79,.1); border: 1px solid rgba(244,182,79,.28); color: var(--gold-2); font-size: 10px; font-weight: 900; }
.member-role-badge.admin { background: rgba(111,213,165,.08); border-color: rgba(111,213,165,.28); color: #a5e5c3; }

/* Oyun alanı: büyütülmüş tipografiye alan aç, öğeleri üst üste bindirme */
.game-shell { --tray-height: 218px; }
.game-shell.tray-two-rows { --tray-height: 354px; }
.workspace-hud {
  min-height: 58px; left: 102px; right: 238px; padding: 7px 8px;
  gap: 6px; overflow: visible;
}
.hud-stat { min-height: 44px; min-width: 92px; padding-inline: 12px; }
.hud-button { min-height: 44px; padding-inline: 13px; }
.play-tools { top: 86px; width: 82px; padding: 7px; gap: 5px; }
.play-tool { width: 68px; min-width: 68px; min-height: 64px; }
.piece-tray {
  left: 102px; right: 18px; bottom: 16px; height: var(--tray-height);
  grid-template-rows: 64px 48px minmax(104px,1fr);
}
.game-workspace.tray-two-rows .piece-tray {
  height: var(--tray-height);
  grid-template-rows: 64px 48px minmax(240px,1fr);
}
.tray-header { min-height: 64px; padding: 9px 11px 9px 16px; }
.tray-title { min-width: 230px; }
.tray-actions { min-width: 0; }
.tray-tabs { min-height: 48px; height: 48px; padding: 6px 118px 6px 12px; }
.tray-pieces-layer { min-height: 104px; }
.game-workspace.tray-two-rows .tray-pieces-layer { min-height: 240px; }
.tray-navigation { top: 70px; }
.tray-row-switch {
  height: 38px; display: grid; grid-template-columns: repeat(2,58px); padding: 3px;
  border: 1px solid rgba(172,207,228,.16); border-radius: 11px; background: rgba(1,13,22,.34);
}
.tray-row-switch button {
  min-width: 0; min-height: 30px; padding: 0 7px; border: 0; border-radius: 8px;
  background: transparent; color: #8fa8b7; font: 850 10px/1 var(--sans); cursor: pointer;
}
.tray-row-switch button.active, .tray-row-switch button[aria-pressed="true"] {
  color: #10202a; background: linear-gradient(135deg,var(--gold-2),var(--gold));
  box-shadow: 0 5px 16px rgba(226,153,44,.2);
}
.game-side { top: 84px; bottom: calc(var(--tray-height) + 28px); max-height: none; overflow: auto; scrollbar-width: thin; }
.game-shell.tray-two-rows .game-side { bottom: 382px; }
.game-side .game-card { flex: 0 0 auto; }
.game-shell.tray-two-rows .game-side .game-leaderboard-card { display: none; }
.game-workspace.table-mode .board-stage { opacity: 1; }

/* Basılı tut önizlemesinin 5 saniyelik bilinçli hareket olduğunu göster */
.puzzle-piece.preview-hold-pending::after {
  content: "5 sn"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(calc(1 / var(--piece-scale,1)));
  min-width: 38px; height: 27px; padding: 0 7px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(3,19,31,.9); border: 1px solid rgba(244,182,79,.6);
  color: var(--gold-2); font: 900 10px/1 var(--sans); pointer-events: none;
}

@media (max-width: 1280px) {
  .workspace-hud { right: 194px; }
  .game-side { width: 174px; }
  .tray-action { padding-inline: 9px; }
  .tray-title { min-width: 190px; }
}
@media (max-width: 1100px) {
  .workspace-hud { right: 16px; }
  .game-side { display: none; }
  .piece-tray { right: 14px; }
}
@media (max-width: 820px) {
  .brand-iguana { width: 34px; height: 27px; }
  .game-shell { --tray-height: 204px; }
  .game-shell.tray-two-rows { --tray-height: 318px; }
  .piece-tray { left: 7px; right: 7px; bottom: 7px; height: var(--tray-height); grid-template-rows: 58px 42px minmax(102px,1fr); }
  .game-workspace.tray-two-rows .piece-tray { height: var(--tray-height); grid-template-rows: 58px 42px minmax(214px,1fr); }
  .tray-header { min-height: 58px; }
  .tray-title { min-width: 130px; }
  .tray-title small, .tray-action:not(.primary), .piece-size-control { display: none; }
  .tray-row-switch { grid-template-columns: repeat(2,48px); }
  .tray-row-switch button { font-size: 9px; }
  .tray-tabs { min-height: 42px; height: 42px; padding-right: 106px; }
  .tray-navigation { top: 63px; }
  .play-tools { bottom: calc(var(--tray-height) + 14px); }
  .game-workspace.tray-two-rows .play-tools { bottom: calc(var(--tray-height) + 14px); }
}


/* =========================================================
   YapbozOyna V11 — özgün logo, serbest masa, devam kartı, rozetler
   ========================================================= */
.brand { gap: 0; min-width: 0; }
.brand-full-logo { display: block; width: 184px; height: 58px; object-fit: contain; object-position: left center; }
.game-brand .brand-full-logo { width: 166px; height: 54px; }
.footer-brand .brand-full-logo { width: 205px; height: 82px; }
.auth-logo { flex-direction: column; align-items: flex-start; gap: 5px; }
.auth-full-logo { width: 235px; height: 94px; object-fit: contain; object-position: left center; }
.auth-logo > small { color: var(--muted); font-size: 11px; }
.admin-header .brand-full-logo { width: 190px; height: 64px; }

.resume-strip { position: relative; width: min(1420px, calc(100% - 40px)); min-height: 112px; margin: -15px auto 28px; padding: 12px 64px 12px 12px; display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 18px; border: 1px solid rgba(244,182,79,.3); border-radius: 20px; background: linear-gradient(110deg, rgba(14,48,70,.98), rgba(5,27,43,.98)); box-shadow: 0 18px 46px rgba(0,0,0,.24); }
.resume-strip[hidden] { display: none !important; }
.resume-strip img { width: 132px; height: 86px; object-fit: cover; border-radius: 13px; border: 1px solid rgba(255,255,255,.1); }
.resume-copy h2 { margin: 3px 0; font-size: 22px; }
.resume-copy p { margin: 0; color: var(--muted); }
.resume-copy p b { color: var(--gold-2); }
.resume-dismiss { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255,255,255,.04); color: #a9bdc9; font-size: 21px; cursor: pointer; }

.rank-badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 4px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: 9px; font-weight: 900; line-height: 1; white-space: nowrap; vertical-align: middle; }
.rank-badge.compact { min-width: 21px; height: 21px; padding: 0 4px; justify-content: center; font-size: 12px; }
.rank-badge-legend { color: #fff1a8; border-color: rgba(255,211,70,.52); background: linear-gradient(135deg,rgba(255,189,31,.24),rgba(255,113,32,.12)); }
.rank-badge-gold { color: #ffe38b; border-color: rgba(246,193,59,.42); background: rgba(246,193,59,.12); }
.rank-badge-silver { color: #e7f2f8; border-color: rgba(198,218,231,.35); background: rgba(198,218,231,.1); }
.rank-badge-bronze { color: #ffc394; border-color: rgba(215,137,81,.4); background: rgba(215,137,81,.1); }
.rank-badge-starter { color: #a9c9da; border-color: rgba(135,187,215,.28); background: rgba(80,151,188,.08); }
.profile-badges { flex-wrap: wrap; justify-content: flex-end; }
.ranking-user strong { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mini-ranking .rank-badge { transform: scale(.88); transform-origin: left center; }

.game-workspace.table-mode::before { content: 'SERBEST ÇALIŞMA MASASI'; position: absolute; z-index: 3; left: 102px; top: 78px; color: rgba(150,188,208,.32); font-size: 9px; font-weight: 900; letter-spacing: .18em; pointer-events: none; }
.game-workspace.table-drop-active { box-shadow: inset 0 0 0 3px rgba(244,182,79,.13); }
.game-workspace.table-drop-active::after { content: 'Buraya bırak'; position: absolute; z-index: 4; left: 50%; top: 78px; transform: translateX(-50%); padding: 5px 10px; border-radius: 999px; background: rgba(244,182,79,.14); color: var(--gold-2); font-size: 9px; font-weight: 900; pointer-events: none; }
.game-workspace.table-mode .puzzle-board { box-shadow: 0 18px 54px rgba(0,0,0,.36), 0 0 0 7px rgba(3,15,25,.38), 0 0 0 1px rgba(244,182,79,.5); }
.board-pieces-layer { overflow: visible !important; }
.board-stage { overflow: visible !important; }

@media (max-width: 820px) {
  .brand-full-logo { width: 142px; height: 50px; }
  .game-brand .brand-full-logo { width: 128px; height: 46px; }
  .resume-strip { width: calc(100% - 20px); margin: 8px auto 20px; padding: 10px 44px 10px 10px; grid-template-columns: 82px 1fr; gap: 10px; }
  .resume-strip img { width: 82px; height: 68px; }
  .resume-strip .button { grid-column: 1 / -1; width: 100%; }
  .resume-copy h2 { font-size: 17px; }
  .game-workspace.table-mode::before { left: 10px; top: 58px; }
}

/* ========================================================================== */
/* V12 — arkadaşlar, ortak oyun, çoklu seçim, rehber ve koleksiyon sayfası    */
/* ========================================================================== */
.header-social-button{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 15px;border:1px solid rgba(148,188,215,.2);border-radius:14px;background:rgba(5,26,43,.64);color:var(--text);font-weight:800;cursor:pointer}.header-social-button:hover{border-color:rgba(247,187,74,.52);background:rgba(16,48,69,.85)}.header-social-button .online-count{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#27c982;color:#02170f;font-size:12px;font-weight:900}.multiplayer-action{border-color:rgba(66,211,157,.35)!important}.multiplayer-action::before{content:"";width:7px;height:7px;border-radius:50%;background:#38d996;box-shadow:0 0 0 4px rgba(56,217,150,.12)}

.selection-box{position:absolute;z-index:99990;border:2px solid #ffd16c;border-radius:10px;background:rgba(255,199,85,.12);box-shadow:0 0 0 1px rgba(3,20,34,.75),0 0 24px rgba(255,189,64,.18);pointer-events:none}.selection-toolbar{position:absolute;z-index:99992;left:50%;top:88px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:8px;border:1px solid rgba(255,198,74,.42);border-radius:16px;background:rgba(4,24,40,.95);box-shadow:0 15px 45px rgba(0,0,0,.35);backdrop-filter:blur(14px)}.selection-toolbar[hidden]{display:none}.selection-toolbar strong{padding:0 8px;white-space:nowrap;font-size:13px;color:#fff}.selection-toolbar button{min-width:38px;height:38px;border:1px solid rgba(161,194,215,.18);border-radius:10px;background:#102d43;color:#f7fbff;font:800 13px/1 var(--font);cursor:pointer}.selection-toolbar button:hover{border-color:#f7bf51;color:#ffd270}.selection-toolbar #selectionToTray{padding:0 12px;min-width:auto}.selection-toolbar #clearSelection{padding:0 12px;min-width:auto;background:transparent}.game-workspace.selection-mode{cursor:crosshair}.game-workspace.selection-mode .board-stage,.game-workspace.selection-mode .puzzle-board{cursor:crosshair}.puzzle-piece.multi-selected{filter:drop-shadow(0 0 3px #ffd86d) drop-shadow(0 0 8px rgba(255,194,69,.85));outline:2px solid rgba(255,210,100,.92);outline-offset:-2px}.puzzle-piece.remote-claimed{filter:grayscale(.35) opacity(.64);pointer-events:none}.puzzle-piece.preview-hold-pending::after{content:"3 sn";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(4,24,40,.88);color:#ffd269;font:900 11px/1 var(--font);box-shadow:0 0 0 3px rgba(255,201,82,.22)}.piece-tray.drop-active{border-color:#58dfaa!important;box-shadow:inset 0 0 0 2px rgba(73,222,168,.28),0 0 28px rgba(54,211,158,.16)}.piece-tray.drop-active::before{content:"Parçayı şeride geri bırak";position:absolute;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 16px;border-radius:999px;background:#37d59a;color:#062019;font-weight:900;box-shadow:0 10px 30px rgba(0,0,0,.3);pointer-events:none}

.anti-spam-box{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:14px 15px;border:1px solid rgba(112,172,201,.22);border-radius:16px;background:rgba(8,34,53,.78)}.anti-spam-box>div:first-child{display:flex;flex-direction:column;gap:3px}.anti-spam-box strong{font-size:14px;color:#f3f8fb}.anti-spam-box small{font-size:12px;color:var(--muted)}.anti-spam-box label{display:flex;align-items:center;gap:8px;margin:0;color:#ffd36d;font-size:16px;font-weight:900}.anti-spam-box input[type=number]{width:78px;height:42px;margin:0;border-radius:11px;text-align:center;font-size:18px;font-weight:900}.honeypot-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.anti-spam-box #turnstileContainer{grid-column:1/-1;justify-self:center}

.social-card{width:min(780px,calc(100vw - 30px));max-height:min(820px,90vh);overflow:auto}.social-tabs{display:flex;gap:7px;margin:20px 0 12px;padding:5px;border:1px solid rgba(139,183,209,.16);border-radius:15px;background:rgba(4,24,39,.68)}.social-tabs button{flex:1;min-height:42px;border:0;border-radius:11px;background:transparent;color:var(--muted);font:800 13px/1 var(--font);cursor:pointer}.social-tabs button.active{background:#173a52;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,194,75,.28)}.social-tabs span{display:inline-grid;place-items:center;min-width:21px;height:21px;margin-left:5px;border-radius:99px;background:rgba(255,255,255,.09);font-size:11px}.social-search{display:flex;align-items:center;gap:9px;padding:0 14px;border:1px solid rgba(139,183,209,.18);border-radius:14px;background:#08283f}.social-search input{width:100%;height:48px;border:0!important;background:transparent!important;box-shadow:none!important}.social-list{display:grid;gap:9px;min-height:120px;margin-top:12px}.social-player{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;border:1px solid rgba(139,183,209,.14);border-radius:15px;background:rgba(10,39,59,.76)}.social-avatar,.room-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#f3c25c,#9a6d31);color:#071c2b;font-weight:950;box-shadow:inset 0 0 0 2px rgba(255,255,255,.18)}.social-player-info{display:flex;min-width:0;flex-direction:column;gap:4px}.social-player-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f8fbfd}.social-player-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.online-dot{display:inline-block;width:8px;height:8px;margin-left:5px;border-radius:50%;background:#3adc9a;box-shadow:0 0 0 4px rgba(58,220,154,.1)}.social-player-actions{display:flex;gap:6px}.social-action{min-height:36px;padding:0 11px;border:1px solid rgba(139,183,209,.2);border-radius:10px;background:#102f46;color:#e9f3f8;font:800 12px/1 var(--font);cursor:pointer}.social-action.primary,.social-action.accept{border-color:#e8ae41;background:#f2be58;color:#071b28}.social-action.icon{width:36px;padding:0}.social-action:disabled{opacity:.55;cursor:default}.social-empty{display:flex;min-height:125px;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:22px;text-align:center;border:1px dashed rgba(139,183,209,.18);border-radius:15px;color:var(--muted)}.social-room-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:12px 14px;border-radius:13px;background:rgba(242,184,74,.1);border:1px solid rgba(242,184,74,.28)}.social-room-summary>div{display:flex;flex-direction:column;gap:4px;min-width:0}.social-room-summary small{color:var(--muted)}.social-room-summary[hidden]{display:none!important}.invite-card{width:min(500px,calc(100vw - 28px));text-align:center}.invite-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 14px;border-radius:22px;background:rgba(242,184,74,.12);font-size:36px}.invite-meta{display:flex;justify-content:center;gap:8px;margin:18px 0}.invite-meta span{padding:8px 11px;border-radius:999px;background:#102f46;color:#dcebf3;font-size:13px;font-weight:800}

.multiplayer-card{background:radial-gradient(circle at 92% 0%,rgba(49,213,156,.12),transparent 38%),rgba(7,31,48,.84)}.room-live-dot{width:11px;height:11px;border-radius:50%;background:#4d6a7d}.room-live-dot.active{background:#3bdf9b;box-shadow:0 0 0 5px rgba(59,223,155,.1)}.room-participants{display:flex;align-items:center;margin:12px 0}.room-participants .room-avatar{width:40px;height:40px;margin-right:-8px;border:3px solid #08283e;font-size:12px}.room-empty-seat{display:grid;place-items:center;width:40px;height:40px;margin-left:2px;border:1px dashed rgba(164,194,211,.35);border-radius:50%;color:#9db6c5;font-size:20px}.multiplayer-card p{margin:0 0 13px;color:var(--muted);font-size:13px;line-height:1.5}.primary-room-button{border-color:rgba(56,218,157,.38)!important;background:rgba(55,202,149,.12)!important;color:#7ff1c5!important}

.tutorial-card{width:min(520px,calc(100vw - 28px));text-align:center}.tutorial-progress{width:max-content;margin:0 auto 14px;padding:6px 10px;border-radius:999px;background:#102f46;color:#a9c2d0;font-size:12px;font-weight:900}.tutorial-visual{display:grid;place-items:center;width:82px;height:82px;margin:0 auto 17px;border-radius:25px;background:linear-gradient(145deg,rgba(244,190,83,.2),rgba(28,76,103,.3));font-size:42px;border:1px solid rgba(247,195,86,.26)}.tutorial-card h2{font-size:30px}.tutorial-card>p{max-width:410px;margin:10px auto 20px;color:var(--muted);line-height:1.65}.tutorial-actions{display:flex;justify-content:center;gap:9px}.tutorial-dont-show{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:15px;color:var(--muted);font-size:12px}.tutorial-highlight{position:relative;z-index:99980!important;box-shadow:0 0 0 3px #ffd16b,0 0 0 9px rgba(255,202,91,.13),0 0 45px rgba(255,195,74,.28)!important}

/* Koleksiyonlar */
.collections-page-body{min-height:100vh;background:#061a2c;color:var(--text)}.collections-header{position:sticky;top:0}.collections-main{position:relative;z-index:2;width:min(1540px,calc(100% - 40px));margin:0 auto;padding:64px 0 80px}.collections-hero{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:end;gap:40px;padding:38px 10px 48px}.collections-hero h1{max-width:900px;margin:16px 0;font-family:var(--display-font);font-size:clamp(46px,6vw,86px);line-height:.98;letter-spacing:-.045em}.collections-hero h1 em{color:#efba52;font-style:normal}.collections-hero p{max-width:680px;color:var(--muted);font-size:17px;line-height:1.65}.collections-live-stat{display:flex;flex-direction:column;align-items:flex-start;padding:22px;border:1px solid rgba(149,190,213,.18);border-radius:22px;background:rgba(9,36,55,.72)}.collections-live-stat strong{font-size:52px;color:#f3c462;line-height:1}.collections-live-stat span{margin-top:7px;font-weight:900}.collections-live-stat small{margin-top:6px;color:var(--muted);line-height:1.45}.collections-browser{display:grid;grid-template-columns:285px minmax(0,1fr);gap:20px;align-items:start}.collection-filter-panel,.collection-results-panel{border:1px solid rgba(149,190,213,.16);border-radius:24px;background:rgba(7,31,49,.82);box-shadow:0 22px 80px rgba(0,0,0,.18)}.collection-filter-panel{position:sticky;top:94px;padding:20px}.filter-panel-head{position:relative;margin-bottom:16px}.filter-panel-head h2{margin:4px 0 0}.filter-panel-head .text-action{position:absolute;right:0;top:0}.collection-search{margin-bottom:20px}.filter-group{display:grid;gap:9px;padding:16px 0;border-top:1px solid rgba(149,190,213,.12)}.filter-group>strong,.filter-group>label{color:#f2f7fa;font-size:13px;font-weight:900}.vertical-chips{display:grid;grid-template-columns:1fr 1fr;gap:6px}.vertical-chips .filter-chip{justify-content:center;margin:0;padding:9px 7px;font-size:12px}.collection-filter-panel select,.collection-results-head select{width:100%;min-height:44px;padding:0 40px 0 13px;border:1px solid rgba(149,190,213,.2);border-radius:12px;background:#0d2e45;color:#f5f9fb;font:800 13px/1 var(--font)}.compact-piece-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.compact-piece-selector button{height:40px;border:1px solid rgba(149,190,213,.18);border-radius:10px;background:#0d2e45;color:#d7e6ee;font-weight:900;cursor:pointer}.compact-piece-selector button.active{border-color:#f1b94d;background:#eeb74e;color:#071a28}.collection-results-panel{min-width:0;padding:20px}.collection-results-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.collection-results-head h2{margin:4px 0}.collection-results-head p{margin:3px 0 0;color:var(--muted)}.collection-results-head select{width:190px}.collection-showcase{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:12px;margin-bottom:22px}.collection-feature-card{position:relative;min-height:250px;overflow:hidden;border:1px solid rgba(149,190,213,.17);border-radius:20px;background:#0c293e;cursor:pointer}.collection-feature-card img{position:absolute;width:100%;height:100%;object-fit:cover}.collection-feature-card .featured-vignette{position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,15,25,.94),rgba(2,15,25,.04) 70%)}.collection-feature-card>div:last-child{position:absolute;z-index:2;left:18px;right:18px;bottom:17px}.collection-feature-card h3{margin:8px 0 4px;font-family:var(--display-font);font-size:24px}.collection-feature-card p{margin:0 0 12px;color:#d7e6ee;font-size:12px}.collection-feature-card .rank{position:absolute;z-index:3;right:12px;top:12px;display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#f0b84e;color:#071b2a;font-weight:950}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-footer{width:min(1540px,calc(100% - 40px));margin:0 auto 24px}

@media(max-width:1180px){.collections-browser{grid-template-columns:240px minmax(0,1fr)}.collection-showcase{grid-template-columns:1fr 1fr}.collection-feature-card:first-child{grid-column:1/-1}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-toolbar{top:76px}}
@media(max-width:820px){.selection-toolbar{left:10px;right:10px;top:72px;transform:none;overflow-x:auto;justify-content:flex-start}.selection-toolbar strong{position:sticky;left:0;background:rgba(4,24,40,.96)}.social-player{grid-template-columns:42px minmax(0,1fr)}.social-player-actions{grid-column:1/-1;justify-content:flex-end}.anti-spam-box{grid-template-columns:1fr}.anti-spam-box label{justify-self:start}.collections-main{width:min(100% - 24px,1540px);padding-top:28px}.collections-hero{grid-template-columns:1fr;padding:25px 0 32px}.collections-live-stat{width:100%}.collections-browser{grid-template-columns:1fr}.collection-filter-panel{position:static}.vertical-chips{grid-template-columns:repeat(3,1fr)}.collection-showcase{grid-template-columns:1fr}.collection-feature-card:first-child{grid-column:auto}.collection-grid{grid-template-columns:1fr 1fr}.collection-results-head{align-items:flex-start;flex-direction:column}.collection-results-head select{width:100%}.tutorial-actions{flex-direction:column-reverse}}
@media(max-width:560px){.collection-grid{grid-template-columns:1fr}.vertical-chips{grid-template-columns:1fr 1fr}.collections-hero h1{font-size:44px}.collections-live-stat strong{font-size:42px}.social-tabs{overflow-x:auto}.social-tabs button{min-width:120px}.selection-toolbar #selectionLeft,.selection-toolbar #selectionRight,.selection-toolbar #selectionUp,.selection-toolbar #selectionDown{min-width:42px}}
:root{--font:var(--sans);--display-font:var(--serif)}
.social-header-button{position:relative;display:inline-flex!important;align-items:center;gap:8px}.social-header-button>span{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#27c982;color:#02170f;font-size:12px;font-weight:900}

/* V13 — Kullanıcının sağladığı koalalı yapbozoyna logosu */
.brand-full-logo{width:220px;height:72px;object-fit:contain;object-position:left center}
.game-brand .brand-full-logo{width:176px;height:60px}
.footer-brand .brand-full-logo{width:232px;height:92px}
.auth-full-logo{width:260px;height:102px;object-fit:contain;object-position:left center}
@media(max-width:820px){
  .brand-full-logo{width:166px;height:58px}
  .game-brand .brand-full-logo{width:138px;height:50px}
}


/* V14 — Çocuk Modu ve sıkı masa yerleşimi */
.kids-page-body{margin:0;min-height:100vh;background:#fff8e7;color:#18304a;font-family:var(--sans);background-image:radial-gradient(circle at 8% 18%,rgba(255,193,75,.2),transparent 28%),radial-gradient(circle at 88% 12%,rgba(90,198,210,.18),transparent 28%)}
.kids-header{height:82px;padding:0 clamp(18px,4vw,68px);display:flex;align-items:center;gap:34px;border-bottom:1px solid rgba(26,67,91,.1);background:rgba(255,251,239,.88);backdrop-filter:blur(16px);position:sticky;top:0;z-index:1000}.kids-brand{display:flex;align-items:center;gap:12px;text-decoration:none}.kids-brand img{width:190px;max-height:58px;object-fit:contain;padding:7px 10px;border-radius:14px;background:#17364d;box-shadow:0 8px 22px rgba(24,54,77,.13)}.kids-brand span{padding:7px 12px;border-radius:999px;background:#5ac6d1;color:#fff;font-size:12px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 7px 18px rgba(46,174,189,.22)}.kids-header nav{display:flex;gap:8px;margin-left:auto}.kids-header nav a{padding:11px 14px;border-radius:12px;color:#536b7b;font-weight:850;text-decoration:none}.kids-header nav a:hover,.kids-header nav a.active{background:#fff;color:#18304a;box-shadow:0 8px 24px rgba(47,75,91,.08)}.kids-profile-button{border:0;border-radius:14px;padding:13px 18px;background:#173c59;color:#fff;font:900 13px/1 var(--sans);cursor:pointer}.kids-main{width:min(1440px,calc(100% - 36px));margin:0 auto;padding:36px 0 70px}.kids-hero{min-height:520px;padding:clamp(28px,5vw,70px);display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,.9fr);align-items:center;gap:54px;border-radius:38px;background:linear-gradient(135deg,#fff1bd,#fffaf0 48%,#dff6f3);box-shadow:0 30px 80px rgba(72,89,92,.12);overflow:hidden;position:relative}.kids-eyebrow{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff;color:#d97924;font-size:11px;font-weight:950;letter-spacing:.13em}.kids-hero h1{font-family:var(--display);font-size:clamp(48px,6vw,84px);line-height:.94;margin:20px 0;color:#17364d}.kids-hero h1 em{font-style:normal;color:#e48c29}.kids-hero-copy>p{max-width:620px;font-size:18px;line-height:1.65;color:#5b7180}.kids-hero-actions{display:flex;gap:12px;margin-top:28px}.kids-hero-actions button,.kids-hero-actions a{min-height:52px;padding:0 22px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font:950 14px/1 var(--sans);cursor:pointer}.kids-hero-actions button{border:0;background:#ffb83e;color:#173047;box-shadow:0 13px 28px rgba(224,140,24,.25)}.kids-hero-actions a{border:2px solid rgba(25,64,86,.13);color:#244b61}.kids-safe-notes{display:flex;flex-wrap:wrap;gap:14px;margin-top:26px;color:#4b756d;font-size:12px;font-weight:850}.kids-hero-art{position:relative;min-height:400px;display:grid;place-items:center}.kids-hero-art img{width:min(100%,560px);aspect-ratio:1.15;object-fit:cover;border-radius:42% 58% 49% 51%/48% 43% 57% 52%;box-shadow:0 28px 70px rgba(28,75,91,.24);border:10px solid rgba(255,255,255,.78)}.kids-hero-art button{position:absolute;width:78px;height:78px;border:7px solid rgba(255,255,255,.75);border-radius:50%;background:#ffbb3e;color:#18354c;font-size:26px;cursor:pointer;box-shadow:0 18px 36px rgba(209,128,23,.28)}.kids-orbit{position:absolute;display:grid;place-items:center;border-radius:50%;font-size:24px;font-weight:900}.kids-orbit.one{width:62px;height:62px;background:#f27f68;color:#fff;left:2%;top:12%;transform:rotate(-12deg)}.kids-orbit.two{width:44px;height:44px;background:#56c9d1;color:#fff;right:3%;bottom:12%}.kids-category-section{padding:70px 0 30px}.kids-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.kids-section-heading span{color:#e18731;font-size:11px;font-weight:950;letter-spacing:.14em}.kids-section-heading h2{font-family:var(--display);font-size:clamp(35px,4vw,54px);margin:8px 0 0;color:#17364d}.kids-section-heading>strong{color:#627986}.kids-category-tabs{display:flex;gap:10px;overflow:auto;padding:24px 2px 14px}.kids-category-tabs button{min-width:max-content;padding:12px 16px;border:1px solid rgba(30,75,99,.11);border-radius:16px;background:#fff;color:#526b79;font:900 13px/1 var(--sans);cursor:pointer;box-shadow:0 9px 24px rgba(51,84,98,.06)}.kids-category-tabs button span{font-size:18px;margin-right:7px}.kids-category-tabs button.active{background:#173d59;color:#fff;transform:translateY(-2px)}.kids-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) auto 180px;gap:14px;padding:18px;border-radius:22px;background:#fff;box-shadow:0 16px 44px rgba(52,78,91,.08)}.kids-toolbar>label{display:flex;align-items:center;gap:10px;padding:0 15px;border-radius:14px;background:#f4f8f5}.kids-toolbar input{width:100%;border:0;background:transparent;outline:0;font:750 14px var(--sans);color:#18364c}.kids-piece-picker{display:flex;gap:7px}.kids-piece-picker button{min-width:70px;border:0;border-radius:13px;background:#f2f6f4;color:#526b79;cursor:pointer}.kids-piece-picker button strong,.kids-piece-picker button small{display:block}.kids-piece-picker button.active{background:#ffbd45;color:#18354b}.kids-toolbar select{border:0;border-radius:14px;background:#f2f6f4;padding:0 15px;color:#18364c;font:850 13px var(--sans)}.kids-puzzle-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:26px}.kids-puzzle-card{padding:12px 12px 17px;border-radius:24px;background:#fff;box-shadow:0 16px 44px rgba(41,77,94,.1);cursor:pointer;transition:.2s ease}.kids-puzzle-card:hover{transform:translateY(-6px);box-shadow:0 24px 54px rgba(41,77,94,.15)}.kids-puzzle-card>div{position:relative;aspect-ratio:1.25;overflow:hidden;border-radius:18px}.kids-puzzle-card img{width:100%;height:100%;object-fit:cover}.kids-puzzle-card>div>span{position:absolute;left:10px;top:10px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.9);color:#245066;font-size:10px;font-weight:950}.kids-puzzle-card>div>button{position:absolute;right:11px;bottom:11px;width:48px;height:48px;border:0;border-radius:50%;background:#ffbc43;color:#17364d;font-size:18px;cursor:pointer;box-shadow:0 9px 22px rgba(61,52,22,.2)}.kids-puzzle-card h3{margin:15px 5px 7px;font-size:18px;color:#17364d}.kids-puzzle-card p{display:flex;justify-content:space-between;gap:8px;margin:0 5px;color:#738692;font-size:11px;font-weight:800}.kids-empty{padding:60px;text-align:center;border:2px dashed rgba(25,72,96,.15);border-radius:25px;margin-top:24px}.kids-parent-note{margin-top:50px;padding:34px 40px;border-radius:28px;background:#173c59;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px}.kids-parent-note div{display:grid;grid-template-columns:auto 1fr;gap:5px 15px}.kids-parent-note div>span{grid-row:1/3;font-size:32px;color:#ffbf48}.kids-parent-note h2{margin:0;font-family:var(--display);font-size:28px}.kids-parent-note p{margin:0;color:#b9d0dc}.kids-parent-note a{min-width:max-content;color:#ffce71;font-weight:900;text-decoration:none}.kids-footer{padding:28px clamp(18px,4vw,68px);display:flex;align-items:center;justify-content:space-between;background:#fff}.kids-footer .kids-brand img{width:160px}.kids-footer p{color:#71848e}.kids-game-mode .game-header{background:linear-gradient(90deg,#173d59,#20556c)}.kids-game-mode .game-header-left::after{content:'ÇOCUK';margin-left:8px;padding:5px 8px;border-radius:999px;background:#58c9d1;color:#fff;font-size:9px;font-weight:950;letter-spacing:.1em}.kids-game-mode .game-bottom-bar{background:#fff8e5;color:#18364c}.kids-game-mode .game-bottom-bar small{color:#607986}.kids-game-mode .game-workspace{background:radial-gradient(circle at 50% 40%,#285d72,#123d57 52%,#092d43)}
@media(max-width:980px){.kids-header nav{display:none}.kids-hero{grid-template-columns:1fr}.kids-hero-art{min-height:330px}.kids-puzzle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kids-toolbar{grid-template-columns:1fr}.kids-piece-picker{justify-content:flex-start}.kids-parent-note{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.kids-header{height:70px;padding:0 14px}.kids-brand img{width:138px}.kids-brand span{font-size:9px;padding:6px 8px}.kids-main{width:min(100% - 20px,1440px);padding-top:12px}.kids-hero{padding:26px 20px;border-radius:25px;min-height:0}.kids-hero h1{font-size:45px}.kids-hero-copy>p{font-size:15px}.kids-hero-art{min-height:260px}.kids-hero-art button{width:64px;height:64px}.kids-puzzle-grid{grid-template-columns:1fr}.kids-section-heading{align-items:flex-start;flex-direction:column}.kids-toolbar{padding:12px}.kids-parent-note{padding:27px 22px}.kids-footer{flex-direction:column;gap:12px}}

/* v1.2.0 — clearer membership and social request states */
.social-request-group{display:grid;gap:4px;margin-top:14px}.social-request-group+h3{margin-top:18px}.social-request-group h3{margin:0;color:#dbe8ef;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.social-request-group .social-list{margin-top:6px;min-height:88px}.social-header-button.has-requests{border-color:rgba(242,184,74,.55)!important;color:#ffd477!important}.social-header-button>span.has-requests,.social-header-button.has-requests>span{background:#f2be58;color:#071b28;box-shadow:0 0 0 4px rgba(242,190,88,.13)}
@media(max-width:640px){.social-player{grid-template-columns:40px minmax(0,1fr)}.social-player-actions{grid-column:1/-1;justify-content:flex-end}.social-action{flex:1}.social-action.icon{flex:0 0 36px}}


/* ========================================================================== */
/* v1.3.0 — guest privacy, refined logo and mobile play workspace              */
/* ========================================================================== */
.brand-full-logo{width:176px;height:56px}
.game-brand .brand-full-logo{width:142px;height:48px}
.footer-brand .brand-full-logo{width:196px;height:76px}
.experience-cards.guest-layout{grid-template-columns:repeat(2,minmax(0,1fr))}

@media(max-width:1020px){
  .experience-cards.guest-layout{grid-template-columns:1fr}
}

@media(max-width:820px){
  body.game-open{height:100%;overflow:hidden;overscroll-behavior:none}
  .site-header{padding-inline:12px}
  .brand-full-logo{width:126px;height:44px}

  .game-view{height:100dvh;min-height:100dvh;overflow:hidden}
  .game-header{
    position:relative;top:auto;height:calc(58px + env(safe-area-inset-top));min-height:calc(58px + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) 9px 0;gap:7px;flex:0 0 auto
  }
  .game-header-left{flex:1;min-width:0;gap:7px;overflow:hidden}
  .game-brand{flex:0 0 auto;padding:0;border:0}
  .game-brand .brand-full-logo{width:102px;height:40px}
  .game-back{
    flex:0 1 auto;min-width:50px;max-width:84px;height:38px;padding:0 8px;overflow:hidden;
    border:1px solid rgba(172,207,228,.14);border-radius:11px;background:rgba(255,255,255,.035);
    white-space:nowrap;text-overflow:ellipsis;font-size:0
  }
  .game-back::after{content:'← Çık';font-size:12px;font-weight:850}
  .game-header-actions{flex:0 0 auto;gap:5px}
  .game-header-actions .game-action,#fullscreenButton{display:none!important}
  .profile-button{width:38px;height:38px;flex:0 0 38px}

  .game-shell{height:calc(100dvh - 58px - env(safe-area-inset-top));min-height:0;overflow:hidden;padding:0}
  .workspace-panel,.game-workspace{height:100%;min-height:0}
  .game-workspace{border-radius:0;background:radial-gradient(circle at 50% 31%,#173f5c 0%,#0a2a41 47%,#041522 100%)}

  .workspace-hud{
    top:8px;left:8px;right:8px;min-height:52px;height:52px;padding:4px;gap:4px;
    display:grid;grid-template-columns:minmax(72px,1fr) minmax(68px,.9fr) 38px 50px 38px;
    align-items:stretch;border-radius:14px
  }
  .workspace-hud .hud-stat:nth-of-type(3),.workspace-hud .hud-spacer,#panButton,#referenceBoardButton{display:none!important}
  .hud-stat{min-width:0;min-height:42px;padding:4px 9px;border-radius:10px}
  .hud-stat span{font-size:7px;letter-spacing:.08em}
  .hud-stat strong{font-size:14px;line-height:1.05}
  .hud-button,.hud-button.icon-only,.hud-button.zoom-readout{min-width:0;width:auto;min-height:42px;height:42px;padding:0;border-radius:10px}
  .hud-button.icon-only{font-size:19px}
  .hud-button.zoom-readout{font-size:10px}

  .game-shell{--tray-height:166px}
  .game-shell.tray-two-rows{--tray-height:252px}
  .piece-tray{
    left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));height:var(--tray-height);
    grid-template-rows:46px 36px minmax(82px,1fr);border-radius:16px
  }
  .game-workspace.tray-two-rows .piece-tray{height:var(--tray-height);grid-template-rows:46px 36px minmax(168px,1fr)}
  .tray-header{min-height:46px;height:46px;padding:5px 6px 5px 11px;gap:6px}
  .tray-title{min-width:0;flex:1;overflow:hidden}
  .tray-kicker{font-size:8px}
  .tray-header strong{font-size:13px;white-space:nowrap}
  .tray-title small,.tray-header #spreadPiecesButton,.tray-header #dockGatherButton,.tray-header .piece-size-control{display:none!important}
  .tray-header>.tray-actions{width:auto;height:34px;flex:0 0 auto;gap:5px}
  .tray-header .tray-collapse{display:grid;place-items:center;width:34px;min-width:34px;height:34px;min-height:34px;transform:none!important}
  .tray-row-switch{width:78px;height:34px;grid-template-columns:repeat(2,1fr);padding:2px;writing-mode:horizontal-tb!important;transform:none!important}
  .tray-row-switch button{min-width:0;min-height:28px;height:28px;padding:0 4px;font-size:8px;line-height:1;white-space:nowrap;writing-mode:horizontal-tb!important;transform:none!important}
  .tray-tabs{min-height:36px;height:36px;padding:3px 98px 3px 6px;gap:4px}
  .tray-tab{height:30px;padding:0 9px;font-size:10px;border-radius:9px}
  .tray-navigation{top:49px;right:6px;min-height:30px;height:30px;gap:4px;padding:0 2px;border-radius:9px}
  .tray-navigation button{width:28px;height:28px;font-size:18px}
  .tray-navigation span{font-size:8px;white-space:nowrap}
  .tray-pieces-layer{min-height:82px;overflow:hidden}
  .game-workspace.tray-two-rows .tray-pieces-layer{min-height:168px}

  .play-tools{
    top:auto;left:8px;right:8px;bottom:calc(var(--tray-height) + 16px + env(safe-area-inset-bottom));
    width:auto;height:58px;max-width:none;padding:4px;gap:3px;display:flex;flex-direction:row;
    justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;border-radius:14px
  }
  .play-tools::-webkit-scrollbar{display:none}
  .play-tool,.play-tool:nth-child(4),.play-tool:nth-child(5){
    display:flex;flex:0 0 56px;width:56px;min-width:56px;min-height:48px;height:48px;padding:3px 2px;scroll-snap-align:start
  }
  .play-tool span{font-size:16px}
  .game-view .play-tool strong{font-size:8.5px;line-height:1.05;text-align:center}
  .play-tool small{top:2px;right:2px;width:17px;height:17px;font-size:8px}
  .game-workspace.tray-collapsed .play-tools{bottom:calc(8px + env(safe-area-inset-bottom))}

  .game-side{display:none!important}
  .hand-hint{top:66px;left:8px;width:calc(100% - 16px);min-width:0;transform:none;grid-template-columns:28px 1fr 30px}
  .selection-toolbar{top:66px;left:8px;right:8px;transform:none;max-width:none;overflow-x:auto;justify-content:flex-start}
  .selection-toolbar strong{position:sticky;left:0;background:rgba(4,24,40,.97)}
  .game-workspace.table-mode::before{left:10px;top:68px}
  .tray-reopen{right:8px;bottom:calc(8px + env(safe-area-inset-bottom));min-width:160px;height:44px}

  body.game-open .toast-region{top:calc(66px + env(safe-area-inset-top));right:10px;bottom:auto;left:10px}
  body.game-open .toast{min-width:0;max-width:none;width:100%;padding:10px 12px;font-size:12px;text-align:center}
}

@media(max-width:390px){
  .game-brand .brand-full-logo{width:94px;height:38px}
  .game-back{max-width:68px;padding-inline:6px}
  .workspace-hud{grid-template-columns:minmax(66px,1fr) minmax(62px,.85fr) 36px 46px 36px}
  .hud-stat{padding-inline:7px}
  .tray-row-switch{width:70px}
  .play-tool,.play-tool:nth-child(4),.play-tool:nth-child(5){flex-basis:52px;width:52px;min-width:52px}
}

/* v1.3.0 mobile specificity follow-up */
@media(max-width:820px){
  .hud-button.zoom-readout span{font-size:12px!important}
  .game-workspace.tray-two-rows .play-tools{bottom:calc(var(--tray-height) + 16px + env(safe-area-inset-bottom))}
  .kids-game-mode .game-header-left::after{display:none}
}

/* v1.4.0 — kesin misafir gizliliği, iki kişilik oda kuralları ve kontrollü masa dağılımı */
.social-header-button[hidden],
#mobileFriends[hidden],
#inviteGameButton[hidden],
#collabExperienceCard[hidden],
#multiplayerGameCard[hidden] { display: none !important; }
body:not(.member-signed-in) .social-header-button,
body:not(.member-signed-in) #mobileFriends,
body:not(.member-signed-in) #inviteGameButton,
body:not(.member-signed-in) #collabExperienceCard,
body:not(.member-signed-in) #multiplayerGameCard { display: none !important; }
.puzzle-piece.table-scattered { transform-origin: top left !important; }
.room-rules { display:grid; gap:7px; margin:14px 0 4px; padding:12px 14px; border:1px solid rgba(116,180,209,.18); border-radius:14px; background:rgba(5,25,40,.58); color:#b8ceda; font-size:11px; line-height:1.5; }
.room-rules strong { color:#f4c866; font-size:12px; }
.room-rules span { display:flex; gap:7px; align-items:flex-start; }
.room-rules span::before { content:'•'; color:#55dba7; font-weight:900; }
.primary-room-button:disabled,
.social-action:disabled { cursor:not-allowed; opacity:.58; }

/* Privacy-first analytics consent */
.yo-analytics-consent{position:fixed;z-index:99999;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));max-width:780px;margin:auto;padding:15px 16px;border:1px solid rgba(255,255,255,.15);border-radius:18px;background:rgba(5,24,39,.97);box-shadow:0 18px 60px rgba(0,0,0,.38);display:flex;align-items:center;justify-content:space-between;gap:18px;color:#eef6fb;backdrop-filter:blur(18px)}
.yo-analytics-consent[hidden]{display:none!important}.yo-analytics-consent>div:first-child{display:grid;gap:4px}.yo-analytics-consent strong{font-size:14px}.yo-analytics-consent span{font-size:12px;line-height:1.45;color:#c4d4df}.yo-analytics-consent a{font-size:12px;color:#ffc44d}.yo-analytics-actions{display:flex;gap:8px;flex:0 0 auto}.yo-analytics-actions button{border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:9px 12px;background:transparent;color:#eef6fb;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.yo-analytics-actions button.primary{background:#ffc44d;border-color:#ffc44d;color:#142331}
.newsletter form{height:auto!important;border:0!important;border-radius:0!important;overflow:visible!important;display:grid!important;gap:8px}.newsletter-row{display:flex;height:45px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.newsletter-row input{flex:1;min-width:0;border:0;background:rgba(255,255,255,.035);color:#fff;padding:0 13px;outline:0}.newsletter-row button{width:48px;border:0;background:var(--gold);color:#13212b;cursor:pointer}.newsletter-consent{display:flex;align-items:flex-start;gap:7px;font-size:11px;line-height:1.4;color:var(--muted)}.newsletter-consent input{width:auto!important;flex:0 0 auto;margin-top:2px;accent-color:var(--gold)}.newsletter-consent a{display:inline!important;margin:0!important;color:var(--gold)!important;font-size:inherit!important}.newsletter-feedback{min-height:16px;font-size:11px;color:var(--muted)}
@media(max-width:640px){.yo-analytics-consent{align-items:stretch;flex-direction:column}.yo-analytics-actions{width:100%}.yo-analytics-actions button{flex:1}}

.footer-link-button{display:block;margin:7px 0;padding:0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;text-align:left;cursor:pointer}.footer-link-button:hover{color:#fff}

/* SEO discovery links: visible, crawlable internal links to clean puzzle landing pages. */
.yo-seo-discovery{width:min(1180px,calc(100% - 40px));margin:34px auto 50px;padding:28px;border:1px solid rgba(128,169,195,.18);border-radius:24px;background:rgba(7,34,53,.72)}
.yo-seo-discovery-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.yo-seo-discovery-head span{font-size:11px;font-weight:800;letter-spacing:.15em;color:#79a9c8}.yo-seo-discovery-head h2{margin:4px 0 0;font-size:clamp(24px,3vw,34px);color:#f5fbff}.yo-seo-link-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.yo-seo-link-card{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid rgba(142,181,205,.16);border-radius:16px;background:rgba(255,255,255,.035);color:#eef7fc;text-decoration:none;min-width:0;transition:transform .18s ease,border-color .18s ease,background .18s ease}.yo-seo-link-card:hover{transform:translateY(-2px);border-color:rgba(255,196,77,.55);background:rgba(255,255,255,.065)}.yo-seo-link-card img{width:62px;height:48px;object-fit:cover;border-radius:11px;flex:0 0 auto}.yo-seo-link-card span{display:grid;min-width:0}.yo-seo-link-card strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yo-seo-link-card small{font-size:11px;color:#9fb7c7;margin-top:4px}.yo-seo-all-link{display:inline-flex;margin-top:18px;color:#ffd06b;text-decoration:none;font-weight:800}.kids-page-body .yo-seo-discovery{background:#fff7e7;border-color:#efdcae}.kids-page-body .yo-seo-discovery-head span{color:#b8772d}.kids-page-body .yo-seo-discovery-head h2,.kids-page-body .yo-seo-link-card{color:#243548}.kids-page-body .yo-seo-link-card{background:#fff;border-color:#ecdcb7}.kids-page-body .yo-seo-link-card small{color:#687889}.kids-page-body .yo-seo-all-link{color:#b16618}
@media(max-width:900px){.yo-seo-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.yo-seo-discovery{width:calc(100% - 24px);padding:20px;margin:24px auto 34px}.yo-seo-link-grid{grid-template-columns:1fr}.yo-seo-link-card img{width:70px;height:54px}}
/* v1.8 legal links */
.terms-check a{color:var(--gold);text-decoration:underline;text-underline-offset:2px}.terms-check a:hover{color:#ffe09a}

/* ========================================================================== */
/* v1.9.0 — responsive polish, mobile play performance, ranking & challenge   */
/* ========================================================================== */

/* Public typography: bounded sizes and safe wrapping across cards/dialogs. */
body{font-size:16px;line-height:1.5}
button,input,select,textarea{font:inherit}
.button,.nav-link,.text-action,.play-tool,.tray-action,.tray-tab,.hud-button,.social-action,.auth-tabs button,.profile-tabs button{line-height:1.18}
.button,.nav-link,.text-action,.panel-heading h2,.section-heading h2,.experience-card h2,.featured-content h2,.puzzle-card h3,.modal-heading h2,.auth-heading h2,.profile-head h2{overflow-wrap:anywhere}
.site-header,.header-actions,.desktop-nav,.panel-heading,.section-heading,.library-tools,.hero-buttons,.hero-benefits,.profile-head,.modal-card{min-width:0}
.site-header .button.compact,.site-header .nav-link{font-size:clamp(11px,.78vw,13px)}
.hero-copy h1{font-size:clamp(42px,5.8vw,82px);line-height:.96}
.hero-copy>p{font-size:clamp(15px,1.35vw,19px);line-height:1.6}
.experience-card h2{font-size:clamp(25px,2.3vw,38px);line-height:1.04}
.experience-card p{font-size:clamp(12px,1vw,15px);line-height:1.5}
.panel-heading h2,.section-heading h2{font-size:clamp(24px,2.5vw,36px);line-height:1.08}
.puzzle-card h3{font-size:clamp(14px,1.2vw,18px);line-height:1.18}
.modal-heading h2,.auth-heading h2{font-size:clamp(23px,3vw,34px);line-height:1.05}

/* v1.4 hid this marketing card for guests. The social controls remain hidden,
   but the homepage's Together card is intentionally visible to everyone. */
body:not(.member-signed-in) #collabExperienceCard{display:block!important}

.admin-online-badge{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 9px;border:1px solid rgba(83,221,164,.18);border-radius:999px;background:rgba(83,221,164,.07);color:#87e8bf;font-size:10px;font-weight:900;white-space:nowrap}
.admin-online-badge[hidden]{display:none!important}.admin-online-badge::first-letter{color:#52dba3}

/* Homepage blocks added in v1.9. */
.community-collections-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);gap:18px;margin:22px 0}.community-collections-grid>.most-played-panel{grid-column:1/-1}.community-note{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.weekly-challenge-section{margin:24px 0}.weekly-challenge-card{position:relative;min-height:440px;overflow:hidden;border:1px solid rgba(244,182,79,.24);border-radius:30px;background:#071e30;box-shadow:0 25px 70px rgba(0,0,0,.25)}.weekly-challenge-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.weekly-challenge-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,16,26,.93) 0%,rgba(3,16,26,.72) 42%,rgba(3,16,26,.2) 78%,rgba(3,16,26,.05))}.weekly-challenge-copy{position:relative;z-index:2;width:min(650px,72%);min-height:440px;padding:clamp(30px,5vw,68px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.weekly-challenge-copy h2{margin:17px 0 12px;font-family:var(--display);font-size:clamp(36px,5vw,65px);line-height:.96}.weekly-challenge-copy>p{margin:0;max-width:580px;color:#c8d8e3;font-size:clamp(14px,1.25vw,18px);line-height:1.6}.weekly-challenge-meta{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.weekly-challenge-meta span{padding:7px 10px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(4,21,34,.58);font-size:11px;font-weight:850}.weekly-challenge-copy .button{margin-top:4px}

/* Image-first picker: collection filters + search, then piece-count chooser. */
.picker-card{width:min(1120px,calc(100vw - 28px));max-height:min(92dvh,900px);overflow:auto;padding:clamp(18px,3vw,30px)}
.picker-toolbar{display:flex;align-items:center;gap:10px;margin:14px 0 8px}.picker-toolbar .search-field{flex:1;min-width:0}.picker-filter-chips{display:flex;gap:7px;overflow-x:auto;padding:4px 1px 10px;scrollbar-width:none}.picker-filter-chips::-webkit-scrollbar{display:none}.picker-filter-chips button{flex:0 0 auto;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025);color:var(--muted);font-weight:850;cursor:pointer}.picker-filter-chips button.active{border-color:rgba(244,182,79,.55);background:rgba(244,182,79,.12);color:var(--gold-2)}
.selected-puzzle-preview{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center;margin:14px 0 18px;padding:13px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.025)}.selected-puzzle-preview img{width:180px;aspect-ratio:4/3;object-fit:cover;border-radius:13px}.selected-puzzle-preview h3{margin:0 0 5px;font-size:clamp(20px,2.2vw,28px)}.selected-puzzle-preview p{margin:0;color:var(--muted);font-size:12px}.picker-back{margin-bottom:10px}

/* Ranking / badges page. */
.ranking-page-body{margin:0;min-height:100vh;background:radial-gradient(circle at 15% 2%,rgba(26,73,101,.42),transparent 30%),#041522;color:var(--text);font-family:var(--sans)}
.ranking-header{position:sticky;top:0;z-index:1000;min-height:74px;padding:9px clamp(18px,4vw,64px);display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--line);background:rgba(4,21,34,.9);backdrop-filter:blur(18px)}.ranking-header .brand-full-logo{width:150px;height:48px}.ranking-header nav{display:flex;align-items:center;gap:6px;margin-left:auto}.ranking-header nav a{padding:9px 11px;border-radius:10px;color:var(--muted);font-size:12px;font-weight:850;text-decoration:none}.ranking-header nav a.active,.ranking-header nav a:hover{background:rgba(255,255,255,.05);color:#fff}.ranking-main{width:min(1440px,calc(100% - 36px));margin:auto;padding:34px 0 70px}.ranking-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(310px,.62fr);gap:22px;padding:clamp(28px,5vw,68px);border:1px solid rgba(244,182,79,.18);border-radius:30px;background:linear-gradient(135deg,rgba(15,50,73,.98),rgba(5,24,39,.96));overflow:hidden}.ranking-hero h1{margin:10px 0 14px;font-family:var(--display);font-size:clamp(45px,6vw,78px);line-height:.94}.ranking-hero h1 em{font-style:normal;color:var(--gold)}.ranking-hero>div>p{max-width:700px;margin:0;color:#b8cad6;font-size:clamp(15px,1.3vw,18px);line-height:1.62}.ranking-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.ranking-rules{padding:20px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:rgba(0,10,18,.28)}.ranking-rules>span{font-size:10px;font-weight:900;letter-spacing:.14em;color:#7fa3b8}.ranking-rules ol{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:11px}.ranking-rules li{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start}.ranking-rules li>b{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:rgba(244,182,79,.14);color:var(--gold)}.ranking-rules p{margin:0}.ranking-rules strong,.ranking-rules small{display:block}.ranking-rules small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}
.ranking-board-panel,.badge-system-panel{margin-top:20px;padding:clamp(18px,2.5vw,28px);border:1px solid var(--line);border-radius:25px;background:rgba(7,31,49,.78)}.ranking-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:17px}.ranking-section-head h2{margin:4px 0 4px;font-size:clamp(27px,3vw,40px)}.ranking-section-head p{margin:0;color:var(--muted);font-size:12px}.ranking-table-wrap{max-height:none;overflow:auto;border:1px solid rgba(172,207,228,.1);border-radius:17px}.ranking-table-head,.ranking-row{display:grid;grid-template-columns:52px minmax(180px,1.05fr) 76px 125px 92px minmax(220px,1.25fr) minmax(170px,.95fr);align-items:center;gap:10px;min-width:1000px}.ranking-table-head{position:sticky;top:0;z-index:2;padding:10px 13px;background:#08243a;color:#7895a7;font-size:11px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.ranking-row{padding:12px 13px;border-top:1px solid rgba(172,207,228,.08);background:rgba(255,255,255,.012)}.ranking-row.podium{background:rgba(244,182,79,.035)}.ranking-position{font-size:18px}.ranking-player{display:flex;align-items:center;gap:9px;min-width:0}.ranking-avatar{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#efc05f,#997039);color:#061a27;font-weight:950}.ranking-player p,.ranking-week,.ranking-last{margin:0;min-width:0}.ranking-player strong,.ranking-player small,.ranking-week strong,.ranking-week small,.ranking-last strong,.ranking-last small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ranking-player strong{font-size:12px}.ranking-player small,.ranking-week small,.ranking-last small{margin-top:3px;color:var(--muted);font-size:9px}.ranking-level{display:inline-flex;width:max-content;padding:5px 7px;border-radius:999px;background:rgba(83,221,164,.1);color:#78dfb5;font-size:10px}.ranking-week strong,.ranking-last strong{font-size:11px}.ranking-badges{display:flex;flex-wrap:wrap;gap:4px}.ranking-badges span{display:inline-flex;max-width:100%;gap:4px;padding:4px 6px;border-radius:999px;background:rgba(244,182,79,.08);font-size:10px}.ranking-badges i{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d8c9a7;font-style:normal;font-size:8px}.ranking-badges small{color:var(--muted);font-size:9px}.badge-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.badge-catalog-card{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid rgba(172,207,228,.1);border-radius:15px;background:rgba(255,255,255,.025)}.badge-catalog-card>span{font-size:24px}.badge-catalog-card h3{margin:1px 0 4px;font-size:13px}.badge-catalog-card p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.ranking-tip{display:flex;align-items:center;gap:14px;margin-top:20px;padding:18px 20px;border:1px solid rgba(244,182,79,.24);border-radius:20px;background:rgba(244,182,79,.06)}.ranking-tip>span{font-size:28px}.ranking-tip>div{flex:1}.ranking-tip strong{font-size:14px}.ranking-tip p{margin:4px 0 0;color:#a9becb;font-size:11px;line-height:1.45}.ranking-footer{display:flex;align-items:center;gap:18px;padding:24px clamp(18px,4vw,64px);border-top:1px solid var(--line);background:#03111d}.ranking-footer .brand-full-logo{width:128px;height:42px}.ranking-footer p{margin-right:auto;color:var(--muted);font-size:11px}.ranking-footer a{color:var(--muted);font-size:11px;text-decoration:none}

/* Kids image-first count chooser. */
.kids-piece-dialog{padding:0;border:0;background:transparent;color:#18304a}.kids-piece-dialog::backdrop{background:rgba(9,30,43,.68);backdrop-filter:blur(7px)}.kids-piece-modal-card{position:relative;width:min(760px,calc(100vw - 24px));display:grid;grid-template-columns:minmax(250px,.9fr) minmax(300px,1.1fr);gap:22px;padding:20px;border-radius:28px;background:#fffaf0;box-shadow:0 35px 100px rgba(14,46,61,.35)}.kids-piece-preview img{width:100%;height:100%;min-height:330px;object-fit:cover;border-radius:20px}.kids-piece-choice{display:flex;flex-direction:column;justify-content:center}.kids-piece-choice h2{margin:10px 0 6px;font-family:var(--display);font-size:clamp(30px,4vw,48px);line-height:.98;color:#17364d}.kids-piece-choice>p{margin:0;color:#617782}.kids-piece-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0 12px}.kids-piece-options button{min-width:0;padding:14px 8px;border:1px solid rgba(25,66,89,.1);border-radius:16px;background:#fff;color:#18364c;cursor:pointer;box-shadow:0 8px 22px rgba(41,77,94,.06)}.kids-piece-options button:hover{border-color:#efad37;transform:translateY(-2px)}.kids-piece-options strong,.kids-piece-options small{display:block}.kids-piece-options strong{font-size:25px}.kids-piece-options small{margin-top:4px;color:#6f8490;font-size:9px}.kids-piece-hint{color:#7c8d95;line-height:1.45}

.remote-player-cursor{position:absolute;z-index:99998;pointer-events:none;display:grid;grid-template-columns:26px max-content;grid-template-rows:auto auto;align-items:center;column-gap:6px;transform:translate(-10px,-10px);padding:5px 8px 5px 5px;border:1px solid rgba(85,219,167,.45);border-radius:999px;background:rgba(5,28,43,.92);box-shadow:0 10px 30px rgba(0,0,0,.35);transition:left .18s linear,top .18s linear}.remote-player-cursor[hidden]{display:none!important}.remote-cursor-avatar{grid-row:1/3;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#57dba9;color:#082117;font-size:9px;font-weight:950}.remote-player-cursor strong{font-size:9px;line-height:1.1}.remote-player-cursor small{color:#99b8c8;font-size:7px;line-height:1.1}
.puzzle-piece.remote-dragging{outline:2px solid rgba(87,219,169,.9);outline-offset:2px;filter:drop-shadow(0 0 7px rgba(87,219,169,.72))!important}

/* Legal content inserted into real WordPress Pages. */
.yo-legal-text{font-size:16px;line-height:1.72}.yo-legal-text h2{margin:30px 0 10px;font-size:clamp(21px,2.2vw,29px);line-height:1.15}.yo-legal-text h3{margin:22px 0 8px;font-size:18px}.yo-legal-text p,.yo-legal-text li{overflow-wrap:anywhere}.yo-legal-text ul,.yo-legal-text ol{padding-left:22px}

@media(max-width:1050px){
  .community-collections-grid{grid-template-columns:1fr}.community-collections-grid>.most-played-panel{grid-column:auto}.badge-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ranking-hero{grid-template-columns:1fr}.ranking-rules{max-width:720px}
}

@media(max-width:820px){
  /* Keep body stable, but let the game itself scroll vertically. This fixes
     Safari/Chrome mobile freezes caused by a fully locked viewport. */
  body.game-open{height:100%;overflow:hidden!important;overscroll-behavior:none}
  .game-view{height:100dvh!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y}
  .game-shell{height:auto!important;min-height:calc(100dvh - 58px - env(safe-area-inset-top))!important;overflow:visible!important}
  .workspace-panel{height:auto!important;min-height:0!important;overflow:visible!important}
  .game-workspace{height:calc(100dvh - 58px - env(safe-area-inset-top))!important;min-height:700px!important;overflow:hidden!important;touch-action:pan-y!important;contain:layout paint}
  .board-stage{touch-action:pan-y}.board-stage.pan-active,.board-stage.panning{touch-action:none!important}
  .puzzle-piece{touch-action:none!important;filter:none!important;will-change:auto!important;transition:none!important}.puzzle-piece.dragging,.puzzle-piece.held,.puzzle-piece.snap-ready{will-change:transform,left,top!important}.puzzle-piece:hover{filter:none!important}
  .game-workspace,.workspace-hud,.piece-tray,.play-tools,.yo-analytics-consent{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .tray-pieces-layer{contain:layout paint;transform:translateZ(0)}
  .game-shell{--tray-height:158px}.game-shell.tray-two-rows{--tray-height:236px}
  .piece-tray{left:0!important;right:0!important;bottom:0!important;height:calc(var(--tray-height) + env(safe-area-inset-bottom))!important;border-left:0!important;border-right:0!important;border-bottom:0!important;border-radius:18px 18px 0 0!important;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -16px 38px rgba(0,0,0,.28)}
  .game-workspace.tray-two-rows .piece-tray{height:calc(var(--tray-height) + env(safe-area-inset-bottom))!important}
  .play-tools{left:6px!important;right:6px!important;bottom:calc(var(--tray-height) + env(safe-area-inset-bottom) + 7px)!important;height:54px!important;border-radius:13px!important}
  .game-workspace.tray-two-rows .play-tools{bottom:calc(var(--tray-height) + env(safe-area-inset-bottom) + 7px)!important}
  .game-workspace.tray-collapsed .play-tools{bottom:6px!important}
  .tray-reopen{right:6px!important;bottom:env(safe-area-inset-bottom)!important;border-radius:14px 14px 0 0!important}
  .workspace-hud{left:6px!important;right:6px!important;top:6px!important}
  .tray-tabs{padding-right:94px!important}.tray-tab{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tray-header strong{font-size:12px!important}.tray-navigation span{font-size:9px!important}
  .game-view .play-tool strong{font-size:9px!important;line-height:1.08!important}.play-tool{min-width:54px!important;width:54px!important;flex-basis:54px!important}
  body.game-open .toast-region{position:fixed;z-index:100000}
  .selection-toolbar{max-width:calc(100% - 12px)}

  .hero-section{grid-template-columns:1fr}.hero-copy h1{font-size:clamp(40px,11vw,64px)}
  .experience-cards{grid-template-columns:1fr!important}.experience-card{min-height:330px}
  .community-collections-grid{margin-top:16px}.weekly-challenge-card{min-height:400px}.weekly-challenge-copy{width:100%;min-height:400px;padding:28px 22px;background:linear-gradient(90deg,rgba(3,16,26,.91),rgba(3,16,26,.48))}.weekly-challenge-meta{margin:16px 0}.weekly-challenge-copy h2{font-size:clamp(35px,10vw,52px)}
  .picker-toolbar{flex-direction:column;align-items:stretch}.selected-puzzle-preview{grid-template-columns:100px 1fr}.selected-puzzle-preview img{width:100px}.picker-filter-chips button{font-size:11px}

  .ranking-header{min-height:64px;padding:8px 12px;gap:10px}.ranking-header .brand-full-logo{width:112px;height:40px}.ranking-header nav{display:none}.ranking-header>.button{margin-left:auto;font-size:10px}.ranking-main{width:calc(100% - 22px);padding:18px 0 46px}.ranking-hero{padding:26px 18px;border-radius:22px}.ranking-hero h1{font-size:clamp(39px,12vw,58px)}.ranking-board-panel,.badge-system-panel{padding:14px;border-radius:19px}.ranking-section-head{align-items:flex-start;flex-direction:column}.ranking-table-wrap{border-radius:13px}.ranking-tip{align-items:flex-start;flex-wrap:wrap}.ranking-tip .button{width:100%}.ranking-footer{flex-wrap:wrap}.ranking-footer p{width:100%;order:3}
  .kids-piece-modal-card{grid-template-columns:1fr;padding:14px;gap:13px;max-height:90dvh;overflow:auto}.kids-piece-preview img{min-height:190px;max-height:260px}.kids-piece-choice{padding:4px 5px 8px}.kids-piece-options button{padding:11px 5px}
}

@media(max-width:560px){
  body{font-size:15px}.site-header .brand-full-logo{width:116px;height:40px}.hero-buttons,.ranking-hero-actions{flex-direction:column;align-items:stretch}.hero-buttons .button,.ranking-hero-actions .button{width:100%}
  .weekly-challenge-meta{display:grid}.weekly-challenge-meta span{width:100%}.badge-catalog{grid-template-columns:1fr}
  .selected-puzzle-preview{grid-template-columns:1fr}.selected-puzzle-preview img{width:100%;max-height:180px}
  .kids-piece-options{grid-template-columns:1fr}.kids-piece-options button{display:flex;align-items:center;justify-content:space-between;padding:11px 14px}.kids-piece-options small{margin:0}.kids-piece-preview img{min-height:160px}
}

@media(pointer:coarse){
  .puzzle-card:hover,.kids-puzzle-card:hover,.experience-card:hover{transform:none!important}
  .button,.nav-link,.tray-tab,.play-tool,.hud-button,.social-action{min-height:42px}
}
/* v1.9 live co-op: the other player's currently held pieces stay visibly claimed. */
.puzzle-piece.remote-claimed{outline:2px solid rgba(87,219,169,.9);outline-offset:2px;filter:grayscale(.12) opacity(.78) drop-shadow(0 0 6px rgba(87,219,169,.62))!important}
@media (max-width:820px),(pointer:coarse){.puzzle-piece.remote-claimed{filter:opacity(.82)!important;outline-width:2px}}
/* v1.9.0 mobile playfield final pass: keep the tray anchored to the physical
   bottom edge even on short phones. The board metrics read this fixed tray
   rectangle, so the puzzle is fitted above it instead of hiding underneath. */
@media(max-width:820px){
  .piece-tray{position:fixed!important;z-index:24000!important}
  .play-tools{position:fixed!important;z-index:24010!important}
  .tray-reopen{position:fixed!important;z-index:24020!important}
  .game-workspace{padding-bottom:calc(222px + env(safe-area-inset-bottom))}
  .game-workspace.tray-two-rows{padding-bottom:calc(300px + env(safe-area-inset-bottom))}
  .game-workspace.tray-collapsed{padding-bottom:64px}
}

/* ========================================================================== */
/* v1.10.0 — layout stability + visible member presence + persistent invites  */
/* ========================================================================== */

/* Do not let compact UI labels split in the middle of a word. */
.nav-link,.button,.text-action,.panel-heading h2,.section-heading h2,.experience-card h2,
.hero-benefits strong,.social-tabs button,.social-action,.modal-heading h2,.modal-puzzle strong,
.modal-puzzle small,.collection-card strong,.leaderboard-panel h2 {
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none;
}
.nav-link{white-space:nowrap;flex:0 0 auto}
.desktop-nav{min-width:0;gap:clamp(2px,.55vw,9px)}
.site-header{gap:clamp(12px,1.6vw,28px)}
.site-header .nav-link{padding-inline:clamp(8px,.72vw,13px);font-size:clamp(11px,.78vw,13px)}
.header-actions{flex:0 0 auto;gap:clamp(6px,.65vw,10px)}
.mobile-menu a,.mobile-menu button{display:block;width:100%;border:0;border-radius:10px;padding:13px 14px;text-align:left;background:transparent;cursor:pointer}
.mobile-menu a:hover,.mobile-menu button:hover{background:rgba(255,255,255,.06)}

/* Mid-size laptops use the hamburger before the navigation can compress. */
@media (max-width:1380px){
  .desktop-nav{display:none!important}
  .mobile-menu-button{display:block!important}
  .header-actions .button.ghost:first-child span{display:none}
  .hero-benefits{grid-template-columns:1fr;max-width:620px;gap:9px}
  .hero-benefits>div{align-items:center;padding:8px 10px;border:1px solid rgba(188,220,241,.08);border-radius:12px;background:rgba(255,255,255,.02)}
  .hero-benefits>div>span{flex:0 0 28px;text-align:center}
}

/* Empty ranking state must occupy the entire panel rather than the first grid cell. */
.leaderboard-list li.ranking-empty,.mini-ranking li.ranking-empty{
  display:flex!important;
  width:100%;
  min-height:112px;
  padding:18px;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:normal;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.55;
  border:1px dashed rgba(160,194,215,.14);
  border-radius:14px;
}
.community-collections-grid{grid-template-columns:minmax(0,1.55fr) minmax(360px,.72fr)}
.leaderboard-panel,.leaderboard-list{min-width:0}
.panel-heading{min-width:0}
.panel-heading>div{min-width:0}
.panel-heading .text-action{flex:0 0 auto}

/* Puzzle picker: search has a stable column; filters wrap naturally on desktop. */
.picker-card{width:min(1180px,calc(100vw - 32px));overflow-x:hidden}
.picker-toolbar{
  display:grid!important;
  grid-template-columns:minmax(260px,340px) minmax(0,1fr);
  align-items:start!important;
  gap:12px!important;
  margin:16px 0 14px!important;
}
.picker-toolbar .search-field{width:100%;min-width:0}
.picker-filter-chips{
  display:flex!important;
  flex-wrap:wrap!important;
  align-content:flex-start;
  gap:7px!important;
  overflow:visible!important;
  padding:0!important;
  margin:0!important;
}
.picker-filter-chips button{white-space:nowrap}
.modal-puzzle-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.modal-puzzle{min-width:0}
.modal-puzzle div{min-width:0}
.modal-puzzle strong,.modal-puzzle small{white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis}

/* Social list: all authenticated members can discover recently online members.
   Game invitations also remain visible in Requests until acted on. */
.social-card{width:min(840px,calc(100vw - 28px));overflow-x:hidden}
.social-request-group{min-width:0}
.invite-request-group{padding-top:14px;border-top:1px solid rgba(139,183,209,.12)}
.game-invite-row{border-color:rgba(242,184,74,.22);background:linear-gradient(135deg,rgba(17,51,72,.92),rgba(8,36,54,.86))}
.invite-avatar{background:linear-gradient(145deg,#f7ca6e,#ce8f31);font-size:18px}
.compact-social-empty{min-height:78px;padding:14px}
.social-player-actions{flex-wrap:wrap;justify-content:flex-end}
.social-player-info small{max-width:100%}

/* The Together card is a public feature teaser; private friend controls stay member-only. */
body:not(.member-signed-in) #collabExperienceCard{display:block!important}
body:not(.member-signed-in) .social-header-button,
body:not(.member-signed-in) #mobileFriends,
body:not(.member-signed-in) #inviteGameButton,
body:not(.member-signed-in) #multiplayerGameCard{display:none!important}

@media(max-width:1050px){
  .community-collections-grid{grid-template-columns:1fr!important}
  .picker-toolbar{grid-template-columns:1fr!important}
  .picker-filter-chips{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:8px!important;scrollbar-width:none}
  .picker-filter-chips::-webkit-scrollbar{display:none}
  .modal-puzzle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:820px){
  /* Home/mobile layout: no horizontal drift and predictable card widths. */
  body:not(.game-open){overflow-x:hidden}
  .home-view{width:100%;max-width:100%;padding-inline:12px;overflow:clip}
  .site-header{height:66px;padding:0 11px;gap:8px}
  .site-header .brand{margin-right:auto}
  .site-header .brand-full-logo{width:118px;height:40px}
  .mobile-menu-button{width:40px;height:40px;flex:0 0 40px}
  .hero-section{width:100%;min-width:0;gap:22px;padding-top:26px}
  .hero-copy,.featured-puzzle,.experience-cards,.community-collections-grid,.weekly-challenge-section,.all-puzzles-section{min-width:0;width:100%}
  .hero-copy h1{font-size:clamp(40px,12vw,58px);line-height:.98}
  .hero-copy>p{font-size:15px;line-height:1.58}
  .hero-benefits{max-width:none}
  .hero-benefits>div{padding:9px}
  .featured-puzzle{min-height:390px}
  .featured-content{gap:10px}
  .featured-content>div{min-width:0}
  .featured-content h2{font-size:clamp(28px,8vw,36px)}
  .puzzle-meta{gap:8px 12px}
  .experience-card{min-height:300px}
  .experience-card>div:last-child{width:100%;max-width:520px;padding:20px}
  .experience-card h2{font-size:clamp(27px,8vw,37px)}
  .panel-heading{align-items:flex-start;flex-direction:column;gap:8px}
  .panel-heading.tight{flex-direction:row;align-items:flex-start}
  .collections-panel,.leaderboard-panel,.most-played-panel{min-width:0}
  .collection-strip{width:100%;max-width:100%;overscroll-behavior-x:contain}
  .community-note{font-size:11px}
  .weekly-challenge-copy{padding:24px 18px!important}
  .library-tools,.filter-chips{max-width:100%}

  /* Picker/modal never exceeds the visual viewport. */
  .modal{padding:8px!important;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .picker-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 16px)!important;border-radius:20px;padding:18px 14px!important}
  .modal-heading{padding-right:42px}
  .modal-heading h2{font-size:clamp(27px,8vw,36px)!important}
  .picker-toolbar{display:flex!important;flex-direction:column!important;gap:9px!important;margin:12px 0!important}
  .picker-filter-chips{width:100%;max-width:100%;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-x:contain;padding:1px 0 8px!important}
  .picker-filter-chips button{font-size:10.5px!important;min-height:34px!important;padding:0 11px!important}
  .modal-puzzle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .modal-puzzle{aspect-ratio:1.2;border-radius:12px}
  .modal-puzzle div{left:9px;right:8px;bottom:8px}
  .modal-puzzle strong{font-size:12px}
  .modal-puzzle small{font-size:9px}

  /* Social UI stacks without squeezing names/actions. */
  .social-card{width:100%!important;max-width:100%!important;padding:18px 14px!important;border-radius:20px;max-height:calc(100dvh - 16px)}
  .social-tabs{gap:4px;padding:4px}
  .social-tabs button{min-width:0;padding:0 5px;font-size:11px;white-space:nowrap}
  .social-tabs span{min-width:18px;height:18px;margin-left:3px;font-size:9px}
  .social-player{grid-template-columns:40px minmax(0,1fr);gap:9px;padding:10px}
  .social-avatar{width:40px;height:40px}
  .social-player-actions{grid-column:1/-1;width:100%;justify-content:stretch}
  .social-action{flex:1;min-width:0;min-height:40px;padding:0 8px;font-size:11px}
  .social-action.icon{flex:0 0 40px}
  .social-player-info strong,.social-player-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* Mobile game: use the game view as the sole vertical scroller and keep the
     controls/tray fixed to the viewport. Removing paint containment and forced
     GPU layers avoids Safari stutter on 300/500-piece boards. */
  body.game-open{height:100%;overflow:hidden!important;overscroll-behavior:auto!important}
  .game-view{height:100dvh!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:auto!important;touch-action:pan-y!important}
  .game-shell{height:auto!important;min-height:calc(100dvh - 58px - env(safe-area-inset-top))!important;overflow:visible!important}
  .workspace-panel{height:auto!important;overflow:visible!important;padding-bottom:0!important}
  .game-workspace{height:auto!important;min-height:max(720px,calc(100dvh + 110px))!important;overflow:hidden!important;touch-action:pan-y!important;contain:none!important;padding-bottom:calc(224px + env(safe-area-inset-bottom))!important}
  .game-workspace.tray-two-rows{padding-bottom:calc(302px + env(safe-area-inset-bottom))!important}
  .game-workspace.tray-collapsed{padding-bottom:70px!important}
  .tray-pieces-layer{contain:none!important;transform:none!important}
  .board-stage{touch-action:pan-y!important}
  .board-stage.pan-active,.board-stage.panning{touch-action:none!important}
  .piece-tray{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:24000!important;border-radius:16px 16px 0 0!important}
  .play-tools{position:fixed!important;left:5px!important;right:5px!important;z-index:24010!important}
  .workspace-hud{position:absolute!important;left:6px!important;right:6px!important;max-width:calc(100% - 12px)!important}
}

@media(max-width:480px){
  .modal-puzzle-grid{grid-template-columns:1fr 1fr}
  .modal-puzzle{min-height:132px}
  .social-tabs button{font-size:10px}
  .hero-buttons .button{font-size:13px}
}

@media(max-width:360px){
  .modal-puzzle-grid{grid-template-columns:1fr}
  .site-header .brand-full-logo{width:106px}
  .social-tabs{overflow-x:auto;justify-content:flex-start}
  .social-tabs button{flex:0 0 auto;min-width:92px}
}


/* =========================================================
   v1.11.0 — desktop alignment + route-safe visual layout
   ========================================================= */
@media (min-width:1051px){
  .community-collections-grid{
    grid-template-columns:minmax(0,2.05fr) minmax(390px,.95fr)!important;
    align-items:stretch;
    gap:20px;
  }
  .collections-panel,.leaderboard-panel{height:100%;min-height:0}
  .collections-panel .panel-heading{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:24px;
    margin-bottom:20px;
  }
  .collections-panel .panel-heading .text-action,
  .leaderboard-panel .panel-heading .text-action{
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    width:max-content;
    min-width:max-content;
    white-space:nowrap;
    line-height:1.2;
  }
  /* There are five home collection cards. Fill the row instead of leaving a phantom sixth column. */
  .collections-panel .collection-strip{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:12px;
  }
  .leaderboard-panel .panel-heading.tight{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:18px;
  }
  .leaderboard-panel .leaderboard-list{width:100%}

  .picker-card{width:min(1420px,calc(100vw - 60px));}
  .picker-toolbar{
    grid-template-columns:minmax(320px,405px) minmax(0,1fr)!important;
    align-items:center!important;
    gap:14px!important;
    margin:14px 0 18px!important;
  }
  .picker-toolbar .search-field{height:50px}
  .picker-filter-chips{
    min-height:50px;
    align-items:center;
    align-content:center;
    gap:8px!important;
  }
  .picker-filter-chips button{min-height:38px}

  .ranking-hero{
    grid-template-columns:minmax(0,1.45fr) minmax(360px,.62fr)!important;
    align-items:stretch;
    gap:34px;
    padding:clamp(38px,4vw,58px)!important;
  }
  .ranking-hero>div:first-child{align-self:center;min-width:0}
  .ranking-hero h1{
    max-width:940px;
    font-size:clamp(48px,5vw,72px)!important;
    line-height:.98!important;
    text-wrap:balance;
  }
  .ranking-hero h1 em{display:inline-block;white-space:nowrap}
  .ranking-rules{height:100%;min-height:300px;display:flex;flex-direction:column;justify-content:center}
  .ranking-hero-actions .button{white-space:nowrap}
}

@media (max-width:1050px){
  .collections-panel .collection-strip{display:flex!important;overflow-x:auto!important;scroll-snap-type:x proximity;padding-bottom:6px}
  .collections-panel .collection-card{flex:0 0 min(210px,68vw);scroll-snap-align:start}
}

@media (max-width:820px){
  .community-collections-grid{gap:12px!important}
  .collections-panel,.leaderboard-panel{padding:15px!important}
  .collections-panel .panel-heading,.leaderboard-panel .panel-heading.tight{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    gap:10px!important;
  }
  .collections-panel .panel-heading .text-action,.leaderboard-panel .panel-heading .text-action{
    width:max-content!important;min-width:max-content!important;white-space:nowrap!important;font-size:11px!important;
  }
  .collections-panel .collection-strip{margin-top:2px}
  .picker-card{padding:16px 12px!important}
  .picker-toolbar{align-items:stretch!important}
  .picker-toolbar .search-field{height:46px!important;flex:0 0 46px}
  .picker-filter-chips{min-height:38px;align-items:center!important}
  .ranking-hero h1 em{white-space:normal}
}

@media(max-width:480px){
  .collections-panel .panel-heading,.leaderboard-panel .panel-heading.tight{
    grid-template-columns:1fr!important;
  }
  .collections-panel .panel-heading .text-action,.leaderboard-panel .panel-heading .text-action{
    justify-self:start!important;
  }
}

/* =========================================================
   v1.12.0 — mobile scroll recovery + precise home alignment
   ========================================================= */

/* MOBILE SCROLL FIX
   Important: never put `html` in the same selector list as `body.game-open`.
   In v1.11 that made the root element overflow:hidden on every mobile page. */
@media (max-width: 820px) {
  html {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }
  body:not(.game-open) {
    position: static !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
  }
  body:not(.game-open) .app,
  body:not(.game-open) .home-view {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    touch-action: pan-y !important;
  }
  body.game-open {
    height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  /* Ordinary page sections must not capture vertical gestures. */
  .site-header,
  .hero-section,
  .featured-puzzle,
  .experience-cards,
  .community-collections-grid,
  .weekly-challenge-section,
  .all-puzzles-section,
  .site-footer {
    touch-action: pan-y !important;
  }

  /* Horizontal carousels can move sideways without blocking page scroll. */
  .collection-strip,
  .filter-chips,
  .picker-filter-chips {
    touch-action: pan-x pan-y !important;
  }
}

/* Desktop/tablet community block: both header actions share one top baseline. */
@media (min-width: 821px) {
  .community-collections-grid {
    align-items: stretch !important;
  }
  .collections-panel,
  .leaderboard-panel {
    display: grid !important;
    grid-template-rows: auto 1fr auto;
    min-width: 0 !important;
  }
  .collections-panel .panel-heading,
  .leaderboard-panel .panel-heading.tight {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 18px !important;
    min-height: 74px;
    margin-bottom: 16px !important;
  }
  .collections-panel .panel-heading .text-action,
  .leaderboard-panel .panel-heading .text-action {
    align-self: start !important;
    justify-self: end !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    min-height: 28px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  .collections-panel .panel-heading h2,
  .leaderboard-panel .panel-heading h2 {
    margin-top: 7px !important;
  }

  /* Five cards means exactly five equal columns — use the whole panel width. */
  .collections-panel .collection-strip {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .collections-panel .collection-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1.03 / 1 !important;
  }
  .collections-panel .collection-card strong {
    font-size: clamp(11px, .85vw, 13px) !important;
  }

  .leaderboard-panel .leaderboard-list {
    align-self: stretch;
    width: 100%;
  }
  .leaderboard-panel .ranking-empty {
    min-height: 116px !important;
  }
  .leaderboard-panel .community-note {
    align-self: end;
  }
}

/* Medium desktop: preserve alignment rather than switching the collection row
   to a fixed-width horizontal carousel too early. */
@media (min-width: 821px) and (max-width: 1050px) {
  .community-collections-grid {
    grid-template-columns: 1fr !important;
  }
  .collections-panel .collection-strip {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }
  .collections-panel .collection-card {
    flex: initial !important;
    min-width: 0 !important;
  }
}

/* Mobile community cards: normal document flow, no layout lock. */
@media (max-width: 820px) {
  .community-collections-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  .collections-panel,
  .leaderboard-panel {
    display: block !important;
    height: auto !important;
  }
  .collections-panel .panel-heading,
  .leaderboard-panel .panel-heading.tight {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: start !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .collections-panel .panel-heading .text-action,
  .leaderboard-panel .panel-heading .text-action {
    align-self: start !important;
    justify-self: end !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    white-space: nowrap !important;
  }
  .collections-panel .collection-strip {
    display: flex !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 10px !important;
    padding: 0 0 7px !important;
    -webkit-overflow-scrolling: touch;
  }
  .collections-panel .collection-card {
    flex: 0 0 clamp(142px, 42vw, 178px) !important;
    width: auto !important;
    min-width: 0 !important;
    aspect-ratio: 1.03 / 1 !important;
    min-height: 0 !important;
  }
}

@media (max-width: 420px) {
  .collections-panel .panel-heading,
  .leaderboard-panel .panel-heading.tight {
    grid-template-columns: 1fr !important;
  }
  .collections-panel .panel-heading .text-action,
  .leaderboard-panel .panel-heading .text-action {
    justify-self: start !important;
  }
}


/* ===== v1.13.0 homepage showcase + game refresh ===== */
.hero-showcase{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:18px;align-items:stretch;padding-top:28px;min-height:auto}.hero-showcase .hero-weekly-card,.hero-showcase .hero-featured-slider{min-width:0}.hero-weekly-card{position:relative;min-height:510px;overflow:hidden;border-radius:30px;border:1px solid rgba(244,182,79,.24);box-shadow:var(--shadow);background:#081f31;isolation:isolate}.hero-weekly-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-weekly-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,18,28,.92) 0%,rgba(4,18,28,.72) 46%,rgba(4,18,28,.22) 100%)}.hero-weekly-content{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:16px;min-height:510px;padding:34px}.hero-weekly-content h1{margin:0;font-family:var(--display);font-size:clamp(38px,4.8vw,64px);line-height:.96;letter-spacing:-.04em}.hero-weekly-content p{margin:0;max-width:620px;color:#d6e1e7;font-size:15px;line-height:1.65}.hero-weekly-meta{display:flex;flex-wrap:wrap;gap:8px}.hero-weekly-meta span{padding:8px 11px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(4,20,31,.45);font-size:11px;font-weight:850}.hero-showcase-buttons{margin-top:4px;flex-wrap:wrap}.hero-featured-slider{display:flex;flex-direction:column;justify-content:flex-end;min-height:510px}.hero-featured-slider .featured-content{align-items:flex-end;gap:18px}.hero-featured-slider .featured-content>div{max-width:78%}.featured-kicker{display:inline-flex;margin-bottom:8px;color:#ffd274;font-size:11px;font-weight:900;letter-spacing:.13em}.community-collections-grid{align-items:stretch}.community-collections-grid .panel{height:100%}.panel-heading{align-items:flex-start}.panel-heading .text-action{align-self:flex-start;margin-top:8px}.collection-strip{grid-auto-rows:1fr}.collection-card{height:196px}

.game-header{height:88px!important;padding:0 18px!important;display:grid!important;grid-template-columns:minmax(240px,1fr) auto auto!important;gap:16px;background:rgba(2,15,26,.96)!important;border-bottom:1px solid rgba(229,174,88,.16)!important}.game-header-left{gap:12px!important}.game-header .brand-full-logo{max-height:48px}.game-back{min-width:54px;height:54px;display:grid;place-items:center;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);font-size:0}.game-back::before{content:'←';font-size:26px;font-weight:900}.game-header-actions{justify-content:flex-end;flex-wrap:wrap;gap:10px!important}.game-header-actions .button{min-height:54px;padding:0 18px;border-radius:16px;border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.02);font-weight:850}.game-header-actions .button:first-child{border-color:rgba(244,185,92,.75);box-shadow:inset 0 0 0 1px rgba(244,185,92,.2)}.workspace-hud{top:14px!important;left:50%!important;transform:translateX(-50%);width:auto;max-width:min(100%,760px);padding:10px 14px!important;gap:10px!important;border:1px solid rgba(244,182,79,.18)!important;border-radius:18px!important;background:rgba(4,19,31,.82)!important;box-shadow:0 18px 34px rgba(0,0,0,.22)}.hud-stat{min-width:110px;min-height:56px;padding:8px 14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}.hud-stat.primary-stat{background:linear-gradient(180deg,rgba(244,185,92,.18),rgba(255,255,255,.03));border-color:rgba(244,185,92,.34)}.hud-stat span{font-size:11px;letter-spacing:.08em;text-transform:uppercase}.hud-stat strong{font-size:28px}.play-tools{position:absolute!important;left:18px;top:104px;bottom:calc(var(--tray-height) + 18px);width:92px;display:flex;flex-direction:column;gap:12px;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}.play-tool{min-height:86px;border-radius:20px!important;border:1px solid rgba(255,255,255,.08)!important;background:linear-gradient(180deg,rgba(9,29,46,.95),rgba(6,24,39,.98))!important;box-shadow:0 12px 28px rgba(0,0,0,.18)}.play-tool.primary-tool{border-color:rgba(244,185,92,.45)!important;box-shadow:0 0 0 2px rgba(244,185,92,.08),0 16px 34px rgba(0,0,0,.22)}.play-tool small{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border-radius:999px;background:#f1bb58;color:#142232;font-weight:950}.board-stage{inset:18px 240px calc(var(--tray-height) + 24px) 124px!important;border-radius:24px!important;border:1px solid rgba(244,182,79,.24)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 28px 70px rgba(0,0,0,.26)}.piece-tray{left:124px!important;right:18px!important;bottom:18px!important;height:var(--tray-height)!important;border-radius:24px!important;border:1px solid rgba(244,182,79,.18)!important;background:linear-gradient(180deg,rgba(5,24,38,.96),rgba(4,19,30,.99))!important;box-shadow:0 16px 42px rgba(0,0,0,.26)}.tray-header{padding:14px 16px 10px!important}.tray-title strong{font-size:16px}.tray-actions .tray-action{min-height:46px;border-radius:14px}.tray-actions .tray-action.primary{border-color:rgba(244,185,92,.36);background:rgba(244,185,92,.08)}.game-side{top:104px!important;right:18px!important;bottom:calc(var(--tray-height) + 18px)!important;width:204px!important;gap:12px!important}.game-side .game-card{border-radius:22px!important;border:1px solid rgba(255,255,255,.08)!important;background:linear-gradient(180deg,rgba(8,29,45,.94),rgba(5,24,39,.98))!important;box-shadow:0 16px 42px rgba(0,0,0,.2)}.game-side .game-card-heading h3{font-size:24px;line-height:1.12}.game-side .reference-image-button img{height:144px;min-height:144px;border-radius:14px}.progress-layout{grid-template-columns:84px 1fr!important}.progress-ring{width:82px!important;height:82px!important}.progress-ring strong{font-size:22px!important}
@media (max-width: 1180px){.hero-showcase{grid-template-columns:1fr}.hero-weekly-card,.hero-featured-slider{min-height:460px}.game-header{grid-template-columns:minmax(200px,1fr) auto!important}.game-header-actions{grid-column:1/-1;justify-content:flex-start}.board-stage{left:18px!important;right:18px!important}.play-tools{left:18px;right:18px;top:auto;bottom:calc(var(--tray-height) + 18px);width:auto;flex-direction:row;overflow:auto;padding-bottom:2px}.play-tool{min-width:118px;min-height:72px}.game-side{display:none!important}.piece-tray{left:18px!important}}
@media (max-width: 820px){.hero-showcase{padding-top:18px}.hero-weekly-card,.hero-featured-slider{min-height:400px}.hero-weekly-content{min-height:400px;padding:24px}.hero-featured-slider .featured-content>div{max-width:100%}}


/* ========================================================================== */
/* v1.14.0 — strict weekly/featured separation + desktop game UI              */
/* ========================================================================== */
.hero-featured-slider.is-empty>img{opacity:0!important}.hero-featured-slider.is-empty{background:linear-gradient(145deg,#0a293f,#061a2a)}.hero-featured-slider.is-empty .featured-vignette{background:radial-gradient(circle at 70% 20%,rgba(244,182,79,.08),transparent 36%),linear-gradient(180deg,transparent,rgba(2,14,23,.76))}.hero-featured-slider.is-empty .circle-play{display:none}.hero-featured-slider.is-empty .featured-content p{display:none}

@media (min-width:821px){
  body.game-open{overflow:hidden!important}
  .game-view{height:100vh!important;min-height:100vh!important;overflow:hidden!important;background:#03131f}
  .game-header{position:relative!important;top:auto!important;height:88px!important;min-height:88px!important;padding:0 22px!important;display:grid!important;grid-template-columns:minmax(330px,1fr) auto minmax(430px,1fr)!important;align-items:center!important;gap:18px!important;background:rgba(2,15,25,.985)!important;border-bottom:1px solid rgba(244,187,83,.17)!important;backdrop-filter:none!important}
  .game-header-left{min-width:0;display:flex!important;align-items:center!important;gap:12px!important;overflow:hidden}
  .game-brand{flex:0 0 172px}.game-brand .brand-full-logo{width:164px!important;height:56px!important;max-height:56px!important}
  .game-back{order:2;flex:0 0 46px;min-width:46px!important;width:46px!important;height:46px!important;padding:0!important;font-size:0!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:13px!important;background:#071d2e!important}
  .game-back::before{content:'←';font-size:24px;color:#fff}.header-puzzle-name{order:3;min-width:0}.header-puzzle-name strong{display:block;max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px!important}.header-puzzle-name small{font-size:11px!important;color:#b7c6cf!important}
  .game-header-stats{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));align-items:stretch;min-width:340px;border:1px solid rgba(255,255,255,.09);border-radius:17px;background:#071d2e;overflow:hidden}
  .game-header-stats .header-stat{min-width:0!important;min-height:58px!important;padding:9px 18px!important;border:0!important;border-radius:0!important;background:transparent!important;position:relative}
  .game-header-stats .header-stat+ .header-stat{border-left:1px solid rgba(255,255,255,.08)!important}.game-header-stats .header-stat span{font-size:9px!important;letter-spacing:.13em!important;color:#90a9b8}.game-header-stats .header-stat strong{font-size:20px!important;line-height:1.15}.game-header-stats .primary-stat strong{color:#fff}.game-header-stats .primary-stat::after{content:'';position:absolute;left:18px;right:18px;bottom:8px;height:4px;border-radius:999px;background:linear-gradient(90deg,#f5c65f 60%,rgba(255,255,255,.08) 60%)}
  .game-header-actions{min-width:0;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;flex-wrap:nowrap!important}.game-header-actions .button{min-height:48px!important;height:48px!important;padding:0 16px!important;border-radius:14px!important;white-space:nowrap;font-size:12px!important}.game-header-actions #saveProgressButton{border-color:rgba(244,187,83,.7)!important;color:#ffd16a}.game-header-actions #inviteGameButton{color:#a9f1d1}.profile-button{width:46px!important;height:46px!important}

  .game-shell{--tray-height:246px;height:calc(100vh - 88px)!important;min-height:0!important;display:block!important;overflow:hidden!important}.game-shell.tray-two-rows{--tray-height:246px}
  .workspace-panel{height:100%!important;min-height:0!important;display:block!important;overflow:hidden!important}.game-workspace{position:relative!important;height:100%!important;min-height:0!important;overflow:hidden!important;padding:0!important;background:radial-gradient(circle at 50% 32%,#0b334b,#052238 48%,#031827 100%)!important}
  .workspace-hud{position:absolute!important;z-index:60!important;left:138px!important;right:auto!important;top:auto!important;bottom:calc(var(--tray-height) + 28px)!important;transform:none!important;min-height:0!important;width:auto!important;max-width:none!important;display:flex!important;gap:5px!important;padding:6px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:14px!important;background:rgba(3,18,29,.9)!important;box-shadow:0 12px 30px rgba(0,0,0,.3)!important}.workspace-hud .hud-spacer{display:none}.workspace-hud .hud-button{min-width:42px!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:10px!important;font-size:0!important}.workspace-hud .hud-button span{font-size:18px!important}.workspace-hud .zoom-readout{width:60px!important;font-size:11px!important}.workspace-hud .zoom-readout span{font-size:11px!important}.workspace-hud #referenceBoardButton{display:none!important}

  .play-tools{position:absolute!important;z-index:55!important;left:18px!important;top:18px!important;bottom:calc(var(--tray-height) + 18px)!important;width:100px!important;padding:0!important;display:flex!important;flex-direction:column!important;gap:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:auto!important;scrollbar-width:none}.play-tools::-webkit-scrollbar{display:none}.play-tool{flex:0 0 auto!important;width:100px!important;min-width:100px!important;min-height:78px!important;padding:10px 6px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:19px!important;background:linear-gradient(180deg,#09283d,#061e31)!important;box-shadow:0 10px 24px rgba(0,0,0,.2)!important}.play-tool span{font-size:21px!important}.play-tool strong{font-size:11px!important}.play-tool.primary-tool{min-height:112px!important;border-color:rgba(244,187,83,.65)!important;box-shadow:inset 0 0 0 1px rgba(244,187,83,.12),0 0 22px rgba(244,174,48,.12)!important}.play-tool.primary-tool strong{color:#ffd16a}.play-tool small{position:absolute;right:8px;top:8px;min-width:24px;height:24px;background:#f0b84e;color:#102030}

  .board-stage{position:absolute!important;z-index:10!important;left:132px!important;right:270px!important;top:18px!important;bottom:calc(var(--tray-height) + 18px)!important;inset:auto 270px calc(var(--tray-height) + 18px) 132px!important;overflow:hidden!important;border:2px solid rgba(239,180,70,.76)!important;border-radius:20px!important;background:#0a2a3e!important;box-shadow:0 0 0 5px rgba(245,178,54,.04),0 24px 60px rgba(0,0,0,.33)!important}.puzzle-board{border-radius:18px!important;overflow:visible!important}
  .game-side{position:absolute!important;z-index:50!important;display:flex!important;top:18px!important;right:18px!important;bottom:calc(var(--tray-height) + 18px)!important;width:232px!important;max-height:none!important;overflow:auto!important;gap:12px!important;padding:0!important;scrollbar-width:thin}.game-side .game-card{flex:0 0 auto!important;padding:14px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:20px!important;background:linear-gradient(180deg,#09283c,#061e30)!important;box-shadow:0 14px 34px rgba(0,0,0,.2)!important;backdrop-filter:none!important}.game-side .reference-card{order:1}.game-side .progress-card{order:2}.game-side .multiplayer-card{order:3}.game-side .game-leaderboard-card{order:4}.game-side .helper-card,.game-side .shortcuts-card{display:none!important}.game-card-heading{margin-bottom:10px!important}.game-card-heading .card-kicker{font-size:10px!important;letter-spacing:.15em!important}.game-card-heading h3{margin-top:3px!important;font-size:13px!important}.reference-image-button img{height:132px!important;min-height:132px!important;border-radius:13px!important}.reference-image-button span{font-size:12px!important}.reference-peek,.ghost-control{display:none!important}.progress-layout{display:grid!important;grid-template-columns:76px 1fr!important;gap:12px!important}.progress-ring{width:72px!important;height:72px!important}.progress-ring strong{font-size:17px!important}.progress-layout dl>div{padding:4px 0!important}.progress-layout dt{font-size:9px!important}.progress-layout dd{font-size:11px!important}.game-leaderboard-card{display:none!important}

  .piece-tray{position:absolute!important;z-index:45!important;left:132px!important;right:18px!important;bottom:18px!important;height:228px!important;display:grid!important;grid-template-columns:108px minmax(0,1fr)!important;grid-template-rows:62px minmax(0,1fr)!important;border:1px solid rgba(239,180,70,.28)!important;border-radius:22px!important;background:linear-gradient(180deg,#08263a,#051d2e)!important;box-shadow:0 18px 46px rgba(0,0,0,.3)!important;overflow:hidden!important}.tray-header{grid-column:2;grid-row:1;min-height:62px!important;height:62px!important;padding:9px 14px!important;border-bottom:1px solid rgba(255,255,255,.07)!important}.tray-title{display:none!important}.tray-actions{width:100%;display:flex!important;justify-content:space-between!important;gap:8px!important}.tray-actions .tray-action{height:42px!important;min-height:42px!important;padding:0 16px!important;border-radius:12px!important;font-size:11px!important}.piece-size-control,.tray-row-switch,.tray-collapse{display:none!important}.tray-tabs{grid-column:1;grid-row:1/3;height:auto!important;min-height:0!important;padding:14px 10px!important;display:flex!important;flex-direction:column!important;gap:8px!important;border-right:1px solid rgba(255,255,255,.08)!important;background:rgba(2,16,27,.34)!important;overflow:auto!important}.tray-tabs .tray-tab{flex:0 0 auto!important;width:100%!important;min-height:44px!important;padding:0 7px!important;font-size:9px!important;border-radius:10px!important}.tray-pieces-layer{grid-column:2;grid-row:2;position:relative!important;min-height:0!important;height:100%!important;padding:10px 54px 10px 10px!important;overflow:hidden!important}.tray-navigation{position:absolute!important;right:12px!important;top:84px!important;bottom:auto!important;display:grid!important;grid-template-columns:34px!important;gap:5px!important}.tray-navigation button{width:34px!important;height:34px!important}.tray-navigation span{font-size:9px!important;text-align:center!important}.tray-guide{display:none!important}.tray-reopen{bottom:18px!important;left:132px!important}.game-bottom-bar{display:none!important}
}

@media (min-width:821px) and (max-width:1360px){
  .game-header{grid-template-columns:minmax(270px,1fr) auto!important}.game-header-stats{min-width:300px}.game-header-actions{grid-column:1/-1;position:absolute;right:14px;bottom:-62px;z-index:90;background:rgba(2,15,25,.9);padding:5px;border-radius:14px}.game-header-actions .button{height:42px!important;min-height:42px!important;padding:0 10px!important}.game-header-actions #fullscreenButton{display:none!important}.game-shell{height:calc(100vh - 88px)!important}.board-stage{right:18px!important;inset:auto 18px calc(var(--tray-height) + 18px) 132px!important}.game-side{display:none!important}.piece-tray{right:18px!important}.workspace-hud{bottom:calc(var(--tray-height) + 24px)!important}
}

@media (min-width:821px) and (max-height:780px){
  .game-shell{--tray-height:190px}.game-shell.tray-two-rows{--tray-height:190px}.play-tool{min-height:64px!important}.play-tool.primary-tool{min-height:86px!important}.piece-tray{height:174px!important;grid-template-rows:54px minmax(0,1fr)!important}.tray-header{height:54px!important;min-height:54px!important}.game-side .reference-image-button img{height:96px!important;min-height:96px!important}
}

/* IMPORTANT: mobile rules from v1.12/v1.13 remain authoritative below 820px. */

/* v1.14 responsive bridge for the moved header stats; does not touch mobile scrolling. */
@media (max-width:820px){
  .game-header-stats{position:fixed;z-index:23990;left:7px;right:7px;top:66px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(4,22,35,.94)}
  .game-header-stats .header-stat{min-width:0!important;min-height:48px!important;padding:6px 8px!important;border-radius:10px!important;background:rgba(255,255,255,.035)!important;text-align:left}
  .game-header-stats .header-stat span{display:block;font-size:7px!important;letter-spacing:.1em;text-transform:uppercase;color:#8fa7b5;white-space:nowrap}
  .game-header-stats .header-stat strong{display:block;margin-top:3px;font-size:16px!important;line-height:1!important;white-space:nowrap}
  .game-header-stats .primary-stat{border-color:rgba(244,185,92,.3)!important}
  .workspace-hud{top:126px!important}
  .game-workspace{padding-top:60px!important}
}

.hero-featured-slider .featured-dots{max-width:72%;overflow-x:auto;scrollbar-width:none}.hero-featured-slider .featured-dots::-webkit-scrollbar{display:none}

/* v1.14 desktop tray: keep all existing filter/row functionality while using the new visual layout. */
@media (min-width:821px){
  .game-shell{--tray-height:228px!important}.game-shell.tray-two-rows{--tray-height:330px!important}
  .piece-tray{height:var(--tray-height)!important;grid-template-columns:104px minmax(0,1fr)!important;grid-template-rows:58px 38px minmax(0,1fr)!important}
  .tray-header{grid-column:2!important;grid-row:1!important;height:58px!important;min-height:58px!important;padding:8px 12px!important}
  .tray-tabs{grid-column:2!important;grid-row:2!important;height:38px!important;min-height:38px!important;padding:4px 54px 4px 10px!important;display:flex!important;flex-direction:row!important;gap:6px!important;border-right:0!important;border-bottom:1px solid rgba(255,255,255,.07)!important;background:rgba(2,16,27,.2)!important;overflow-x:auto!important;overflow-y:hidden!important}
  .tray-tabs .tray-tab{width:auto!important;min-width:max-content!important;min-height:28px!important;height:28px!important;padding:0 10px!important;font-size:9px!important}
  .tray-pieces-layer{grid-column:2!important;grid-row:3!important;padding:8px 52px 8px 10px!important}
  .tray-row-switch{position:absolute!important;display:grid!important;z-index:7;left:12px!important;top:12px!important;bottom:12px!important;width:78px!important;height:auto!important;grid-template-columns:1fr!important;grid-template-rows:1fr 1fr!important;gap:8px!important;padding:0!important;border:0!important;background:transparent!important}
  .tray-row-switch button{width:78px!important;height:auto!important;min-height:0!important;padding:8px 5px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:14px!important;background:#061d2e!important;color:#b9cbd5!important;font-size:0!important;line-height:1!important;white-space:normal!important}
  .tray-row-switch button::before{content:'ŞERİT';display:block;margin-bottom:6px;font-size:8px;letter-spacing:.11em;color:#91a9b7}.tray-row-switch #trayOneRowButton::after{content:'DAR';font-size:11px;font-weight:900}.tray-row-switch #trayTwoRowsButton::after{content:'GENİŞ';font-size:11px;font-weight:900}
  .tray-row-switch button[aria-pressed="true"],.tray-row-switch button.active{border-color:rgba(244,187,83,.62)!important;background:linear-gradient(180deg,rgba(244,187,83,.14),#071f31)!important;color:#ffd16a!important;box-shadow:inset 0 0 0 1px rgba(244,187,83,.08)!important}
  .tray-collapse{display:inline-grid!important}.piece-size-control{display:none!important}
  .tray-navigation{top:104px!important}
}
@media (min-width:821px) and (max-height:780px){.game-shell{--tray-height:176px!important}.game-shell.tray-two-rows{--tray-height:246px!important}.tray-row-switch{width:70px!important}.tray-row-switch button{width:70px!important}}


/* v1.15.0 — interaction reliability; geometry/theme intentionally unchanged */
.game-header,.game-header-actions,.game-header-left,.game-header-stats,.play-tools,.piece-tray,.game-side,.workspace-hud,.selection-toolbar,.hand-hint,.tray-reopen{pointer-events:auto!important}
.game-header{z-index:25000!important}.play-tools{z-index:16000!important}.piece-tray{z-index:15000!important}.game-side{z-index:14000!important}.workspace-hud{z-index:13000!important}
.game-header button,.game-header a,.play-tools button,.piece-tray button,.game-side button,.workspace-hud button,.selection-toolbar button,.tray-reopen{pointer-events:auto!important;touch-action:manipulation}
.play-tool.active,.tray-row-switch button.active{border-color:rgba(244,187,83,.62)!important;color:#ffd16a!important;background:rgba(244,187,83,.1)!important}
button:disabled{cursor:not-allowed;opacity:.55}

/* v1.15.0 — oyun ergonomisi: referans tasarımı koruyup tüm araçları tek ekranda erişilebilir tut */
@media (min-width:1361px) and (min-height:781px){
  .game-shell{--tray-height:210px!important}
  .game-shell.tray-two-rows{--tray-height:250px!important}
  .play-tools{gap:8px!important;overflow:hidden!important}
  .play-tool{min-height:60px!important}
  .play-tool.primary-tool{min-height:88px!important}
  .piece-tray{height:var(--tray-height)!important}
}
@media (min-width:1181px) and (max-height:780px){
  .game-shell{--tray-height:166px!important}.game-shell.tray-two-rows{--tray-height:220px!important}
  .play-tools{gap:5px!important;overflow:hidden!important}
  .play-tool{min-height:48px!important;padding:6px 5px!important}
  .play-tool.primary-tool{min-height:70px!important}
  .play-tool span{font-size:18px!important}.play-tool strong{font-size:12px!important}
  .piece-tray{height:var(--tray-height)!important}
}


/* ========================================================================== */
/* v1.16.0 — çalışma masası geometri onarımı; mevcut görsel tema korunur      */
/* ========================================================================== */
@media (min-width:821px){
  /* "Masaya Ser" parçaları pano sınırının dışına yerleştirir. Bu taşma çalışma
     masasının kendisidir; kesilmemelidir. */
  .board-stage{overflow:visible!important}
  .puzzle-board{overflow:visible!important}
  .board-surface,.board-reference{border-radius:18px;overflow:hidden}
  /* Pano dışındaki serbest parçalar araçların altında kaybolmasın. */
  .board-pieces-layer{overflow:visible!important}
  .game-workspace.table-mode .board-stage{box-shadow:0 0 0 5px rgba(245,178,54,.04),0 24px 60px rgba(0,0,0,.33)!important}
  .game-workspace.table-mode::before{left:132px!important;top:24px!important}
  /* Dar / geniş satırlarda parçalar kendi slotunun dışına taşmasın. */
  .tray-pieces-layer .puzzle-piece{transform-origin:center center!important}
}


/* ========================================================================== */
/* v1.17.0 — immersive tabletop; existing dark navy/gold visual theme retained */
/* ========================================================================== */
@media (min-width:821px){
  /* Remove the leftover frosted slab around zoom controls. Buttons float individually. */
  .workspace-hud{left:50%!important;right:auto!important;top:14px!important;bottom:auto!important;transform:translateX(-50%)!important;padding:0!important;gap:7px!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .workspace-hud .hud-button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:13px!important;background:#071f31!important;box-shadow:0 10px 26px rgba(0,0,0,.22)!important;color:#eaf2f7!important;font-size:13px!important;line-height:1!important}
  .workspace-hud .hud-button.icon-only{font-size:22px!important;font-weight:850!important}
  .workspace-hud #zoomOutButton::before{content:'−';font-size:22px}.workspace-hud #zoomInButton::before{content:'＋';font-size:20px}
  .workspace-hud #zoomOutButton,.workspace-hud #zoomInButton{font-size:0!important}
  .workspace-hud .zoom-readout{width:68px!important;min-width:68px!important;font-size:12px!important}.workspace-hud .zoom-readout span{font-size:12px!important}
  .workspace-hud #toggleDocksButton,.workspace-hud #trayQuickButton{width:46px!important}.workspace-hud #toggleDocksButton span,.workspace-hud #trayQuickButton span{font-size:17px!important}
  .workspace-hud #referenceBoardButton{display:none!important}

  /* More play space: left/right docks become edge drawers. */
  .game-shell.edge-docks .play-tools{left:-82px!important;width:100px!important;transition:left .18s ease,filter .18s ease!important;overflow:visible!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:transparent!important;border-right:3px solid rgba(240,184,78,.46)!important}
  .game-shell.edge-docks .play-tools::after{display:none!important}
  .game-shell.edge-docks .play-tools:hover,.game-shell.edge-docks .play-tools:focus-within,.game-shell.edge-docks.left-dock-peek .play-tools,.game-shell.edge-docks.docks-pinned-open .play-tools{left:14px!important;filter:none!important}
  .game-shell.edge-docks .game-side{right:-214px!important;width:232px!important;transition:right .18s ease!important;overflow:visible!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:transparent!important;border-left:3px solid rgba(240,184,78,.46)!important}
  .game-shell.edge-docks .game-side::before{display:none!important}
  .game-shell.edge-docks .game-side:hover,.game-shell.edge-docks .game-side:focus-within,.game-shell.edge-docks.right-dock-peek .game-side,.game-shell.edge-docks.docks-pinned-open .game-side{right:14px!important}
  .game-shell.edge-docks.focus-mode .play-tools,.game-shell.edge-docks.focus-mode .game-side{display:none!important}

  .game-shell.edge-docks:not(.docks-pinned-open):not(.left-dock-peek) .play-tools:not(:hover):not(:focus-within) .play-tool{opacity:0!important;pointer-events:none!important}
  .game-shell.edge-docks:not(.docks-pinned-open):not(.right-dock-peek) .game-side:not(:hover):not(:focus-within) .game-card{opacity:0!important;pointer-events:none!important}
  .game-shell.edge-docks .play-tools::before{content:'ARAÇLAR';position:absolute;z-index:3;right:0;top:50%;transform:translateY(-50%);width:18px;height:112px;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;rotate:180deg;border-radius:0 10px 10px 0;background:#08263a;color:#e8b957;font-size:7px;font-weight:950;letter-spacing:.14em;opacity:.88;pointer-events:none}
  .game-shell.edge-docks .game-side::after{content:'BİLGİ';position:absolute;z-index:3;left:0;top:50%;transform:translateY(-50%);width:18px;height:96px;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;border-radius:10px 0 0 10px;background:#08263a;color:#e8b957;font-size:7px;font-weight:950;letter-spacing:.14em;opacity:.88;pointer-events:none}
  .game-shell.edge-docks .play-tools:hover::before,.game-shell.edge-docks .play-tools:focus-within::before,.game-shell.edge-docks.left-dock-peek .play-tools::before,.game-shell.edge-docks.docks-pinned-open .play-tools::before,.game-shell.edge-docks .game-side:hover::after,.game-shell.edge-docks .game-side:focus-within::after,.game-shell.edge-docks.right-dock-peek .game-side::after,.game-shell.edge-docks.docks-pinned-open .game-side::after{opacity:0}

  /* Board owns nearly the entire desk; drawers overlay instead of reserving permanent columns. */
  .board-stage{overflow:visible!important}.puzzle-board,.board-pieces-layer{overflow:visible!important}
  .game-workspace.table-mode::before,.game-workspace.table-drop-active::after{display:none!important}
  .game-workspace.immersive-table .board-stage{border-color:rgba(239,180,70,.68)!important;box-shadow:0 0 0 4px rgba(245,178,54,.035),0 26px 62px rgba(0,0,0,.28)!important}

  /* Tray is optional. When it is opened, actions and filters share one compact line. */
  .game-shell{--tray-height:154px!important}.game-shell.tray-two-rows{--tray-height:230px!important}
  .piece-tray{grid-template-columns:92px minmax(0,1fr)!important;grid-template-rows:58px minmax(0,1fr)!important;height:var(--tray-height)!important}
  .tray-header{grid-column:2!important;grid-row:1!important;height:58px!important;min-height:58px!important;padding:8px 12px!important;overflow:visible!important}
  .tray-title{display:none!important}.tray-actions{justify-content:flex-start!important;width:auto!important;gap:8px!important;padding-right:0!important}
  .tray-actions .tray-action{height:40px!important;min-height:40px!important;padding:0 13px!important;font-size:12px!important}.tray-collapse{display:none!important}
  .tray-tabs{position:absolute!important;z-index:8!important;left:clamp(350px,32%,470px)!important;right:54px!important;top:10px!important;height:40px!important;min-height:40px!important;padding:4px 2px!important;display:flex!important;align-items:center!important;gap:5px!important;border:0!important;background:transparent!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}.tray-tabs::-webkit-scrollbar{display:none}.tray-tabs .tray-tab{width:auto!important;min-width:max-content!important;height:32px!important;min-height:32px!important;padding:0 10px!important;font-size:9px!important}
  .tray-pieces-layer{grid-column:2!important;grid-row:2!important;padding:8px 50px 8px 8px!important}.tray-navigation{top:72px!important}.tray-row-switch{left:8px!important;top:8px!important;bottom:8px!important;width:72px!important}.tray-row-switch button{width:72px!important}

  /* Table filters highlight matching pieces instead of requiring the hidden tray. */
  .puzzle-piece.filter-muted{opacity:.14!important;filter:saturate(.22) brightness(.68)!important;pointer-events:none!important;transition:opacity .16s ease,filter .16s ease}.puzzle-piece.filter-match{opacity:1!important;filter:drop-shadow(0 4px 7px rgba(0,0,0,.32))!important}

  /* Non-blocking first-run narrator. */
  .table-coachmark{position:absolute;z-index:17000;left:50%;bottom:22px;transform:translateX(-50%);width:min(720px,calc(100% - 180px));display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(244,187,83,.36);border-radius:17px;background:#071f31;color:#f5f7f8;box-shadow:0 18px 48px rgba(0,0,0,.34)}.table-coachmark[hidden]{display:none!important}.table-coachmark-icon{font-size:23px}.table-coachmark strong{display:block;font-size:12px}.table-coachmark small{display:block;margin-top:3px;color:#a9bcc8;font-size:10px;line-height:1.45}.coach-action{height:36px;padding:0 12px;border:1px solid rgba(244,187,83,.5);border-radius:11px;background:rgba(244,187,83,.09);color:#ffd16a;font-weight:850;font-size:10px;cursor:pointer}.coach-close{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:#d8e4ea;font-size:18px;cursor:pointer}
  .game-workspace.tray-collapsed .tray-reopen{display:none!important}
}

@media (min-width:821px) and (max-width:1180px){
  .workspace-hud{top:72px!important}.game-shell.edge-docks .game-side{display:flex!important;right:-214px!important}.game-shell.edge-docks .game-side:hover,.game-shell.edge-docks.right-dock-peek .game-side,.game-shell.edge-docks.docks-pinned-open .game-side{right:10px!important}.game-shell.edge-docks .play-tools{left:-82px!important}.game-shell.edge-docks .play-tools:hover,.game-shell.edge-docks.left-dock-peek .play-tools,.game-shell.edge-docks.docks-pinned-open .play-tools{left:10px!important}
  .tray-tabs{left:330px!important}
}

@media (min-width:821px) and (max-height:780px){
  .game-shell{--tray-height:142px!important}.game-shell.tray-two-rows{--tray-height:206px!important}.workspace-hud{top:8px!important}.table-coachmark{bottom:12px}.play-tool{min-height:50px!important}.play-tool.primary-tool{min-height:72px!important}
}
/* Mobile remains governed by the already-fixed <=820px rules. */

/* v1.17.0 tray header alignment hotfix: absolute tabs must anchor to header row, not old grid row 2. */
@media (min-width:821px){
  .piece-tray .tray-tabs{grid-column:2!important;grid-row:1!important;align-self:start!important}
}

/* ========================================================================== */
/* v1.18.0 — stable mobile game viewport, social dialogs, dock/progress fixes */
/* ========================================================================== */

/* The return button in the piece-count step must remain visible on dark UI. */
.picker-back{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-height:42px!important;padding:0 14px!important;margin:0 0 14px!important;
  border:1px solid rgba(244,182,79,.42)!important;border-radius:12px!important;
  background:#0b2a41!important;color:#f7c663!important;
  font:850 12px/1 var(--sans)!important;box-shadow:none!important;cursor:pointer!important;
}
.picker-back:hover{background:#113650!important;border-color:#f2bc57!important;color:#ffe0a0!important}

/* Header progress is real progress now, not a hard-coded 60% decoration. */
.game-header-stats .primary-stat{--header-progress:0%;overflow:hidden!important}
.game-header-stats .primary-stat::before{
  content:'';position:absolute;left:18px;right:18px;bottom:8px;height:4px;border-radius:999px;
  background:rgba(255,255,255,.09);z-index:0;
}
.game-header-stats .primary-stat::after{
  content:''!important;position:absolute!important;left:18px!important;right:auto!important;bottom:8px!important;
  width:var(--header-progress,0%)!important;max-width:calc(100% - 36px)!important;height:4px!important;border-radius:999px!important;
  background:linear-gradient(90deg,#f5c65f,#eaa638)!important;transition:width .25s ease!important;z-index:1!important;
}
.game-header-stats .primary-stat>span,.game-header-stats .primary-stat>strong{position:relative;z-index:2}

@media (min-width:821px){
  /* Remove the empty stretched block under Pause: drawers size to their content. */
  .game-shell.edge-docks .play-tools{
    top:92px!important;bottom:auto!important;height:auto!important;max-height:calc(100dvh - 128px)!important;
    padding:8px 9px 8px 8px!important;gap:7px!important;
    border:1px solid rgba(112,164,194,.20)!important;border-left:0!important;border-right:3px solid rgba(240,184,78,.62)!important;
    border-radius:0 20px 20px 0!important;
    background:linear-gradient(180deg,rgba(9,40,61,.985),rgba(5,28,45,.985))!important;
    box-shadow:14px 18px 44px rgba(0,0,0,.24)!important;
  }
  .game-shell.edge-docks .game-side{
    top:92px!important;bottom:auto!important;height:auto!important;max-height:calc(100dvh - 128px)!important;
    padding:8px 8px 8px 9px!important;overflow-y:auto!important;
    border:1px solid rgba(112,164,194,.20)!important;border-right:0!important;border-left:3px solid rgba(240,184,78,.62)!important;
    border-radius:20px 0 0 20px!important;
    background:linear-gradient(180deg,rgba(9,40,61,.985),rgba(5,28,45,.985))!important;
    box-shadow:-14px 18px 44px rgba(0,0,0,.24)!important;
  }
  .game-shell.edge-docks .play-tools::before{background:#0b3049!important;box-shadow:inset -1px 0 rgba(255,255,255,.05)!important}
  .game-shell.edge-docks .game-side::after{background:#0b3049!important;box-shadow:inset 1px 0 rgba(255,255,255,.05)!important}
  .game-shell.edge-docks .play-tools:hover,.game-shell.edge-docks.left-dock-peek .play-tools,.game-shell.edge-docks.docks-pinned-open .play-tools{left:0!important}
  .game-shell.edge-docks .game-side:hover,.game-shell.edge-docks.right-dock-peek .game-side,.game-shell.edge-docks.docks-pinned-open .game-side{right:0!important}
}

/* Mobile game is one stable viewport. The page itself never competes with game controls. */
@media (max-width:820px){
  html:has(body.game-open){height:100%!important;overflow:hidden!important}
  body.game-open{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important;touch-action:none!important}
  body.game-open .game-view{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important;background:#041522!important}
  body.game-open .game-header{
    position:absolute!important;z-index:25000!important;left:0!important;right:0!important;top:0!important;
    height:62px!important;min-height:62px!important;padding:7px 8px!important;
    display:flex!important;align-items:center!important;gap:8px!important;background:#031522!important;
  }
  .game-header-left{min-width:0!important;flex:1!important;gap:7px!important}
  .game-header .game-brand{display:none!important}
  .game-header .game-back{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;border-radius:12px!important}
  .game-header .header-puzzle-name{min-width:0!important;display:flex!important;flex-direction:column!important}
  .game-header .header-puzzle-name strong{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .game-header .header-puzzle-name small{font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .game-header-actions{position:static!important;display:flex!important;flex:0 0 auto!important;gap:5px!important;padding:0!important;background:transparent!important}
  .game-header-actions .game-action{display:none!important}
  .game-header-actions #saveProgressButton{display:inline-flex!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;font-size:0!important}
  .game-header-actions #saveProgressButton::before{content:'✓';font-size:18px!important}
  .game-header-actions .profile-button{display:grid!important;width:42px!important;height:42px!important;min-width:42px!important}

  /* Stats stay inside the game, not fixed to the browser/page. */
  .game-header-stats{
    position:absolute!important;z-index:24800!important;left:8px!important;right:8px!important;top:68px!important;
    height:54px!important;min-width:0!important;padding:4px!important;gap:3px!important;
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    border:1px solid rgba(138,184,210,.16)!important;border-radius:14px!important;background:#08243a!important;
    box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
  }
  .game-header-stats .header-stat{min-height:44px!important;padding:5px 8px 9px!important;border-radius:9px!important;background:rgba(255,255,255,.025)!important}
  .game-header-stats .header-stat span{font-size:7px!important}.game-header-stats .header-stat strong{font-size:16px!important}
  .game-header-stats .primary-stat::before{left:8px!important;right:8px!important;bottom:5px!important;height:3px!important}
  .game-header-stats .primary-stat::after{left:8px!important;bottom:5px!important;height:3px!important;max-width:calc(100% - 16px)!important}

  .game-shell{position:absolute!important;left:0!important;right:0!important;top:62px!important;bottom:0!important;height:auto!important;min-height:0!important;overflow:hidden!important}
  .workspace-panel,.game-workspace{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}

  /* One compact, always-visible zoom/control row. */
  .workspace-hud{
    position:absolute!important;z-index:23000!important;left:8px!important;right:8px!important;top:68px!important;bottom:auto!important;
    width:auto!important;max-width:none!important;height:48px!important;min-height:48px!important;padding:3px!important;
    display:grid!important;grid-template-columns:42px 42px minmax(58px,72px) 42px minmax(64px,1fr)!important;gap:5px!important;
    transform:none!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;
  }
  .workspace-hud .hud-spacer,#referenceBoardButton,#trayQuickButton{display:none!important}
  .workspace-hud #panButton{display:grid!important;width:42px!important;min-width:42px!important;font-size:0!important}
  .workspace-hud #panButton span{font-size:17px!important}
  .workspace-hud .hud-button{width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;padding:0 6px!important;border-radius:12px!important;background:#0b2a40!important;border:1px solid rgba(148,190,214,.16)!important;font-size:0!important}
  .workspace-hud #zoomOutButton,.workspace-hud #zoomInButton{font-size:0!important}
  .workspace-hud #zoomOutButton::before{content:'−';font-size:21px!important}.workspace-hud #zoomInButton::before{content:'+';font-size:22px!important}
  .workspace-hud .zoom-readout{font-size:11px!important}.workspace-hud .zoom-readout span{font-size:11px!important}
  .workspace-hud #toggleDocksButton{font-size:10px!important;display:flex!important;gap:4px!important;justify-content:center!important}.workspace-hud #toggleDocksButton span{font-size:16px!important}

  /* Board fills every available pixel between controls and the bottom game dock. */
  .board-stage{
    position:absolute!important;z-index:10!important;left:10px!important;right:10px!important;top:122px!important;
    bottom:238px!important;inset:122px 10px 238px 10px!important;
    width:auto!important;height:auto!important;overflow:visible!important;border-radius:18px!important;
  }
  .game-workspace.tray-collapsed .board-stage{bottom:72px!important;inset:122px 10px 72px 10px!important}

  /* Tool bar is fixed to the game viewport and never becomes a separate scrolling layer. */
  .play-tools{
    position:absolute!important;z-index:22500!important;left:7px!important;right:7px!important;top:auto!important;bottom:174px!important;
    width:auto!important;height:58px!important;max-width:none!important;padding:4px!important;gap:3px!important;
    display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;overflow:visible!important;
    border:1px solid rgba(125,176,205,.16)!important;border-radius:16px!important;background:#08243a!important;box-shadow:0 12px 26px rgba(0,0,0,.22)!important;
  }
  .play-tools .play-tool{display:flex!important;min-width:0!important;width:auto!important;height:48px!important;min-height:48px!important;padding:4px 1px!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;border-radius:11px!important}
  .play-tools .play-tool:nth-child(4),.play-tools .play-tool:nth-child(5){display:flex!important}
  .play-tools .play-tool span{font-size:15px!important}.play-tools .play-tool strong{font-size:7px!important;line-height:1!important;white-space:nowrap!important}.play-tools .play-tool small{position:absolute!important;right:2px!important;top:1px!important;min-width:18px!important;height:18px!important;font-size:8px!important}
  .game-workspace.tray-collapsed .play-tools{bottom:8px!important}

  /* Bottom tray remains anchored; it does not scroll independently from the game. */
  .piece-tray{
    position:absolute!important;z-index:22000!important;left:7px!important;right:7px!important;bottom:7px!important;top:auto!important;
    width:auto!important;height:162px!important;min-height:162px!important;
    display:grid!important;grid-template-columns:1fr!important;grid-template-rows:44px 34px minmax(80px,1fr)!important;
    border-radius:17px!important;overflow:hidden!important;background:#071f31!important;
  }
  .piece-tray .tray-header{grid-column:1!important;grid-row:1!important;height:44px!important;min-height:44px!important;padding:5px 7px 5px 10px!important}
  .piece-tray .tray-title{display:flex!important;min-width:0!important}.piece-tray .tray-title strong{font-size:12px!important}.piece-tray .tray-title small{display:none!important}
  .piece-tray .tray-actions{width:auto!important;flex:0 0 auto!important;gap:4px!important}
  .piece-tray #spreadPiecesButton,.piece-tray #dockGatherButton,.piece-tray .piece-size-control,.piece-tray .tray-row-switch{display:none!important}
  .piece-tray .tray-collapse{display:grid!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important}
  .piece-tray .tray-tabs{position:static!important;grid-column:1!important;grid-row:2!important;left:auto!important;right:auto!important;top:auto!important;width:100%!important;height:34px!important;min-height:34px!important;padding:2px 42px 2px 5px!important;gap:3px!important;border-top:1px solid rgba(148,190,214,.08)!important;border-bottom:1px solid rgba(148,190,214,.08)!important;overflow-x:auto!important;overflow-y:hidden!important}
  .piece-tray .tray-tab{height:28px!important;min-height:28px!important;padding:0 8px!important;font-size:8px!important}
  .piece-tray .tray-pieces-layer{grid-column:1!important;grid-row:3!important;min-height:0!important;padding:4px 34px 4px 5px!important;overflow:hidden!important}
  .piece-tray .tray-navigation{position:absolute!important;z-index:8!important;right:4px!important;top:48px!important;min-height:30px!important;padding:0!important;gap:1px!important;border:0!important;background:#071f31!important}.piece-tray .tray-navigation button{width:28px!important;height:28px!important}.piece-tray .tray-navigation span{display:none!important}
  .game-workspace.tray-two-rows .piece-tray{height:218px!important;min-height:218px!important;grid-template-rows:44px 34px minmax(136px,1fr)!important}.game-workspace.tray-two-rows .play-tools{bottom:230px!important}.game-workspace.tray-two-rows .board-stage{bottom:294px!important;inset:122px 10px 294px 10px!important}
  .game-workspace.tray-collapsed .piece-tray{display:none!important}

  /* Side cards never occupy mobile layout. */
  .game-side{display:none!important}

  /* Modals remain touch-scrollable but do not leave invisible backdrops over the game. */
  .modal[open]{position:fixed!important;z-index:200000!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;padding:8px!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
  .modal[open]>.modal-card{width:100%!important;max-width:100%!important;max-height:none!important;margin:auto 0!important;overflow:visible!important}
  .social-card{padding:18px 12px!important}.social-list{min-height:0!important}.social-player{grid-template-columns:40px minmax(0,1fr)!important;gap:9px!important}.social-player-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.social-action{min-height:42px!important;width:100%!important}
}

@media (max-width:430px){
  .workspace-hud{grid-template-columns:38px 38px 58px 38px minmax(58px,1fr)!important;gap:3px!important}
  .workspace-hud .hud-button{height:40px!important;min-height:40px!important}
  .play-tools{left:4px!important;right:4px!important;gap:2px!important;padding:3px!important}.play-tools .play-tool{height:49px!important;min-height:49px!important}.play-tools .play-tool strong{font-size:6.5px!important}
  .piece-tray{left:5px!important;right:5px!important}
}


/* v1.18.1 - Focus mode always has a way back */
.focus-exit-button{display:none;position:absolute;z-index:90;top:18px;left:18px;min-height:44px;padding:0 16px;border:1px solid rgba(244,182,79,.55);border-radius:14px;background:rgba(5,24,38,.94);color:#ffd06b;font-weight:850;box-shadow:0 10px 30px rgba(0,0,0,.28);cursor:pointer;backdrop-filter:blur(10px)}
.game-shell.focus-mode .focus-exit-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.game-shell.focus-mode .workspace-hud{padding-left:150px!important}
@media(max-width:820px){.focus-exit-button{top:10px;left:10px;min-height:40px;padding:0 12px;font-size:12px}.game-shell.focus-mode .workspace-hud{padding-left:10px!important;margin-top:52px!important}}


/* ===== v1.19.0 mobile stability + true two-player live table ===== */
.remote-drag-ghost-layer{position:absolute;inset:0;z-index:99988;pointer-events:none;overflow:hidden}.remote-drag-ghost{position:absolute!important;z-index:2!important;opacity:.78!important;filter:drop-shadow(0 0 4px #55e8b4) drop-shadow(0 0 12px rgba(53,225,165,.72))!important;outline:2px solid rgba(78,231,178,.9);outline-offset:2px;pointer-events:none!important}.remote-player-cursor{z-index:99993!important}

@media(max-width:820px){
  html{overflow-x:hidden!important}body{overflow-x:hidden!important}
  .modal{padding:8px!important;overflow:hidden!important;place-items:center!important;overscroll-behavior:contain!important}
  .modal[open]>.modal-card{width:min(100%,720px)!important;max-width:100%!important;max-height:calc(100dvh - 16px)!important;margin:0!important;padding:18px 14px 20px!important;overflow-x:hidden!important;overflow-y:auto!important;border-radius:20px!important;-webkit-overflow-scrolling:touch!important}
  .modal-close{position:sticky!important;float:right!important;top:0!important;right:0!important;z-index:30!important;margin:0 0 -42px auto!important;width:42px!important;height:42px!important;background:#0b2c43!important;box-shadow:0 0 0 4px rgba(4,23,36,.75)!important}
  #profileModal .profile-card{display:block!important}
  #profileModal .profile-head{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;padding:4px 48px 0 2px!important;width:100%!important;overflow:hidden!important}
  #profileModal .profile-avatar{width:64px!important;height:64px!important;border-radius:18px!important;font-size:26px!important}
  #profileModal .profile-head>div:nth-child(2){min-width:0!important;overflow:hidden!important}
  #profileModal .profile-head h2{font-size:clamp(27px,8vw,38px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #profileModal .profile-head p{font-size:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #profileModal .profile-badges{grid-column:1/-1!important;width:100%!important;max-width:100%!important;display:flex!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:5px 0 2px!important;scrollbar-width:none!important}
  #profileModal .profile-badges>*{flex:0 0 auto!important;max-width:none!important;white-space:nowrap!important}
  #profileModal .profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:14px 0!important}
  #profileModal .profile-stats>div{min-width:0!important;padding:12px 9px!important}
  #profileModal .profile-stats strong{font-size:25px!important}#profileModal .profile-stats small{font-size:10px!important;white-space:nowrap!important}
  #profileModal .profile-tabs{width:100%!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;padding:4px!important}
  #profileModal .profile-tabs button{flex:0 0 auto!important;min-width:max-content!important;padding:0 13px!important}
  #profileModal .profile-pane{min-height:120px!important;max-height:none!important;overflow:visible!important}
  #profileModal .profile-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.profile-actions .button{width:100%!important}

  #socialModal .social-card,#inviteModal .invite-card{width:100%!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto!important;overflow-x:hidden!important}
  #socialModal .modal-heading{padding-right:42px!important}#socialModal .modal-heading h2{font-size:25px!important}
  #socialModal .room-rules{font-size:10px!important;padding:10px!important;gap:4px!important}
  #socialModal .social-tabs{position:sticky!important;top:0!important;z-index:8!important;background:#08243a!important;overflow-x:auto!important;scrollbar-width:none!important}
  #socialModal .social-tabs button{flex:0 0 auto!important;min-width:105px!important}
  #socialModal .social-search{position:sticky!important;top:51px!important;z-index:7!important;background:#08283f!important}
  #socialModal .social-pane{max-height:46dvh!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}
  #socialModal .social-player{width:100%!important;grid-template-columns:40px minmax(0,1fr)!important;overflow:hidden!important}
  #socialModal .social-player-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
  #socialModal .social-action{min-width:0!important;width:100%!important}
  #inviteModal .completion-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}

  body.game-open{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important;touch-action:none!important;background:#041522!important}
  body.game-open .game-view{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important}
  body.game-open .game-header{position:absolute!important;z-index:120!important;left:0!important;right:0!important;top:0!important;height:56px!important;min-height:56px!important;padding:6px 8px!important;display:flex!important;align-items:center!important;gap:7px!important;background:#031522!important;border-bottom:1px solid rgba(244,182,79,.14)!important}
  .game-header-left{display:flex!important;min-width:0!important;flex:1 1 auto!important;gap:6px!important}.game-header .game-brand{display:none!important}.game-header .game-back{display:grid!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important}.game-header .header-puzzle-name{display:flex!important;min-width:0!important;flex:1!important}.game-header .header-puzzle-name strong{font-size:12px!important}.game-header .header-puzzle-name small{font-size:7px!important}
  .game-header-actions{display:flex!important;flex:0 0 auto!important;gap:4px!important}.game-header-actions .game-action{display:none!important}.game-header-actions #saveProgressButton{display:grid!important;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;font-size:0!important}.game-header-actions #saveProgressButton::before{content:'✓';font-size:18px!important}.game-header-actions .profile-button{display:grid!important;width:40px!important;height:40px!important;min-width:40px!important}
  .game-header-stats{position:absolute!important;z-index:118!important;left:8px!important;right:8px!important;top:61px!important;height:50px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important;padding:3px!important;border:1px solid rgba(144,188,214,.14)!important;border-radius:14px!important;background:#09253a!important;box-shadow:0 8px 28px rgba(0,0,0,.2)!important}.game-header-stats .header-stat{min-width:0!important;min-height:42px!important;height:42px!important;padding:4px 7px 8px!important;border-radius:10px!important}.game-header-stats .header-stat span{font-size:7px!important}.game-header-stats .header-stat strong{font-size:17px!important}.game-header-stats .primary-stat::before{left:7px!important;right:7px!important;bottom:5px!important;height:3px!important}.game-header-stats .primary-stat::after{left:7px!important;bottom:5px!important;height:3px!important;max-width:calc(100% - 14px)!important}
  .game-shell{position:absolute!important;inset:116px 0 0!important;width:100%!important;height:auto!important;overflow:hidden!important;background:#061f31!important}.workspace-panel{position:absolute!important;inset:0!important;height:auto!important;min-height:0!important}.game-workspace{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;touch-action:none!important}
  .workspace-hud{position:absolute!important;z-index:90!important;top:7px!important;left:7px!important;right:7px!important;height:46px!important;min-height:46px!important;margin:0!important;padding:3px!important;display:grid!important;grid-template-columns:38px 38px 56px 38px minmax(62px,1fr)!important;gap:3px!important;transform:none!important;background:rgba(5,25,40,.94)!important;border-radius:14px!important;overflow:hidden!important}.workspace-hud .hud-spacer,#referenceBoardButton,#trayQuickButton{display:none!important}.workspace-hud .hud-button{width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 4px!important;border-radius:11px!important}.workspace-hud #panButton{display:grid!important;font-size:0!important}.workspace-hud #panButton span{font-size:16px!important}.workspace-hud #zoomOutButton,.workspace-hud #zoomInButton{font-size:0!important}.workspace-hud #zoomOutButton::before{content:'−';font-size:21px!important}.workspace-hud #zoomInButton::before{content:'+';font-size:22px!important}.workspace-hud .zoom-readout,.workspace-hud .zoom-readout span{font-size:11px!important}.workspace-hud #toggleDocksButton{display:flex!important;justify-content:center!important;gap:3px!important;font-size:9px!important}.workspace-hud #toggleDocksButton span{font-size:14px!important}
  .board-stage{position:absolute!important;z-index:2!important;left:8px!important;right:8px!important;top:60px!important;bottom:238px!important;inset:60px 8px 238px 8px!important;min-width:0!important;min-height:0!important;margin:0!important;border-radius:18px!important;overflow:visible!important}.puzzle-board{max-width:100%!important;max-height:100%!important}
  .play-tools{position:absolute!important;z-index:94!important;left:7px!important;right:7px!important;bottom:180px!important;height:52px!important;min-height:52px!important;width:auto!important;max-width:none!important;padding:3px!important;display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(58px,1fr)!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;background:#08263b!important;border:1px solid rgba(144,188,214,.15)!important;border-radius:14px!important}.play-tools .play-tool{display:flex!important;width:auto!important;min-width:58px!important;height:44px!important;min-height:44px!important;padding:3px 4px!important;flex-direction:column!important;gap:1px!important;border-radius:10px!important;scroll-snap-align:start!important}.play-tools .play-tool span{font-size:14px!important}.play-tools .play-tool strong{font-size:7px!important;line-height:1!important}.play-tools .play-tool small{right:1px!important;top:1px!important;min-width:17px!important;height:17px!important;font-size:8px!important}
  .piece-tray{position:absolute!important;z-index:92!important;left:7px!important;right:7px!important;bottom:7px!important;width:auto!important;height:166px!important;min-height:166px!important;margin:0!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:42px 32px minmax(88px,1fr)!important;border-radius:16px!important;overflow:hidden!important}.piece-tray .tray-header{grid-column:1!important;grid-row:1!important;height:42px!important;min-height:42px!important;padding:4px 44px 4px 9px!important}.piece-tray .tray-title{min-width:0!important}.piece-tray .tray-title strong{font-size:12px!important}.piece-tray .tray-title small,.piece-tray .tray-actions>*:not(.tray-collapse){display:none!important}.piece-tray .tray-collapse{position:absolute!important;right:5px!important;top:4px!important;display:grid!important;width:34px!important;min-width:34px!important;height:34px!important}.piece-tray .tray-tabs{position:static!important;grid-column:1!important;grid-row:2!important;width:100%!important;height:32px!important;min-height:32px!important;padding:2px 32px 2px 5px!important;display:flex!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}.piece-tray .tray-tab{flex:0 0 auto!important;height:27px!important;min-height:27px!important;padding:0 8px!important;font-size:8px!important}.piece-tray .tray-pieces-layer{grid-column:1!important;grid-row:3!important;min-height:0!important;padding:4px 30px 4px 5px!important;overflow:hidden!important}.piece-tray .tray-navigation{position:absolute!important;right:3px!important;top:76px!important;display:grid!important;gap:1px!important;padding:0!important;border:0!important;background:#071f31!important}.piece-tray .tray-navigation button{width:27px!important;height:27px!important}.piece-tray .tray-navigation span{display:none!important}.tray-guide{display:none!important}
  .game-workspace.tray-collapsed .piece-tray{display:none!important}.game-workspace.tray-collapsed .play-tools{bottom:8px!important}.game-workspace.tray-collapsed .board-stage{bottom:67px!important;inset:60px 8px 67px 8px!important}.tray-reopen{z-index:96!important;right:8px!important;bottom:66px!important}
  .game-side,.game-bottom-bar{display:none!important}.selection-toolbar{top:58px!important;left:7px!important;right:7px!important;max-width:none!important}.focus-exit-button{top:59px!important;left:8px!important}.remote-player-cursor{max-width:150px!important;transform:translate(-10px,-10px) scale(.82)!important;transform-origin:top left!important}
}

@media(max-width:390px){
  #profileModal .profile-head{grid-template-columns:56px minmax(0,1fr)!important}#profileModal .profile-avatar{width:56px!important;height:56px!important}.profile-stats small{font-size:9px!important}.game-header-stats{left:5px!important;right:5px!important}.workspace-hud{left:5px!important;right:5px!important;grid-template-columns:36px 36px 52px 36px minmax(58px,1fr)!important}.play-tools{left:5px!important;right:5px!important}.piece-tray{left:5px!important;right:5px!important}
}


/* ===== v1.20.0 live room management ===== */
.social-active-room{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin:16px 0;padding:18px;border:1px solid rgba(86,222,170,.26);border-radius:18px;background:linear-gradient(135deg,rgba(29,95,78,.22),rgba(8,34,51,.76));box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)}.social-active-room[hidden]{display:none!important}.social-active-room>div:first-child{display:grid;gap:5px}.social-active-room strong{font-size:18px}.social-active-room small{color:#9fb5c2}.social-active-room-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.social-action.danger,.danger-room-button{border-color:rgba(255,104,104,.35)!important;color:#ffb2b2!important;background:rgba(118,30,35,.18)!important}.social-player-actions{gap:7px!important}.social-player-actions .social-action{white-space:nowrap}.remote-drag-ghost-layer{overflow:visible!important}.remote-drag-ghost{opacity:.9!important;outline:3px solid #55e8b4!important;box-shadow:0 0 0 4px rgba(56,225,166,.13),0 12px 28px rgba(0,0,0,.38)!important}.remote-player-cursor{transition:left .08s linear,top .08s linear!important}.multiplayer-card .room-participants{min-height:48px}
@media(max-width:820px){.social-active-room{grid-template-columns:1fr;padding:14px}.social-active-room-actions{justify-content:stretch}.social-active-room-actions .social-action{flex:1 1 calc(50% - 5px);min-height:44px}.social-player{grid-template-columns:auto minmax(0,1fr)!important}.social-player-actions{grid-column:1/-1;width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.social-player-actions .social-action{width:100%;min-width:0;white-space:normal}.remote-player-cursor{z-index:100050!important}}

.puzzle-piece.remote-drag-source{opacity:.12!important;filter:grayscale(.35)!important}

/* ===== v1.21.0: two-player room UX + board-coordinate live drag ===== */
.social-room-pane{display:grid;gap:14px}.social-room-pane[hidden]{display:none!important}.social-room-hero{display:grid;grid-template-columns:1fr;align-items:center;gap:18px;padding:18px;border:1px solid rgba(75,225,169,.23);border-radius:20px;background:linear-gradient(135deg,rgba(20,78,70,.26),rgba(6,30,47,.88));box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)}.social-room-hero[hidden]{display:none!important}.social-room-hero-copy{display:grid;gap:7px}.social-room-hero-copy h3{margin:0;color:#fff;font-size:22px;line-height:1.12}.social-room-hero-copy p{margin:0;max-width:620px;color:#adc1cc;line-height:1.5}.room-sync-status{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-top:3px;padding:7px 10px;border:1px solid rgba(139,183,209,.16);border-radius:999px;color:#9fb6c3;font-size:12px;font-weight:800;background:rgba(3,19,31,.42)}.room-sync-status i{width:8px;height:8px;border-radius:50%;background:#627d8d;box-shadow:0 0 0 4px rgba(98,125,141,.10)}.room-sync-status.live{color:#8ff0c8;border-color:rgba(73,223,166,.25)}.room-sync-status.live i{background:#42dca1;box-shadow:0 0 0 4px rgba(66,220,161,.12),0 0 14px rgba(66,220,161,.45)}.social-room-seats{display:flex;align-items:center;gap:8px}.room-seat{display:flex;min-width:76px;height:76px;padding:8px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid rgba(139,183,209,.17);border-radius:18px;background:rgba(4,25,40,.72);color:#d9e7ed;font-size:20px;font-weight:950}.room-seat b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#f4c45e,#a67636);color:#071b29;font-size:12px}.room-seat small{max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:800;color:#c0d0d8}.room-seat.empty{border-style:dashed;color:#6f8998;background:rgba(4,25,40,.34)}.social-room-friends-head{display:flex;align-items:end;justify-content:space-between;gap:12px;padding-top:3px}.social-room-friends-head>div{display:grid;gap:3px}.social-room-friends-head strong{font-size:14px}.social-room-friends-head small{color:#8ea8b7;font-size:11px}.social-tabs{grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.social-tabs button{min-width:0}.remote-drag-ghost-layer.board-logical-ghost-layer{position:absolute!important;inset:0!important;overflow:visible!important;pointer-events:none!important;z-index:99990!important}.remote-drag-ghost-layer.board-logical-ghost-layer .remote-drag-ghost{transition:left .065s linear,top .065s linear!important;will-change:left,top;opacity:.94!important;outline:3px solid #55e8b4!important;filter:drop-shadow(0 0 5px #55e8b4) drop-shadow(0 10px 18px rgba(0,0,0,.45))!important}.puzzle-piece.remote-drag-source{opacity:.07!important;filter:grayscale(.5)!important}.multiplayer-card #roomLiveDot.active{background:#47dfa7!important;box-shadow:0 0 0 4px rgba(71,223,167,.12),0 0 16px rgba(71,223,167,.4)}.multiplayer-card #roomLiveDot.stalled{background:#e2b64d!important;box-shadow:0 0 0 4px rgba(226,182,77,.16)!important;animation:yapbozRoomStalledPulse 1.1s ease-in-out infinite}@keyframes yapbozRoomStalledPulse{0%,100%{opacity:1}50%{opacity:.45}}
@media(max-width:820px){.social-tabs{display:flex;overflow-x:auto;scrollbar-width:none}.social-tabs::-webkit-scrollbar{display:none}.social-tabs button{flex:0 0 auto;min-width:126px;padding-inline:10px}.social-room-hero{grid-template-columns:1fr;padding:14px}.social-room-seats{justify-content:flex-start}.room-seat{min-width:70px;height:70px}.social-room-friends-head{align-items:flex-start}.social-room-friends-head small{line-height:1.35}.social-active-room-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}.social-active-room-actions .social-action{min-width:0!important}.social-room-pane .social-player-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.social-room-pane .social-action{white-space:normal!important}}


/* ===== v1.22.0 admin reset + scoring audit + replay ===== */
.admin-score-audit-grid{display:grid;grid-template-columns:160px 160px minmax(280px,1fr) auto;gap:12px;align-items:stretch}.admin-score-audit-grid>article{display:flex;flex-direction:column;justify-content:center;min-height:82px;padding:14px 16px;border:1px solid rgba(172,207,228,.12);border-radius:16px;background:rgba(255,255,255,.025)}.admin-score-audit-grid>article strong{font-size:24px}.admin-score-audit-grid>article small{margin-top:5px;color:var(--muted);font-size:10px}.admin-score-audit-grid>article.formula strong{font-size:12px;line-height:1.45}.admin-score-audit-grid #adminScoreMismatchCount.has-error{color:#ff9a7d}.admin-user-reset-panel{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);gap:16px;margin:16px 0 20px;padding:16px;border:1px solid rgba(244,182,79,.18);border-radius:18px;background:rgba(244,182,79,.035)}.admin-user-reset-panel h3{margin:5px 0 6px;font-size:16px}.admin-user-reset-panel p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.admin-user-reset-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-user-reset-actions button{min-height:42px;padding:8px 11px;border:1px solid rgba(172,207,228,.14);border-radius:12px;background:#0a2a40;color:#dce9ef;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.admin-user-reset-actions button:hover{border-color:rgba(244,182,79,.4);color:#ffd274}.admin-user-reset-actions button.danger{border-color:rgba(245,100,100,.32);background:rgba(150,30,30,.14);color:#ffb0a0}.completion-actions-three{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.completion-actions-three .button{width:100%;min-width:0;white-space:normal;text-align:center}.admin-user-detail-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:900px){.admin-score-audit-grid{grid-template-columns:1fr 1fr}.admin-score-audit-grid>article.formula,.admin-score-audit-grid>.button{grid-column:1/-1}.admin-user-reset-panel{grid-template-columns:1fr}.completion-actions-three{grid-template-columns:1fr}.admin-user-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* ===== v1.23.0 membership/social/admin/mobile stability ===== */
.profile-friends-pane{padding-top:4px}.profile-friend-search{display:flex;align-items:center;gap:8px;padding:9px 12px;margin-bottom:12px;border:1px solid var(--line);border-radius:14px;background:#0a263a}.profile-friend-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#fff;font:inherit}.profile-friend-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-friend-grid>section{min-width:0;padding:12px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.018)}.profile-friend-grid>section header{display:flex;flex-direction:column;gap:3px;margin-bottom:8px}.profile-friend-grid>section header strong{font-size:12px}.profile-friend-grid>section header small{color:var(--muted);font-size:9px}.profile-social-list{display:grid;gap:7px}.profile-social-list .social-player{padding:9px}.profile-social-list .social-player-actions{flex-wrap:wrap}.profile-tabs button span{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:rgba(255,191,75,.12);color:#ffd064;font-size:9px}

@media(max-width:820px){
  html,body{max-width:100%;overflow-x:hidden!important}
  dialog.modal{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:6px!important;border:0!important;background:rgba(1,12,20,.78)!important;overflow:hidden!important}
  dialog.modal::backdrop{background:rgba(0,0,0,.62)}
  dialog.modal>.modal-card{width:100%!important;max-width:none!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;margin:0!important;border-radius:22px!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;padding:18px 14px calc(22px + env(safe-area-inset-bottom))!important}
  #profileModal .profile-card,#socialModal .social-card{display:block!important}
  #profileModal .profile-head{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;padding-right:50px!important}
  #profileModal .profile-badges{grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;max-width:100%!important;overflow:visible!important}
  #profileModal .profile-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.profile-stats>div{min-width:0!important;padding:12px 8px!important}.profile-stats strong{font-size:24px!important}.profile-stats small{font-size:9px!important}
  #profileModal .profile-tabs{position:sticky!important;top:-18px!important;z-index:6!important;margin:10px -4px 12px!important;padding:5px!important;background:#0a263a!important;border-color:rgba(141,183,207,.22)!important}.profile-tabs button{font-size:10px!important;padding:0 11px!important;min-height:40px!important}
  .profile-friend-grid{grid-template-columns:1fr!important}.profile-friend-grid>section{padding:10px!important}.profile-social-list .social-player{grid-template-columns:38px minmax(0,1fr)!important}.profile-social-list .social-player-actions{grid-column:1/-1!important;width:100%!important}.profile-social-list .social-action{flex:1 1 auto!important;min-height:38px!important}
  #socialModal .social-tabs{display:flex!important;overflow-x:auto!important;scrollbar-width:none!important;gap:5px!important}.social-tabs button{flex:0 0 auto!important;white-space:nowrap!important;min-height:42px!important}.social-search{position:sticky!important;top:-18px!important;z-index:5!important;background:#0a263a!important}.social-player{grid-template-columns:40px minmax(0,1fr)!important;gap:9px!important}.social-player-actions{grid-column:1/-1!important;width:100%!important}.social-action{min-height:40px!important}

  body.game-open{overflow:hidden!important;overscroll-behavior:none!important}
  body.game-open #gameView{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;overflow:hidden!important;background:#061a2c!important}
  body.game-open .game-header{position:absolute!important;z-index:130!important;left:0!important;right:0!important;top:0!important;height:104px!important;min-height:104px!important;padding:6px 7px 48px!important;display:flex!important;align-items:center!important;gap:6px!important;background:#031522!important;border-bottom:1px solid rgba(244,182,79,.16)!important}
  .game-header-left{display:flex!important;min-width:0!important;flex:1 1 auto!important;gap:6px!important}.game-header .game-brand{display:none!important}.game-header .game-back{display:grid!important;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important}.game-header .header-puzzle-name{min-width:0!important;flex:1!important}.game-header .header-puzzle-name strong{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.game-header .header-puzzle-name small{font-size:7px!important}
  .game-header-actions{position:absolute!important;left:7px!important;right:7px!important;bottom:5px!important;height:38px!important;display:flex!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}.game-header-actions .game-action{display:flex!important;flex:0 0 auto!important;min-height:36px!important;height:36px!important;padding:0 11px!important;border-radius:11px!important;font-size:9px!important;white-space:nowrap!important}.game-header-actions .profile-button{position:absolute!important;right:0!important;top:-45px!important;width:40px!important;height:40px!important;min-width:40px!important}
  .game-header-stats{position:absolute!important;z-index:126!important;left:7px!important;right:7px!important;top:109px!important;height:48px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;padding:3px!important;border:1px solid rgba(144,188,214,.16)!important;border-radius:13px!important;background:#09253a!important}.game-header-stats .header-stat{height:40px!important;min-height:40px!important;padding:4px 7px 8px!important}.game-header-stats .header-stat span{font-size:7px!important}.game-header-stats .header-stat strong{font-size:17px!important}.game-header-stats .primary-stat::before,.game-header-stats .primary-stat::after{bottom:4px!important;height:3px!important}
  .game-shell{position:absolute!important;inset:162px 0 0!important;height:auto!important;min-height:0!important;overflow:hidden!important}.workspace-panel,.game-workspace{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;min-height:0!important;overflow:hidden!important}
  .workspace-hud{position:absolute!important;z-index:100!important;top:6px!important;left:7px!important;right:7px!important;height:44px!important;min-height:44px!important;padding:3px!important;display:flex!important;align-items:center!important;gap:4px!important;transform:none!important;overflow-x:auto!important;overflow-y:hidden!important;background:rgba(5,25,40,.96)!important;border:1px solid rgba(144,188,214,.15)!important;border-radius:13px!important}.workspace-hud .hud-spacer{display:none!important}.workspace-hud .hud-button{flex:0 0 auto!important;height:38px!important;min-height:38px!important;min-width:38px!important;padding:0 8px!important;border-radius:10px!important;font-size:9px!important}.workspace-hud .zoom-readout{min-width:58px!important}.workspace-hud #toggleDocksButton{min-width:68px!important}.workspace-hud #trayQuickButton{display:flex!important;min-width:58px!important}.workspace-hud #referenceBoardButton{display:none!important}
  .board-stage{position:absolute!important;z-index:20!important;left:7px!important;right:7px!important;top:56px!important;bottom:226px!important;inset:56px 7px 226px 7px!important;min-height:0!important;border-radius:16px!important;overflow:visible!important}.game-workspace.tray-collapsed .board-stage{bottom:66px!important;inset:56px 7px 66px 7px!important}
  .play-tools{position:absolute!important;z-index:102!important;left:7px!important;right:7px!important;bottom:168px!important;width:auto!important;height:52px!important;min-height:52px!important;padding:3px!important;display:flex!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important;background:#09283d!important;border:1px solid rgba(144,188,214,.18)!important;border-radius:13px!important}.play-tools .play-tool{flex:0 0 64px!important;width:64px!important;min-width:64px!important;height:44px!important;min-height:44px!important;padding:3px 4px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;border-radius:10px!important}.play-tools .play-tool span{font-size:14px!important}.play-tools .play-tool strong{font-size:7px!important;line-height:1.05!important;white-space:nowrap!important}.play-tools .play-tool small{top:1px!important;right:1px!important;min-width:17px!important;height:17px!important;font-size:8px!important}.game-workspace.tray-collapsed .play-tools{bottom:8px!important}
  .piece-tray{position:absolute!important;z-index:98!important;left:7px!important;right:7px!important;bottom:7px!important;width:auto!important;height:155px!important;min-height:155px!important;margin:0!important;display:grid!important;grid-template-rows:40px 31px minmax(80px,1fr)!important;border-radius:15px!important;overflow:hidden!important}.piece-tray .tray-header{height:40px!important;min-height:40px!important;padding:4px 42px 4px 8px!important}.piece-tray .tray-title strong{font-size:11px!important}.piece-tray .tray-title small,.piece-tray .tray-actions>*:not(.tray-collapse){display:none!important}.piece-tray .tray-collapse{position:absolute!important;right:4px!important;top:3px!important;width:34px!important;height:34px!important;display:grid!important}.piece-tray .tray-tabs{height:31px!important;min-height:31px!important;padding:2px 31px 2px 4px!important;display:flex!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}.piece-tray .tray-tab{flex:0 0 auto!important;height:26px!important;min-height:26px!important;padding:0 8px!important;font-size:8px!important}.piece-tray .tray-pieces-layer{min-height:0!important;padding:4px 29px 4px 4px!important;overflow:hidden!important}.piece-tray .tray-navigation{right:3px!important;top:70px!important}.piece-tray .tray-navigation button{width:26px!important;height:26px!important}.piece-tray .tray-navigation span{display:none!important}.game-workspace.tray-two-rows .piece-tray{height:210px!important;min-height:210px!important;grid-template-rows:40px 31px minmax(135px,1fr)!important}.game-workspace.tray-two-rows .play-tools{bottom:223px!important}.game-workspace.tray-two-rows .board-stage{bottom:281px!important;inset:56px 7px 281px 7px!important}.game-workspace.tray-collapsed .piece-tray{display:none!important}
  .game-side{display:none!important}.game-bottom-bar{display:none!important}.focus-exit-button{z-index:140!important}
}
@media(max-width:390px){.game-header-actions .game-action{padding:0 9px!important}.workspace-hud .hud-button{padding:0 6px!important}.play-tools .play-tool{flex-basis:60px!important;width:60px!important;min-width:60px!important}}


/* ========================================================================== */
/* v1.23.0 — mobile control ergonomics + cross-device profile/social stability */
/* ========================================================================== */
@media(max-width:820px){
  /* Profile and social dialogs always stay inside the visual viewport. */
  #profileModal,#socialModal,#inviteModal{padding:4px!important;overflow:hidden!important}
  #profileModal>.modal-card,#socialModal>.modal-card,#inviteModal>.modal-card{box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
  #profileModal .profile-head>*{min-width:0!important}.profile-badges>*{max-width:100%!important;white-space:normal!important}
  #profileModal .profile-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:visible!important;width:100%!important}.profile-tabs button{min-width:0!important;padding:5px 3px!important;font-size:8px!important;line-height:1.15!important;white-space:normal!important}
  .profile-friend-search{position:sticky!important;top:31px!important;z-index:5!important;background:#0a263a!important;padding-top:5px!important}
  .profile-friend-search input{min-width:0!important;width:100%!important}
  .profile-social-list .social-player-info{min-width:0!important}.profile-social-list .social-player-info strong,.profile-social-list .social-player-info small{overflow:hidden!important;text-overflow:ellipsis!important}
  .profile-social-list .social-player-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}.profile-social-list .social-action{width:100%!important;min-width:0!important;padding:5px 6px!important;font-size:8px!important;white-space:normal!important}

  /* All seven play tools remain visible: no hidden last buttons, no overlapping. */
  .play-tools{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:3px!important;overflow:visible!important;height:58px!important;min-height:58px!important;padding:3px!important;bottom:164px!important}
  .play-tools .play-tool{width:auto!important;min-width:0!important;max-width:none!important;height:50px!important;min-height:50px!important;padding:3px 1px!important;gap:1px!important;overflow:visible!important}
  .play-tools .play-tool span{font-size:13px!important;line-height:1!important}.play-tools .play-tool strong{display:block!important;width:100%!important;font-size:6.4px!important;line-height:1.05!important;white-space:normal!important;text-align:center!important;overflow-wrap:normal!important;word-break:normal!important}.play-tools .play-tool small{min-width:15px!important;height:15px!important;font-size:7px!important}
  .game-workspace.tray-two-rows .play-tools{bottom:219px!important}.game-workspace.tray-collapsed .play-tools{bottom:7px!important}
  .board-stage{bottom:228px!important;inset:56px 7px 228px 7px!important}.game-workspace.tray-two-rows .board-stage{bottom:283px!important;inset:56px 7px 283px 7px!important}.game-workspace.tray-collapsed .board-stage{bottom:70px!important;inset:56px 7px 70px 7px!important}
  .workspace-hud{max-width:calc(100vw - 14px)!important}.workspace-hud>*{min-width:0}.workspace-hud #panButton{min-width:42px!important;font-size:0!important}.workspace-hud #panButton span{font-size:15px!important}.workspace-hud #toggleDocksButton{min-width:58px!important}.workspace-hud #trayQuickButton{min-width:50px!important}
  .game-header-actions{padding-right:0!important}.game-header-actions .game-action{max-width:none!important}
}
@media(max-width:360px){
  .play-tools .play-tool strong{font-size:5.8px!important}.play-tools{gap:2px!important}.workspace-hud #toggleDocksButton{min-width:52px!important;font-size:8px!important}.workspace-hud #trayQuickButton{min-width:46px!important;font-size:8px!important}
}
@media(max-width:820px){
  .game-header-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:visible!important;gap:4px!important}
  .game-header-actions .game-action{width:auto!important;min-width:0!important;max-width:none!important;padding:0 4px!important;font-size:7.5px!important;justify-content:center!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .game-header-actions .profile-button{display:grid!important}
}

/* ========================================================================== */
/* v1.24.0 — mobile-first puzzle play: bottom drawer + virtual tabletop       */
/* ========================================================================== */
.mobile-game-topbar,.mobile-quick-tools,.mobile-tools-sheet,.mobile-game-coach{display:none}

@media(max-width:820px){
  body.game-open{height:100dvh!important;overflow:hidden!important;overscroll-behavior:none!important}
  .game-view{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;background:#061a29!important;touch-action:none!important}
  .game-header{display:none!important}
  .game-shell{--mobile-drawer-height:clamp(260px,46dvh,390px);position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
  .workspace-panel,.game-workspace{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;padding:0!important;touch-action:none!important;background:radial-gradient(circle at 50% 36%,#163e5b 0%,#0a2a41 47%,#041522 100%)!important}

  /* Desktop controls are replaced by a dedicated mobile control surface. */
  .workspace-hud,.play-tools,.game-bottom-bar,.game-side{display:none!important}

  .mobile-game-topbar{display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;align-items:center!important;gap:8px!important;position:absolute!important;z-index:32000!important;left:8px!important;right:8px!important;top:calc(6px + env(safe-area-inset-top))!important;height:52px!important;padding:5px!important;border:1px solid rgba(143,190,219,.15)!important;border-radius:15px!important;background:rgba(5,24,38,.97)!important;box-shadow:0 10px 26px rgba(0,0,0,.25)!important}
  .mobile-game-back,.mobile-game-more{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:12px!important;background:#0a2a40!important;color:#f4c669!important;font-size:19px!important;font-weight:900!important;display:grid!important;place-items:center!important;padding:0!important}
  .mobile-game-more{font-size:15px!important;letter-spacing:2px!important}
  .mobile-game-title{min-width:0!important;text-align:center!important;line-height:1.05!important}
  .mobile-game-title strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#f7fbff!important;font-size:12px!important;font-weight:900!important}
  .mobile-game-title small{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;margin-top:4px!important;color:#9eb5c4!important;font-size:8.5px!important;font-weight:800!important;white-space:nowrap!important}
  .mobile-game-title small span:first-child{color:#f0bc57!important}.mobile-game-title small i{font-style:normal!important;opacity:.55!important}

  /* The puzzle board is calculated by JS from the actual remaining free area. */
  .board-stage{position:absolute!important;right:auto!important;bottom:auto!important;inset:auto!important;min-width:0!important;min-height:0!important;overflow:visible!important;border-radius:15px!important;transform-origin:center center!important;touch-action:none!important}
  .puzzle-board,.board-pieces-layer{overflow:visible!important}
  .board-surface,.board-reference{overflow:hidden!important;border-radius:15px!important}
  .game-workspace.mobile-table-mode .board-stage{box-shadow:0 0 0 4px rgba(244,184,70,.05),0 20px 50px rgba(0,0,0,.3)!important}
  .game-workspace.mobile-panning{cursor:grabbing!important}

  /* Only three always-visible controls. */
  .mobile-quick-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;position:absolute!important;z-index:30020!important;left:8px!important;right:8px!important;bottom:calc(64px + env(safe-area-inset-bottom))!important;height:52px!important;transition:bottom .2s ease!important}
  .game-workspace.mobile-drawer-open .mobile-quick-tools{bottom:calc(var(--mobile-drawer-height) + 8px + env(safe-area-inset-bottom))!important}
  .mobile-quick-tool{position:relative!important;min-width:0!important;height:52px!important;border:1px solid rgba(143,190,219,.16)!important;border-radius:14px!important;background:#09283d!important;color:#e8f0f5!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:0 8px!important;font-size:11px!important;font-weight:900!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important}
  .mobile-quick-tool.primary{border-color:rgba(240,187,83,.42)!important;background:linear-gradient(180deg,rgba(240,187,83,.12),#09283d)!important;color:#ffd16a!important}
  .mobile-quick-tool.active{border-color:rgba(240,187,83,.62)!important;color:#ffd16a!important;background:rgba(240,187,83,.11)!important}
  .mobile-quick-tool span{font-size:16px!important;line-height:1!important}.mobile-quick-tool strong{font-size:9px!important;white-space:nowrap!important}.mobile-quick-tool small{position:absolute!important;right:5px!important;top:4px!important;min-width:17px!important;height:17px!important;border-radius:999px!important;background:#e9b34c!important;color:#082238!important;display:grid!important;place-items:center!important;font-size:8px!important;font-weight:950!important}
  .mobile-quick-tool.disabled{opacity:.55!important}

  /* Closed drawer handle: one obvious affordance instead of a permanent strip. */
  .tray-reopen{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;position:absolute!important;z-index:30030!important;left:8px!important;right:8px!important;bottom:calc(7px + env(safe-area-inset-bottom))!important;width:auto!important;min-width:0!important;height:50px!important;padding:0 14px!important;border:1px solid rgba(240,187,83,.38)!important;border-radius:15px!important;background:#08283e!important;color:#f6ca71!important;box-shadow:0 10px 28px rgba(0,0,0,.25)!important;font-size:11px!important;font-weight:950!important;letter-spacing:.01em!important}
  .tray-reopen[hidden]{display:none!important}
  .tray-reopen-icon{font-size:17px!important}.tray-reopen b{margin-left:3px!important;font-size:16px!important;color:#f6ca71!important}

  /* Bottom-sheet piece drawer. */
  .piece-tray{position:absolute!important;z-index:30010!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:calc(var(--mobile-drawer-height) + env(safe-area-inset-bottom))!important;min-height:0!important;margin:0!important;padding:0 8px env(safe-area-inset-bottom)!important;display:grid!important;grid-template-rows:88px 38px minmax(0,1fr)!important;border:1px solid rgba(145,191,218,.17)!important;border-left:0!important;border-right:0!important;border-bottom:0!important;border-radius:22px 22px 0 0!important;background:#071f31!important;box-shadow:0 -18px 48px rgba(0,0,0,.38)!important;overflow:hidden!important;transform:none!important}
  .game-workspace.tray-collapsed .piece-tray{display:none!important}
  .piece-tray::before{content:'';position:absolute!important;top:7px!important;left:50%!important;width:44px!important;height:4px!important;transform:translateX(-50%)!important;border-radius:999px!important;background:rgba(190,213,228,.28)!important}
  .piece-tray .tray-header{position:relative!important;grid-row:1!important;display:grid!important;grid-template-rows:37px 43px!important;grid-template-columns:1fr!important;gap:4px!important;height:88px!important;min-height:88px!important;padding:11px 2px 0!important;overflow:visible!important;background:transparent!important;border:0!important}
  .piece-tray .tray-title{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important;padding:0 42px 0 4px!important}
  .piece-tray .tray-kicker{display:none!important}.piece-tray .tray-title strong{font-size:12px!important;color:#eef5f8!important;white-space:nowrap!important}.piece-tray .tray-title small{display:none!important}
  .piece-tray .tray-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;height:43px!important;padding:0!important;margin:0!important;overflow:visible!important}
  .piece-tray .tray-actions .tray-action{display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 8px!important;border-radius:12px!important;font-size:9px!important;line-height:1.05!important;white-space:nowrap!important}
  .piece-tray .tray-actions #spreadPiecesButton{border-color:rgba(240,187,83,.48)!important;color:#ffd16a!important;background:rgba(240,187,83,.11)!important}
  .piece-tray .tray-actions #dockGatherButton{display:flex!important}
  .piece-tray .tray-actions .piece-size-control,.piece-tray .tray-actions .tray-row-switch{display:none!important}
  .piece-tray .tray-collapse{display:grid!important;place-items:center!important;position:absolute!important;right:2px!important;top:-35px!important;width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;border-radius:11px!important;font-size:19px!important;background:#0b2c42!important;color:#bdd0dc!important}

  .piece-tray .tray-tabs{position:relative!important;grid-row:2!important;left:auto!important;right:auto!important;top:auto!important;width:100%!important;height:38px!important;min-height:38px!important;padding:3px 2px!important;display:flex!important;align-items:center!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;border:0!important;background:transparent!important}
  .piece-tray .tray-tabs::-webkit-scrollbar{display:none!important}.piece-tray .tray-tab{flex:0 0 auto!important;width:auto!important;max-width:none!important;height:31px!important;min-height:31px!important;padding:0 10px!important;border-radius:10px!important;font-size:9px!important;white-space:nowrap!important}
  .piece-tray .tray-pieces-layer{position:relative!important;grid-row:3!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;height:100%!important;min-height:0!important;padding:5px 34px 5px 2px!important;overflow:hidden!important;contain:layout paint!important}
  .piece-tray .tray-navigation{position:absolute!important;z-index:12!important;right:7px!important;top:132px!important;bottom:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;padding:3px!important;border-radius:11px!important;background:rgba(5,24,38,.9)!important}
  .piece-tray .tray-navigation button{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;border-radius:9px!important}.piece-tray .tray-navigation span{font-size:7px!important;writing-mode:vertical-rl!important;transform:rotate(180deg)!important;max-height:42px!important;overflow:hidden!important}
  .piece-tray .tray-guide{display:none!important}

  /* Secondary actions live in a single bottom sheet. */
  .mobile-tools-sheet{display:block!important;position:absolute!important;z-index:36000!important;left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;max-height:min(68dvh,560px)!important;padding:15px 10px 12px!important;border:1px solid rgba(143,190,219,.2)!important;border-radius:22px!important;background:#071f31!important;box-shadow:0 22px 60px rgba(0,0,0,.55)!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  .mobile-tools-sheet[hidden]{display:none!important}.mobile-sheet-handle{width:42px!important;height:4px!important;margin:0 auto 10px!important;border-radius:999px!important;background:rgba(190,213,228,.28)!important}
  .mobile-sheet-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:0 3px 10px!important}.mobile-sheet-head div{min-width:0!important}.mobile-sheet-head span{display:block!important;color:#7f9db0!important;font-size:7px!important;font-weight:950!important;letter-spacing:.15em!important}.mobile-sheet-head strong{display:block!important;margin-top:3px!important;color:#f5f9fb!important;font-size:14px!important}.mobile-sheet-head>button{width:38px!important;height:38px!important;min-width:38px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:12px!important;background:#0b2c42!important;color:#d8e6ee!important;font-size:21px!important}
  .mobile-sheet-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.mobile-sheet-grid>button{min-width:0!important;min-height:68px!important;padding:7px 4px!important;border:1px solid rgba(143,190,219,.14)!important;border-radius:14px!important;background:#0a2a40!important;color:#e8f1f6!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important}.mobile-sheet-grid>button span{font-size:18px!important;color:#f1bd59!important}.mobile-sheet-grid>button strong{font-size:8px!important;line-height:1.12!important;text-align:center!important;white-space:normal!important}.mobile-sheet-grid>button.active{border-color:rgba(240,187,83,.58)!important;background:rgba(240,187,83,.1)!important;color:#ffd16a!important}
  .game-workspace.mobile-tools-open::after{content:''!important;position:absolute!important;z-index:35000!important;inset:0!important;background:rgba(1,10,17,.52)!important;pointer-events:none!important}

  /* First-run explanation: short, non-blocking and explicitly mobile. */
  .mobile-game-coach{display:grid!important;place-items:center!important;position:absolute!important;z-index:37000!important;inset:0!important;padding:18px!important;background:rgba(2,13,22,.58)!important}.mobile-game-coach[hidden]{display:none!important}
  .mobile-game-coach-card{position:relative!important;width:min(100%,390px)!important;padding:22px 16px 16px!important;border:1px solid rgba(240,187,83,.26)!important;border-radius:22px!important;background:#08263a!important;box-shadow:0 25px 70px rgba(0,0,0,.52)!important;text-align:center!important}.mobile-coach-icon{display:block!important;font-size:32px!important;margin-bottom:8px!important}.mobile-game-coach-card strong{display:block!important;color:#fff!important;font-size:15px!important}.mobile-game-coach-card small{display:block!important;margin-top:7px!important;color:#a8becb!important;font-size:10px!important;line-height:1.5!important}.mobile-coach-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:15px!important}.mobile-coach-actions button{height:44px!important;border:1px solid rgba(143,190,219,.16)!important;border-radius:12px!important;background:#0b3049!important;color:#eaf2f6!important;font-size:10px!important;font-weight:900!important}.mobile-coach-actions button.primary{border-color:#e4ad45!important;background:#e7b14c!important;color:#092238!important}.mobile-coach-close{position:absolute!important;right:8px!important;top:8px!important;width:34px!important;height:34px!important;border:0!important;border-radius:10px!important;background:rgba(255,255,255,.06)!important;color:#c6d7e1!important;font-size:18px!important}

  /* Focus mode still has an escape control; it must not hide the mobile topbar. */
  .game-shell.focus-mode .mobile-game-topbar,.game-shell.focus-mode .mobile-quick-tools,.game-shell.focus-mode .tray-reopen{display:grid!important}.game-shell.focus-mode .tray-reopen{display:flex!important}.focus-exit-button{top:calc(66px + env(safe-area-inset-top))!important;right:8px!important;left:auto!important;z-index:33000!important}
  .game-shell:not(.focus-mode) .focus-exit-button{display:none!important}

  .selection-toolbar{top:calc(66px + env(safe-area-inset-top))!important;left:8px!important;right:8px!important;z-index:33010!important;max-width:none!important;overflow-x:auto!important}
  .hand-hint{left:8px!important;right:8px!important;bottom:calc(124px + env(safe-area-inset-bottom))!important;z-index:33020!important;max-width:none!important}
  .game-workspace.mobile-drawer-open .hand-hint{bottom:calc(var(--mobile-drawer-height) + 66px + env(safe-area-inset-bottom))!important}

  /* Prevent old mobile rules from reserving phantom space or making the page scroll. */
  .game-workspace.tray-two-rows,.game-shell.tray-two-rows{--tray-height:0!important}
  .game-workspace.table-mode::before,.game-workspace.table-drop-active::after{display:none!important}
}

@media(max-width:390px){
  .mobile-game-topbar{left:6px!important;right:6px!important}.mobile-game-title small{font-size:7.8px!important;gap:4px!important}
  .mobile-quick-tools{left:6px!important;right:6px!important;gap:4px!important}.mobile-quick-tool{padding:0 5px!important}.mobile-quick-tool strong{font-size:8px!important}
  .tray-reopen{left:6px!important;right:6px!important}.mobile-sheet-grid{gap:5px!important}.mobile-sheet-grid>button{min-height:64px!important}.mobile-sheet-grid>button strong{font-size:7.5px!important}
}


/* ========================================================================== */
/* v1.25.0 — mobile long-press, compact table spread, desktop dock/reference */
/* ========================================================================== */

/* iOS/Android: native text/image selection, Live Text/callout and image drag
   must not steal the 3-second puzzle-piece hold gesture. */
@media (max-width:820px),(pointer:coarse){
  body.game-open .game-workspace,
  body.game-open .game-workspace *,
  body.game-open .puzzle-board,
  body.game-open .puzzle-board *,
  body.game-open .puzzle-piece,
  body.game-open .puzzle-piece::before,
  body.game-open .puzzle-piece::after{
    -webkit-user-select:none!important;user-select:none!important;
    -webkit-touch-callout:none!important;
    -webkit-user-drag:none!important;
  }
  body.game-open .game-workspace img{
    -webkit-user-select:none!important;user-select:none!important;
    -webkit-touch-callout:none!important;-webkit-user-drag:none!important;
    pointer-events:none;
  }

  /* Drawer keeps Masaya Ser, but Tümünü Topla lives only in Araçlar. */
  .piece-tray .tray-actions{grid-template-columns:1fr!important;}
  .piece-tray .tray-actions #dockGatherButton{display:none!important;}
  .piece-tray .tray-actions #spreadPiecesButton{display:flex!important;width:100%!important;}
}

@media (min-width:821px){
  /* Left dock gets one continuous, opaque backing panel instead of looking
     like a half-finished outline behind the individual tool cards. */
  .game-shell.edge-docks .play-tools{
    padding:10px 8px!important;gap:8px!important;
    background:linear-gradient(180deg,#092a40 0%,#061d2e 100%)!important;
    border:1px solid rgba(126,177,205,.24)!important;
    border-left:0!important;border-right:3px solid rgba(240,184,78,.64)!important;
    border-radius:0 20px 20px 0!important;
    box-shadow:14px 18px 44px rgba(0,0,0,.30)!important;
    overflow:hidden!important;
  }
  .game-shell.edge-docks .play-tools .play-tool{
    width:84px!important;min-width:84px!important;
    box-shadow:0 8px 20px rgba(0,0,0,.16)!important;
  }
  .game-shell.edge-docks .play-tools:hover,
  .game-shell.edge-docks.left-dock-peek .play-tools,
  .game-shell.edge-docks.docks-pinned-open .play-tools{overflow:hidden!important;}

  /* Restore the board-reference opacity control in the desktop reference card. */
  .game-side .reference-card .ghost-control{
    display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;
    gap:6px 8px!important;margin-top:10px!important;padding-top:10px!important;
    border-top:1px solid rgba(139,183,209,.15)!important;
  }
  .game-side .reference-card .ghost-control>span{
    display:flex!important;grid-column:1/-1!important;flex-direction:column!important;gap:2px!important;
  }
  .game-side .reference-card .ghost-control strong{font-size:10px!important;color:#edf5f8!important;}
  .game-side .reference-card .ghost-control small{font-size:8px!important;color:#8ca7b8!important;}
  .game-side .reference-card .ghost-control input{display:block!important;width:100%!important;}
  .game-side .reference-card .ghost-control output{display:block!important;color:#f5c45e!important;font-size:9px!important;text-align:right!important;}
}

/* v1.26 — combo, results, exact grid and multi-room refinements */
.board-stage,.puzzle-board,.board-surface,.board-reference{border-radius:0!important}
.puzzle-board{overflow:visible!important}
.board-surface,.board-reference{overflow:hidden!important}
.puzzle-piece.correct-flash{animation:yoCorrectFlash .68s ease-out!important}
@keyframes yoCorrectFlash{0%{filter:drop-shadow(0 0 0 rgba(66,255,146,0));}24%{filter:drop-shadow(0 0 12px rgba(66,255,146,.95)) drop-shadow(0 0 22px rgba(66,255,146,.58));}100%{filter:drop-shadow(0 0 0 rgba(66,255,146,0));}}
.combo-indicator{position:absolute;z-index:100020;left:50%;top:88px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid rgba(245,190,82,.55);border-radius:999px;background:rgba(4,24,39,.88);box-shadow:0 8px 28px rgba(0,0,0,.22);pointer-events:none;color:#f5c45e;backdrop-filter:blur(10px)}
.combo-indicator[hidden]{display:none!important}.combo-indicator span{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#9db2c0}.combo-indicator strong{font-size:16px}.combo-indicator.combo-fade{opacity:0;transform:translateX(-50%) translateY(-4px);transition:.24s ease}
.combo-toast{position:absolute;z-index:100025;left:50%;top:132px;transform:translate(-50%,-5px) scale(.94);display:flex;flex-direction:column;align-items:center;gap:2px;min-width:190px;padding:12px 18px;border:1px solid rgba(245,190,82,.54);border-radius:14px;background:rgba(5,28,44,.94);box-shadow:0 14px 42px rgba(0,0,0,.35),0 0 24px rgba(245,190,82,.08);opacity:0;pointer-events:none;transition:.18s ease}
.combo-toast[hidden]{display:none!important}.combo-toast.show{opacity:1;transform:translate(-50%,0) scale(1)}.combo-toast strong{font-size:23px;color:#ffd16d}.combo-toast small{font-size:11px;color:#a9bdc9;white-space:nowrap}
.result-card{width:min(920px,calc(100vw - 32px));max-height:min(90dvh,900px);overflow:auto;padding:28px!important}.result-hero{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:center;text-align:left}.result-hero img{width:180px;height:122px;object-fit:cover;border:1px solid rgba(245,190,82,.35);border-radius:10px}.result-hero h2{margin:.25rem 0}.result-piece-chip{display:inline-flex;margin-top:10px;padding:6px 10px;border:1px solid rgba(245,190,82,.28);border-radius:999px;color:#becdd5;font-size:13px}.result-piece-chip b{color:#ffd16d;margin-right:4px}.result-metrics{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;margin-top:24px}.result-metrics>div{min-width:0}.result-metrics strong{font-size:clamp(20px,2.2vw,30px)!important}.result-breakdown{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 0}.result-breakdown>div{padding:12px 14px;border:1px solid rgba(122,155,174,.18);border-radius:11px;background:rgba(7,32,49,.46);display:flex;flex-direction:column;gap:4px}.result-breakdown span{font-size:11px;color:#829dac}.result-breakdown strong{font-size:16px;color:#f6f1e7}.result-records{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.result-records[hidden]{display:none!important}.result-records span{padding:7px 10px;border-radius:999px;background:rgba(245,190,82,.1);border:1px solid rgba(245,190,82,.28);font-size:12px;color:#ffd16d}.share-fallbacks{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px;margin-top:10px}
.share-social-action{padding:6px 12px;border:1px solid rgba(139,183,209,.2);border-radius:999px;background:rgba(10,39,59,.6)}.share-fallbacks[hidden]{display:none!important}
.social-room-list{display:grid;gap:10px;margin:12px 0 16px}.multi-room-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px;margin:0!important}.multi-room-card .social-active-room-actions{flex-wrap:wrap;justify-content:flex-end}.social-room-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 -2px}.social-room-list-head strong{font-size:14px}.social-room-list-head[hidden]{display:none!important}

@media (max-width:820px){
  .combo-indicator{top:72px;padding:5px 10px}.combo-toast{top:106px;max-width:calc(100vw - 30px);min-width:0;padding:10px 14px}.combo-toast strong{font-size:20px}.combo-toast small{font-size:10px;white-space:normal;text-align:center}
  .result-card{width:calc(100vw - 14px);max-height:calc(100dvh - 18px);padding:18px!important}.result-hero{grid-template-columns:94px minmax(0,1fr);gap:14px}.result-hero img{width:94px;height:78px}.result-hero h2{font-size:24px}.result-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.result-metrics>div{padding:12px 7px!important}.result-metrics strong{font-size:20px!important}.result-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.completion-actions-three{grid-template-columns:1fr!important}.share-fallbacks{flex-direction:column;align-items:center;gap:4px}.multi-room-card{flex-direction:column!important;align-items:stretch!important}.multi-room-card .social-active-room-actions{justify-content:flex-start}.social-room-list{max-height:42dvh;overflow:auto;-webkit-overflow-scrolling:touch}
}
@media (max-width:420px){.result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.result-breakdown{grid-template-columns:1fr 1fr}.result-hero{grid-template-columns:78px minmax(0,1fr)}.result-hero img{width:78px;height:68px}}
@media (prefers-reduced-motion:reduce){.puzzle-piece.correct-flash,.combo-toast,.combo-indicator{animation:none!important;transition:none!important}}


/* v1.27 — ipucusuz oyun, daha güçlü doğru-parça ve 2sn combo ödül animasyonları */
.hint-target,.puzzle-piece.hint-piece,.puzzle-piece.preview-hold-pending::after,#hintButton,#mobileHintButton,#holdPreviewToggle,#holdPreviewToggleSide{display:none!important}
@media (min-width:821px){
  .game-bottom-bar{grid-template-columns:minmax(150px,1.2fr) repeat(3,.55fr) minmax(150px,.8fr) minmax(190px,1fr)!important}
}
@media (max-width:820px){
  .mobile-quick-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:360px!important;margin-inline:auto!important}
}

/* Doğru yere oturan parça: önce net yeşil enerji, ardından hızla sönen çift halka. */
.puzzle-piece.correct-flash{
  filter:drop-shadow(0 0 5px rgba(64,255,151,1)) drop-shadow(0 0 15px rgba(64,255,151,.95)) drop-shadow(0 0 32px rgba(64,255,151,.62)) brightness(1.22)!important;
  animation:yoCorrectPiecePop 1.12s cubic-bezier(.18,.86,.2,1)!important;
  isolation:isolate;
}
.puzzle-piece.correct-flash::after{
  content:"";position:absolute;inset:-8px;z-index:5;pointer-events:none;border:3px solid rgba(84,255,164,.98);border-radius:14px;
  box-shadow:0 0 0 2px rgba(76,255,156,.28),0 0 18px rgba(58,255,145,.92),0 0 42px rgba(58,255,145,.6);
  animation:yoCorrectRing 1.12s cubic-bezier(.16,.84,.2,1) forwards;
}
.puzzle-piece.correct-flash::before{
  content:"✓";position:absolute;z-index:6;right:-10px;top:-12px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;
  background:#4cff9a;color:#06251a;font:950 15px/1 system-ui,sans-serif;box-shadow:0 0 0 4px rgba(76,255,154,.16),0 5px 18px rgba(0,0,0,.28);
  animation:yoCorrectTick 1.05s ease-out forwards;pointer-events:none;
}
@keyframes yoCorrectPiecePop{
  0%{transform:scale(.96)}
  16%{transform:scale(1.105)}
  34%{transform:scale(1.025)}
  58%{transform:scale(1.065)}
  100%{transform:scale(1)}
}
@keyframes yoCorrectRing{
  0%{opacity:0;transform:scale(.76)}
  14%{opacity:1;transform:scale(.94)}
  48%{opacity:1;transform:scale(1.08)}
  78%{opacity:.65;transform:scale(1.22)}
  100%{opacity:0;transform:scale(1.34)}
}
@keyframes yoCorrectTick{
  0%{opacity:0;transform:scale(.3) rotate(-18deg)}
  22%{opacity:1;transform:scale(1.18) rotate(5deg)}
  48%{transform:scale(.98) rotate(0)}
  72%{opacity:1;transform:scale(1)}
  100%{opacity:0;transform:translateY(-8px) scale(.9)}
}

/* Combo: yaklaşık 2 sn. İlk bölüm sakin, ikinci yarı giderek daha enerjik ve büyük. */
.combo-toast{
  min-width:240px!important;padding:15px 24px!important;border:1px solid rgba(255,204,94,.66)!important;border-radius:18px!important;
  background:linear-gradient(180deg,rgba(7,31,48,.97),rgba(3,20,34,.97))!important;
  box-shadow:0 18px 54px rgba(0,0,0,.42),0 0 0 1px rgba(255,211,109,.08),0 0 34px rgba(245,181,69,.16)!important;
  opacity:0;transform:translate(-50%,8px) scale(.78);overflow:visible;
}
.combo-toast::before{
  content:"";position:absolute;inset:-13px;border:2px solid rgba(255,205,93,.0);border-radius:24px;pointer-events:none;
}
.combo-toast::after{
  content:"";position:absolute;left:12%;right:12%;top:-2px;height:2px;border-radius:999px;background:linear-gradient(90deg,transparent,#ffe39a,transparent);opacity:0;pointer-events:none;
}
.combo-toast.show{opacity:1;animation:yoComboRush 2s cubic-bezier(.2,.78,.18,1) both!important}
.combo-toast.show::before{animation:yoComboRing 2s ease-out both}
.combo-toast.show::after{animation:yoComboSweep 2s ease-out both}
.combo-toast.show strong{animation:yoComboTitle 2s cubic-bezier(.2,.75,.2,1) both;font-size:28px!important;text-shadow:0 0 18px rgba(255,198,82,.28)}
.combo-toast.show small{animation:yoComboHint 2s ease both;font-size:11px!important}
@keyframes yoComboRush{
  0%{opacity:0;transform:translate(-50%,10px) scale(.76);box-shadow:0 8px 22px rgba(0,0,0,.22),0 0 0 rgba(245,181,69,0)}
  12%{opacity:.72;transform:translate(-50%,5px) scale(.84)}
  30%{opacity:1;transform:translate(-50%,0) scale(.92)}
  48%{transform:translate(-50%,-2px) scale(1)}
  64%{transform:translate(-50%,-7px) scale(1.09);box-shadow:0 22px 58px rgba(0,0,0,.46),0 0 34px rgba(245,181,69,.28)}
  76%{transform:translate(-50%,-11px) scale(1.18);box-shadow:0 25px 66px rgba(0,0,0,.48),0 0 52px rgba(245,181,69,.42)}
  86%{transform:translate(-50%,-8px) scale(1.11)}
  94%{opacity:1;transform:translate(-50%,-5px) scale(1.06)}
  100%{opacity:0;transform:translate(-50%,-16px) scale(1.14)}
}
@keyframes yoComboTitle{
  0%{opacity:.2;letter-spacing:.01em;transform:scale(.9)}
  42%{opacity:1;letter-spacing:.015em;transform:scale(1)}
  72%{letter-spacing:.045em;transform:scale(1.1)}
  88%{transform:scale(1.035)}
  100%{opacity:.75;transform:scale(1.08)}
}
@keyframes yoComboHint{
  0%,18%{opacity:0;transform:translateY(5px)}
  36%{opacity:.75;transform:translateY(0)}
  62%,90%{opacity:1}
  100%{opacity:0}
}
@keyframes yoComboRing{
  0%,20%{opacity:0;transform:scale(.85);border-color:rgba(255,205,93,0)}
  44%{opacity:.45;transform:scale(1);border-color:rgba(255,205,93,.34)}
  76%{opacity:.88;transform:scale(1.12);border-color:rgba(255,217,118,.72)}
  100%{opacity:0;transform:scale(1.3);border-color:rgba(255,217,118,0)}
}
@keyframes yoComboSweep{
  0%,34%{opacity:0;transform:translateX(-25%) scaleX(.2)}
  62%{opacity:.9;transform:translateX(0) scaleX(1)}
  82%{opacity:.35;transform:translateX(18%) scaleX(.72)}
  100%{opacity:0;transform:translateX(28%) scaleX(.3)}
}
@media (max-width:820px){
  .combo-toast{min-width:min(280px,calc(100vw - 26px))!important;padding:13px 18px!important}
  .combo-toast.show strong{font-size:24px!important}
  .puzzle-piece.correct-flash::after{inset:-6px;border-width:2px}
  .puzzle-piece.correct-flash::before{width:23px;height:23px;font-size:13px;right:-8px;top:-10px}
}
@media (prefers-reduced-motion:reduce){
  .puzzle-piece.correct-flash{animation:none!important;filter:drop-shadow(0 0 12px rgba(64,255,151,.9)) brightness(1.12)!important}
  .puzzle-piece.correct-flash::before,.puzzle-piece.correct-flash::after{animation:none!important;opacity:.75}
  .combo-toast.show,.combo-toast.show strong,.combo-toast.show small,.combo-toast.show::before,.combo-toast.show::after{animation:none!important;opacity:1!important;transform:none!important}
}

/* v1.28 — turuncu doğru-parça vurgusu, canlı puan/çarpan ve Lottie geçişi */

/* Doğru yere kilitlenen parça: yeşil yerine net turuncu, birkaç kez yanıp sönen halo. */
.puzzle-piece.correct-flash{
  filter:drop-shadow(0 0 4px rgba(255,151,35,.98)) drop-shadow(0 0 12px rgba(255,151,35,.95)) drop-shadow(0 0 26px rgba(255,126,18,.7)) brightness(1.18)!important;
  animation:yoCorrectOrangePulse 1.38s cubic-bezier(.2,.78,.2,1)!important;
  isolation:isolate;
}
.puzzle-piece.correct-flash::after{
  content:""!important;position:absolute;inset:-7px;z-index:5;pointer-events:none;border:3px solid rgba(255,157,48,.98)!important;border-radius:13px;
  box-shadow:0 0 0 2px rgba(255,160,50,.22),0 0 16px rgba(255,143,29,.92),0 0 38px rgba(255,121,15,.62)!important;
  animation:yoCorrectOrangeRing 1.38s ease-out forwards!important;
}
.puzzle-piece.correct-flash::before{display:none!important;content:none!important}
@keyframes yoCorrectOrangePulse{
  0%{transform:scale(.985);filter:drop-shadow(0 0 0 rgba(255,145,28,0)) brightness(1)}
  12%{transform:scale(1.07);filter:drop-shadow(0 0 7px rgba(255,157,46,1)) drop-shadow(0 0 22px rgba(255,128,19,.9)) brightness(1.2)}
  25%{transform:scale(1.01);filter:drop-shadow(0 0 3px rgba(255,157,46,.35)) brightness(1.06)}
  39%{transform:scale(1.055);filter:drop-shadow(0 0 9px rgba(255,168,63,1)) drop-shadow(0 0 28px rgba(255,126,18,.78)) brightness(1.18)}
  54%{transform:scale(1.008);filter:drop-shadow(0 0 3px rgba(255,157,46,.28)) brightness(1.04)}
  68%{transform:scale(1.04);filter:drop-shadow(0 0 8px rgba(255,169,65,.88)) drop-shadow(0 0 20px rgba(255,126,18,.6)) brightness(1.13)}
  100%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(255,145,28,0)) brightness(1)}
}
@keyframes yoCorrectOrangeRing{
  0%{opacity:0;transform:scale(.82)}
  12%{opacity:1;transform:scale(.96)}
  26%{opacity:.22;transform:scale(1.025)}
  40%{opacity:1;transform:scale(1.07)}
  54%{opacity:.2;transform:scale(1.11)}
  69%{opacity:.86;transform:scale(1.16)}
  100%{opacity:0;transform:scale(1.3)}
}

/* Header puanı aynı yerde büyüyüp geri döner; çarpan x1, x2, x3... sınırsız ilerler. */
.game-header-stats .score-stat{overflow:visible!important}
.game-header-stats .score-stat>span{display:flex!important;align-items:center;gap:7px}
#scoreMultiplier{display:inline-block;margin:0;padding:2px 5px;border-radius:999px;background:rgba(255,166,54,.13);color:#ffbd62!important;font-size:9px!important;line-height:1.1;letter-spacing:0!important;transform-origin:center}
#scoreCount{display:inline-block;transform-origin:left center;will-change:transform,filter}
#scoreCount.score-pop{animation:yoScorePop var(--score-pop-duration,520ms) cubic-bezier(.18,.9,.22,1)}
#scoreMultiplier.multiplier-pop{animation:yoMultiplierPop 520ms cubic-bezier(.18,.9,.22,1)}
#scoreBurst{position:absolute;right:13px;top:50%;font-style:normal;font-size:10px;font-weight:950;color:#ffc36b;opacity:0;transform:translateY(-10%) scale(.8);pointer-events:none;text-shadow:0 0 16px rgba(255,151,34,.5)}
#scoreBurst.show{animation:yoScoreBurst .72s ease-out both}
@keyframes yoScorePop{0%{transform:scale(1);filter:none}35%{transform:scale(var(--score-pop-scale,1.28));filter:drop-shadow(0 0 9px rgba(255,162,44,.72))}70%{transform:scale(.98)}100%{transform:scale(1);filter:none}}
@keyframes yoMultiplierPop{0%{transform:scale(1)}40%{transform:scale(var(--multiplier-scale,1.28));box-shadow:0 0 14px rgba(255,158,39,.42)}100%{transform:scale(1);box-shadow:none}}
@keyframes yoScoreBurst{0%{opacity:0;transform:translateY(6px) scale(.72)}22%{opacity:1;transform:translateY(-5px) scale(1.15)}68%{opacity:1;transform:translateY(-14px) scale(1)}100%{opacity:0;transform:translateY(-25px) scale(.92)}}

.combo-indicator{transform:translateX(-50%) scale(var(--combo-scale,1));transform-origin:center;transition:transform .18s ease,opacity .24s ease!important;border-color:rgba(255,162,48,.62)!important;color:#ffc06b!important;box-shadow:0 8px 28px rgba(0,0,0,.22),0 0 18px rgba(255,139,29,.08)!important}
.combo-indicator strong{color:#ffc268;font-size:17px!important}
.combo-indicator.combo-fade{transform:translateX(-50%) translateY(-4px) scale(.92)!important}
.score-reward-toast{--reward-scale:1;--reward-glow:.2;border-color:rgba(255,169,67,.7)!important;box-shadow:0 18px 54px rgba(0,0,0,.42),0 0 44px rgba(255,137,27,.26)!important}
.score-reward-toast.show{animation:yoScoreReward 1.22s cubic-bezier(.18,.84,.18,1) both!important}
.score-reward-toast.show strong{animation:yoScoreRewardTitle 1.22s cubic-bezier(.18,.88,.2,1) both!important;color:#ffc264!important}
.score-reward-toast.show small{animation:yoScoreRewardHint 1.22s ease both!important;color:#d8b782!important}
@keyframes yoScoreReward{0%{opacity:0;transform:translate(-50%,8px) scale(.82)}18%{opacity:1;transform:translate(-50%,0) scale(.94)}48%{transform:translate(-50%,-4px) scale(var(--reward-scale,1.04))}72%{transform:translate(-50%,-8px) scale(var(--reward-scale,1.04))}100%{opacity:0;transform:translate(-50%,-18px) scale(var(--reward-scale,1.04))}}
@keyframes yoScoreRewardTitle{0%{opacity:.2;transform:scale(.8)}34%{opacity:1;transform:scale(1)}64%{transform:scale(1.12)}100%{opacity:.7;transform:scale(1.04)}}
@keyframes yoScoreRewardHint{0%,18%{opacity:0;transform:translateY(5px)}38%,78%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-4px)}}

/* Parça sayısı modalı: 5 yetişkin seçeneğini tek bakışta dengeli göster. */
.modal-piece-selector{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px!important}
.modal-piece-selector .piece-option{min-width:0!important;padding:8px 6px}
.modal-piece-selector .piece-option small{font-size:9px;line-height:1.2;text-align:center;margin-top:4px;color:#879daa}

/* Parça sayısı seçildikten sonra kısa başlangıç geçişi. */
.game-start-transition{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;background:radial-gradient(circle at 50% 45%,rgba(20,58,80,.96),rgba(3,19,31,.985) 58%,#03131f 100%);opacity:0;visibility:hidden;transition:opacity .22s ease,visibility 0s linear .22s;pointer-events:auto}
.game-start-transition[hidden]{display:none!important}
.game-start-transition.is-visible{opacity:1;visibility:visible;transition:opacity .18s ease}
.game-start-transition.is-leaving{opacity:0;visibility:visible}
.game-start-transition-inner{width:min(360px,72vw);aspect-ratio:1;display:grid;place-items:center;position:relative}
.game-start-lottie,.game-start-lottie-fallback{grid-area:1/1;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 36px rgba(0,0,0,.28))}
.game-start-lottie svg{display:block;width:100%!important;height:100%!important}
.game-start-loading{position:absolute;left:50%;bottom:7%;transform:translateX(-50%);display:flex;gap:6px;opacity:.55}
.game-start-loading span{width:5px;height:5px;border-radius:50%;background:#ffc264;animation:yoLoadingDot .8s ease-in-out infinite alternate}
.game-start-loading span:nth-child(2){animation-delay:.13s}.game-start-loading span:nth-child(3){animation-delay:.26s}
@keyframes yoLoadingDot{from{opacity:.25;transform:translateY(2px)}to{opacity:1;transform:translateY(-2px)}}

@media (max-width:820px){
  .modal-piece-selector{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .modal-piece-selector .piece-option:last-child:nth-child(odd){grid-column:1/-1}
  #scoreBurst{right:7px;top:44%;font-size:9px}
  #scoreMultiplier{font-size:8px!important;padding:1px 4px}
  .game-start-transition-inner{width:min(310px,82vw)}
  .puzzle-piece.correct-flash::after{inset:-5px!important;border-width:2px!important}
}
@media (prefers-reduced-motion:reduce){
  .puzzle-piece.correct-flash{animation:none!important;filter:drop-shadow(0 0 13px rgba(255,151,35,.9)) brightness(1.1)!important}
  .puzzle-piece.correct-flash::after,#scoreCount.score-pop,#scoreMultiplier.multiplier-pop,#scoreBurst.show,.score-reward-toast.show,.score-reward-toast.show strong,.score-reward-toast.show small,.game-start-loading span{animation:none!important}
}

/* ========================================================================== */
/* v1.29.0 — gerçek mobil uygulama hissi: büyük pano + bottom-sheet parçalar   */
/* ========================================================================== */
@media (max-width:820px){
  /* Oyun artık sayfanın küçültülmüş hali değil, tek ekranlık uygulama yüzeyi. */
  body.game-open{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important;background:#041522!important}
  .game-view,.game-shell,.workspace-panel,.game-workspace{width:100%!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
  .game-workspace{background:radial-gradient(circle at 50% 34%,#16435f 0%,#0b2b42 46%,#041522 100%)!important}

  /* Daha kompakt üst bar + canlı ilerleme çizgisi. */
  .mobile-game-topbar{
    left:7px!important;right:7px!important;top:calc(5px + env(safe-area-inset-top))!important;
    height:56px!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:7px!important;
    padding:5px 5px 7px!important;border-radius:17px!important;
    background:rgba(4,22,35,.965)!important;box-shadow:0 10px 30px rgba(0,0,0,.26)!important;overflow:hidden!important
  }
  .mobile-game-topbar::after{
    content:"";position:absolute;left:7px;bottom:0;width:var(--mobile-progress,0%);height:2px;border-radius:999px;
    background:linear-gradient(90deg,#e9a53c,#ffd477);box-shadow:0 0 12px rgba(244,180,67,.35);transition:width .28s ease
  }
  .mobile-game-back,.mobile-game-more{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:13px!important;background:#0a2d45!important}
  .mobile-game-title strong{font-size:13px!important;letter-spacing:.005em!important}
  .mobile-game-title small{margin-top:5px!important;font-size:8.4px!important;gap:5px!important;color:#a9bfcc!important}

  /* Pano alanı mümkün olduğunca boş bırakılır; JS gerçek boşluğu hesaplar. */
  .board-stage{border-radius:0!important;filter:drop-shadow(0 18px 30px rgba(0,0,0,.20))}
  .puzzle-board{box-shadow:0 0 0 1px rgba(244,179,69,.72),0 0 0 5px rgba(3,17,28,.42),0 18px 42px rgba(0,0,0,.32)!important}
  .board-surface,.board-reference{border-radius:0!important}
  .board-surface{background-color:rgba(6,26,40,.52)!important}

  /* Odak/Araçlar sadece iki küçük yüzen uygulama düğmesi. */
  .mobile-quick-tools{
    display:flex!important;flex-direction:column!important;grid-template-columns:none!important;
    left:auto!important;right:9px!important;bottom:calc(69px + env(safe-area-inset-bottom))!important;
    width:48px!important;height:auto!important;gap:7px!important;margin:0!important;z-index:30040!important
  }
  .game-workspace.mobile-drawer-open .mobile-quick-tools{opacity:0!important;pointer-events:none!important;transform:translateX(12px)!important}
  .mobile-quick-tool{
    width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;border-radius:15px!important;
    display:grid!important;place-items:center!important;background:rgba(7,38,58,.96)!important;border-color:rgba(158,203,229,.20)!important;
    box-shadow:0 9px 24px rgba(0,0,0,.25)!important;transition:transform .16s ease,opacity .16s ease,border-color .16s ease!important
  }
  .mobile-quick-tool:active{transform:scale(.94)!important}.mobile-quick-tool span{font-size:19px!important}.mobile-quick-tool strong{display:none!important}
  .mobile-quick-tool.active{border-color:rgba(246,190,80,.62)!important;background:rgba(50,52,43,.94)!important;color:#ffd071!important}

  /* Kapalı çekmece, iOS tarzı tek tutamak/bar. */
  .tray-reopen{
    left:10px!important;right:68px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;height:48px!important;
    border-radius:16px!important;padding:0 14px!important;justify-content:center!important;gap:8px!important;
    background:rgba(6,34,52,.98)!important;border-color:rgba(244,184,73,.35)!important;box-shadow:0 10px 26px rgba(0,0,0,.25)!important
  }
  .tray-reopen::before{content:"";position:absolute;top:5px;left:50%;transform:translateX(-50%);width:34px;height:3px;border-radius:999px;background:rgba(210,227,237,.24)}
  .tray-reopen-icon{font-size:15px!important}.tray-reopen span:nth-child(2){font-size:10px!important;font-weight:950!important;color:#f6c76a!important}.tray-reopen b{font-size:15px!important}

  /* Parça çekmecesi: yarım ekran. Masaya Ser/Topla burada görünmez; Araçlar'a taşındı. */
  .game-shell{--mobile-drawer-height:clamp(268px,42dvh,360px)!important}
  .game-workspace.mobile-drawer-expanded{--mobile-drawer-height:clamp(430px,72dvh,650px)!important}
  .piece-tray{
    height:calc(var(--mobile-drawer-height) + env(safe-area-inset-bottom))!important;
    grid-template-rows:54px 41px minmax(0,1fr)!important;padding:0 9px env(safe-area-inset-bottom)!important;
    border-radius:24px 24px 0 0!important;background:rgba(5,29,45,.995)!important;
    border-top:1px solid rgba(157,201,226,.21)!important;box-shadow:0 -18px 52px rgba(0,0,0,.46)!important
  }
  .piece-tray::before{top:7px!important;width:40px!important;height:4px!important;background:rgba(203,222,233,.31)!important}
  .piece-tray .tray-header{
    height:54px!important;min-height:54px!important;grid-template-rows:1fr!important;padding:13px 42px 0 4px!important;display:flex!important;align-items:center!important
  }
  .piece-tray .tray-title{height:39px!important;justify-content:center!important;padding:0!important;text-align:center!important}
  .piece-tray .tray-title strong{font-size:12px!important;color:#f1f7fa!important;letter-spacing:.01em!important}
  .piece-tray .tray-actions{display:block!important;position:static!important;width:auto!important;height:auto!important}
  .piece-tray .tray-actions .tray-action,
  .piece-tray .tray-actions #spreadPiecesButton,
  .piece-tray .tray-actions #dockGatherButton,
  .piece-tray .tray-actions .piece-size-control,
  .piece-tray .tray-actions .tray-row-switch{display:none!important}
  .piece-tray .tray-collapse{display:grid!important;right:1px!important;top:14px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border-radius:12px!important;background:#0b3049!important}
  .piece-tray .tray-tabs{height:41px!important;min-height:41px!important;padding:5px 2px!important;gap:5px!important}
  .piece-tray .tray-tab{height:31px!important;min-height:31px!important;padding:0 11px!important;border-radius:10px!important;font-size:9px!important}
  .piece-tray .tray-pieces-layer{padding:7px 39px 7px 3px!important;contain:layout!important;overflow:hidden!important}
  .piece-tray .tray-navigation{top:102px!important;right:7px!important;background:rgba(3,20,32,.82)!important}
  .piece-tray .tray-navigation span{display:none!important}
  .piece-tray .tray-navigation button{width:31px!important;height:31px!important;border-radius:10px!important}

  /* Parmaktan yukarı kaldırılan parça daha okunaklı. */
  .puzzle-piece.mobile-lifted{filter:drop-shadow(0 12px 13px rgba(0,0,0,.42)) drop-shadow(0 0 8px rgba(244,184,73,.18))!important;transition:none!important}
  .puzzle-piece.dragging,.puzzle-piece.held{touch-action:none!important}

  /* Elde parça uyarısı küçük ve panoyu kapatmaz. */
  .hand-hint{
    left:50%!important;right:auto!important;bottom:calc(66px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;
    width:min(310px,calc(100vw - 86px))!important;min-height:44px!important;padding:6px 7px!important;border-radius:14px!important;
    grid-template-columns:28px minmax(0,1fr) 30px!important;background:rgba(5,28,44,.96)!important
  }
  .hand-hint strong{font-size:12px!important}.hand-hint small{font-size:7.5px!important}.hand-hint kbd{display:none!important}

  /* Menü sheet de ana çekmeceyle aynı uygulama dilinde. */
  .mobile-tools-sheet{left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;border-radius:24px!important;background:#061f31!important}
  .mobile-sheet-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .mobile-sheet-grid>button{min-height:66px!important;border-radius:15px!important}

  /* İlk kullanım rehberi artık ana oynama biçimini önerir; Masaya Ser ikincil araçtır. */
  .mobile-game-coach-card{width:min(100%,360px)!important;padding:24px 17px 17px!important}
  .mobile-coach-actions{grid-template-columns:1.25fr .75fr!important}

  /* Turuncu yerleşme efekti mobilde çerçevenin üstünde daha net. */
  .puzzle-piece.correct-flash{z-index:120000!important}
  .puzzle-piece.correct-flash::after{box-shadow:0 0 0 2px rgba(255,160,50,.28),0 0 18px rgba(255,143,29,1),0 0 40px rgba(255,121,15,.7)!important}
}

@media (max-width:390px){
  .mobile-game-topbar{left:6px!important;right:6px!important}
  .mobile-game-title strong{font-size:12.5px!important}.mobile-game-title small{font-size:7.8px!important}
  .mobile-quick-tools{right:7px!important}.tray-reopen{left:7px!important;right:64px!important}
  .game-shell{--mobile-drawer-height:clamp(260px,41dvh,345px)!important}
}
@keyframes yoMobileScorePop{0%{transform:scale(1);filter:none}38%{transform:scale(var(--mobile-score-scale,1.2));filter:drop-shadow(0 0 8px rgba(255,164,47,.62))}72%{transform:scale(.98)}100%{transform:scale(1);filter:none}}
@media (max-width:820px){
  #mobileGameScore{display:inline-block!important;transform-origin:center!important}
  #mobileGameScore.score-mobile-pop{animation:yoMobileScorePop .58s cubic-bezier(.18,.9,.22,1)!important;color:#ffd16f!important}
}

/* ========================================================================== */
/* v1.30.0 — mobil oyun yüzeyi: sabit parça kutusu + alt aksiyon docku        */
/* ========================================================================== */
.mobile-play-status,.mobile-bottom-dock{display:none}

@media (max-width:820px){
  /* Tek ekran, native oyun hissi. */
  body.game-open,.game-view,.game-shell,.workspace-panel,.game-workspace{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  .game-workspace{background:radial-gradient(circle at 48% 29%,#17435f 0%,#0a2b42 48%,#041522 100%)!important}

  /* Üst bilgi: küçük kapak + başlık + yüzde/süre/puan/çarpan. */
  .mobile-game-topbar{
    left:8px!important;right:8px!important;top:calc(6px + env(safe-area-inset-top))!important;height:66px!important;
    grid-template-columns:46px minmax(0,1fr) 46px!important;gap:8px!important;padding:6px!important;border-radius:18px!important;
    border-color:rgba(133,183,213,.18)!important;background:rgba(4,22,35,.97)!important;box-shadow:0 12px 34px rgba(0,0,0,.28)!important
  }
  .mobile-game-back,.mobile-game-more{width:46px!important;height:52px!important;min-width:46px!important;min-height:52px!important;border-radius:14px!important;background:#0a2d45!important;color:#f5c265!important}
  .mobile-game-summary{min-width:0!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;gap:9px!important}
  .mobile-game-thumb{display:block!important;width:42px!important;height:42px!important;border-radius:11px!important;object-fit:cover!important;border:1px solid rgba(243,178,65,.72)!important;box-shadow:0 4px 14px rgba(0,0,0,.24)!important}
  .mobile-game-title{text-align:left!important;min-width:0!important}
  .mobile-game-title strong{font-size:13px!important;line-height:1.1!important;text-align:left!important}
  .mobile-game-title small{justify-content:flex-start!important;gap:5px!important;margin-top:5px!important;font-size:8.2px!important;line-height:1!important;color:#a7bdca!important;overflow:hidden!important}
  .mobile-game-title small>span:first-child{font-size:10px!important;color:#f0ae3e!important;font-weight:950!important}
  .mobile-game-title small i{display:block!important;width:1px!important;height:12px!important;background:rgba(163,190,207,.22)!important;opacity:1!important;flex:0 0 1px!important}
  .mobile-game-title small i:nth-of-type(2){width:auto!important;height:auto!important;background:none!important;color:#748f9f!important}
  .mobile-time-wrap{display:inline-flex!important;align-items:center!important;gap:3px!important;color:#aabfcb!important}.mobile-time-wrap b{font:inherit!important;color:#dce8ee!important}
  #mobileGameScore{color:#f3b64d!important;font-weight:900!important;white-space:nowrap!important}
  #mobileGameMultiplier{display:inline-grid!important;place-items:center!important;min-width:30px!important;height:20px!important;padding:0 7px!important;border-radius:999px!important;background:rgba(239,151,44,.23)!important;border:1px solid rgba(244,178,69,.42)!important;color:#ffc369!important;font-style:normal!important;font-size:9px!important;font-weight:950!important;white-space:nowrap!important}
  .mobile-game-topbar::after{left:62px!important;right:auto!important;width:calc((100% - 124px) * var(--mobile-progress-ratio,0))!important;transform:none!important;bottom:4px!important;height:2px!important}

  /* Pano: sağdaki iki araca yer bırakarak mümkün olan en büyük gerçek oyun alanı. */
  .board-stage{filter:drop-shadow(0 18px 34px rgba(0,0,0,.27))!important}
  .puzzle-board{box-shadow:0 0 0 1px rgba(235,168,62,.75),0 0 0 4px rgba(2,17,28,.45),0 20px 48px rgba(0,0,0,.33)!important}

  /* Pano ile kutu arasında yalnızca yardımcı durum satırı. */
  .mobile-play-status{
    display:flex!important;position:absolute!important;z-index:30035!important;left:10px!important;right:72px!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important;height:28px!important;align-items:center!important;justify-content:center!important;gap:5px!important;
    color:#9fb4c1!important;font-size:8.5px!important;font-weight:750!important;white-space:nowrap!important;pointer-events:none!important;transition:bottom .2s ease!important
  }
  .game-workspace.mobile-drawer-open .mobile-play-status{bottom:calc(var(--mobile-drawer-height) + 86px + env(safe-area-inset-bottom))!important}
  .mobile-play-status span:first-child{font-size:12px!important}.mobile-play-status strong{color:#42d98a!important;font-weight:900!important}.mobile-play-status i{font-style:normal!important;opacity:.45!important}.mobile-play-status b{font-size:10px!important;color:#4fd892!important}

  /* Sağda iki gerçek uygulama aracı; puzzle'a basmamak için hesaplama JS'te alan ayırır. */
  .mobile-quick-tools{
    display:flex!important;left:auto!important;right:7px!important;bottom:calc(118px + env(safe-area-inset-bottom))!important;width:56px!important;height:auto!important;gap:9px!important;
    opacity:1!important;transform:none!important;pointer-events:auto!important;transition:bottom .2s ease!important
  }
  .game-workspace.mobile-drawer-open .mobile-quick-tools{bottom:calc(var(--mobile-drawer-height) + 124px + env(safe-area-inset-bottom))!important;opacity:1!important;pointer-events:auto!important;transform:none!important}
  .mobile-quick-tool{
    width:56px!important;height:62px!important;min-width:56px!important;min-height:62px!important;border-radius:17px!important;padding:5px 2px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;background:rgba(7,37,57,.97)!important
  }
  .mobile-quick-tool span{font-size:20px!important}.mobile-quick-tool strong{display:block!important;max-width:50px!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:8.5px!important;line-height:1!important;color:#eef5f8!important;text-align:center!important}

  /* Eski açma barına gerek yok; orta dock butonu Parça Kutusu'nu açıp kapatıyor. */
  .tray-reopen{display:none!important}

  /* Parça kutusu artık popup değil: alt dockun üstünde sabit oyun bölgesi. */
  .game-shell{--mobile-drawer-height:clamp(272px,38dvh,350px)!important}
  .game-workspace.mobile-drawer-expanded{--mobile-drawer-height:clamp(390px,56dvh,500px)!important}
  .piece-tray{
    left:0!important;right:0!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;height:var(--mobile-drawer-height)!important;
    padding:0 9px!important;grid-template-rows:54px 43px minmax(0,1fr)!important;border-radius:24px 24px 0 0!important;
    border:1px solid rgba(143,190,218,.18)!important;border-bottom:0!important;background:linear-gradient(180deg,rgba(7,31,48,.995),rgba(4,24,38,.998))!important;
    box-shadow:0 -15px 44px rgba(0,0,0,.38)!important;overflow:visible!important
  }
  .piece-tray::before{top:7px!important;width:42px!important;height:4px!important;background:rgba(203,222,233,.30)!important}
  .piece-tray .tray-header{height:54px!important;min-height:54px!important;padding:12px 0 0!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important}
  .piece-tray .tray-title{width:100%!important;height:40px!important;padding:0!important;justify-content:center!important;text-align:center!important}
  .piece-tray .tray-title strong{font-size:13px!important;color:#f4f8fa!important}.piece-tray .tray-title strong b{color:#f0ad3e!important;font-size:15px!important}
  .piece-tray .tray-actions{display:block!important;position:static!important}.piece-tray .tray-actions>*:not(.tray-collapse){display:none!important}
  .piece-tray .tray-collapse{
    display:grid!important;place-items:center!important;left:50%!important;right:auto!important;top:-18px!important;transform:translateX(-50%)!important;
    width:44px!important;height:28px!important;min-width:44px!important;min-height:28px!important;border-radius:16px 16px 10px 10px!important;
    border:1px solid rgba(142,188,215,.20)!important;background:#0a2b42!important;color:#c9dae4!important;font-size:0!important;box-shadow:0 -8px 20px rgba(0,0,0,.18)!important
  }
  .piece-tray .tray-collapse::before{content:'⌄';font-size:18px!important;line-height:1!important;transform:translateY(-1px)}
  .piece-tray .tray-tabs{height:43px!important;min-height:43px!important;padding:5px 1px!important;gap:5px!important;overflow-x:auto!important;scroll-snap-type:x proximity!important}
  .piece-tray .tray-tab{height:33px!important;min-height:33px!important;padding:0 11px!important;border-radius:11px!important;font-size:9px!important;background:rgba(7,28,43,.66)!important;scroll-snap-align:start!important}
  .piece-tray .tray-tab.active{border-color:#d99a3c!important;background:rgba(221,145,47,.12)!important;color:#f2bd64!important;box-shadow:inset 0 0 0 1px rgba(238,174,70,.06)!important}
  .piece-tray .tray-pieces-layer{padding:8px 40px 10px!important;overflow:hidden!important;contain:layout!important}

  /* Sayfa gezinmesi kutunun iki kenarında; parça satırını daraltmıyor. */
  .piece-tray .tray-navigation{position:absolute!important;z-index:20!important;inset:97px 0 0!important;display:block!important;padding:0!important;background:transparent!important;pointer-events:none!important}
  .piece-tray .tray-navigation span{display:none!important}
  .piece-tray .tray-navigation button{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;width:35px!important;height:52px!important;min-width:35px!important;min-height:52px!important;border-radius:0 13px 13px 0!important;background:rgba(7,31,48,.94)!important;border:1px solid rgba(147,194,221,.16)!important;color:#dbe8ef!important;font-size:24px!important;pointer-events:auto!important}
  .piece-tray #trayPrev{left:-1px!important}.piece-tray #trayNext{right:-1px!important;border-radius:13px 0 0 13px!important}
  .piece-tray .tray-guide{display:none!important}

  /* Sabit alt dock: en sık 5 işlem, Parça Kutusu merkezde ve baskın. */
  .mobile-bottom-dock{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:end!important;gap:3px!important;position:absolute!important;z-index:30100!important;
    left:0!important;right:0!important;bottom:0!important;height:calc(78px + env(safe-area-inset-bottom))!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;
    background:linear-gradient(180deg,rgba(5,26,41,.985),#031827)!important;border-top:1px solid rgba(142,189,216,.15)!important;box-shadow:0 -10px 28px rgba(0,0,0,.22)!important
  }
  .mobile-dock-action{position:relative!important;min-width:0!important;height:58px!important;padding:4px 2px!important;border:1px solid rgba(145,191,219,.13)!important;border-radius:15px!important;background:#0a2a40!important;color:#e5eef3!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;box-shadow:0 5px 15px rgba(0,0,0,.18)!important}
  .mobile-dock-action span{font-size:18px!important;line-height:1!important;color:#dbe8ef!important}.mobile-dock-action strong{font-size:7.5px!important;line-height:1.05!important;white-space:nowrap!important;color:#dce7ee!important}
  .mobile-dock-action:active{transform:scale(.96)!important}
  .mobile-dock-primary{height:70px!important;margin-top:-12px!important;border-radius:50% 50% 18px 18px!important;border-color:rgba(240,168,58,.78)!important;background:linear-gradient(180deg,#12344a,#09263a)!important;box-shadow:0 0 0 2px rgba(240,168,58,.08),0 -5px 22px rgba(0,0,0,.26)!important}
  .mobile-dock-primary span{font-size:25px!important}.mobile-dock-primary strong{font-size:8px!important;color:#fff!important}.mobile-dock-primary.active{background:linear-gradient(180deg,rgba(208,132,39,.30),#0a283c)!important;box-shadow:0 0 0 2px rgba(241,170,62,.16),0 0 24px rgba(241,162,49,.13)!important}

  /* Parça taşırken kutu kapanmaz; hedef pano sabit kalır. */
  .puzzle-piece.mobile-lifted{filter:drop-shadow(0 13px 14px rgba(0,0,0,.45)) drop-shadow(0 0 9px rgba(244,184,73,.20))!important}

  /* Elde parça bilgisi ve araç sheet'i alt dockun üstünde kalır. */
  .hand-hint{bottom:calc(88px + env(safe-area-inset-bottom))!important}
  .game-workspace.mobile-drawer-open .hand-hint{bottom:calc(var(--mobile-drawer-height) + 93px + env(safe-area-inset-bottom))!important}
  .mobile-tools-sheet{bottom:calc(84px + env(safe-area-inset-bottom))!important;max-height:min(64dvh,540px)!important}

  /* Odak modunda da yeni sabit dock kaybolmasın. */
  .game-shell.focus-mode .mobile-bottom-dock,.game-shell.focus-mode .mobile-play-status{display:grid!important}.game-shell.focus-mode .mobile-play-status{display:flex!important}
}

@media (max-width:390px){
  .mobile-game-topbar{left:6px!important;right:6px!important}.mobile-game-summary{grid-template-columns:38px minmax(0,1fr)!important;gap:7px!important}.mobile-game-thumb{width:38px!important;height:38px!important}.mobile-game-title strong{font-size:12px!important}.mobile-game-title small{font-size:7.3px!important;gap:4px!important}#mobileGameMultiplier{min-width:27px!important;padding:0 5px!important}
  .game-shell{--mobile-drawer-height:clamp(258px,37dvh,322px)!important}.mobile-play-status{font-size:7.8px!important;right:64px!important}.mobile-quick-tools{right:5px!important;width:52px!important}.mobile-quick-tool{width:52px!important;min-width:52px!important;height:58px!important;min-height:58px!important}.mobile-dock-action strong{font-size:7px!important}
}


/* ========================================================================== */
/* v1.31.0 — PHONE GAME V2: ayrı mobil oyun + serbest yükseklikte parça kutusu */
/* ========================================================================== */
.mobile-tray-grabber{display:none}
.puzzle-piece.pointer-grabbed:hover{transition:none!important}

body.yo-phone-game.game-open,
body.yo-phone-game.game-open #gameView,
body.yo-phone-game.game-open #gameView *:not(input):not(textarea):not(select):not([contenteditable="true"]){
  -webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;
}
body.yo-phone-game.game-open #gameView img{ -webkit-user-drag:none!important; user-drag:none!important; pointer-events:none; }
body.yo-phone-game.game-open #gameView button img{pointer-events:none!important}
body.yo-phone-game.game-open #gameView input,
body.yo-phone-game.game-open #gameView textarea,
body.yo-phone-game.game-open #gameView select,
body.yo-phone-game.game-open #gameView [contenteditable="true"]{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}

@media (max-width:820px){
  body.yo-phone-game.game-open .game-view,
  body.yo-phone-game.game-open .game-shell,
  body.yo-phone-game.game-open .workspace-panel,
  body.yo-phone-game.game-open .game-workspace{height:100dvh!important;min-height:0!important;width:100%!important;overflow:hidden!important}

  body.yo-phone-game.game-open .game-header{display:none!important}
  body.yo-phone-game.game-open .game-shell{position:fixed!important;inset:0!important;padding:0!important;display:block!important;--mobile-tray-height:260px!important;background:#041725!important}
  body.yo-phone-game.game-open .workspace-panel,
  body.yo-phone-game.game-open .game-workspace{position:absolute!important;inset:0!important}
  body.yo-phone-game.game-open .game-workspace{background:radial-gradient(circle at 52% 27%,#153e59 0%,#08283e 48%,#031522 100%)!important}

  body.yo-phone-game.game-open .mobile-game-topbar{display:grid!important;position:absolute!important;z-index:30500!important;left:8px!important;right:8px!important;top:calc(6px + env(safe-area-inset-top))!important;height:58px!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:7px!important;padding:5px!important;border:1px solid rgba(151,197,223,.16)!important;border-radius:18px!important;background:rgba(4,23,37,.96)!important;box-shadow:0 12px 36px rgba(0,0,0,.26)!important;backdrop-filter:blur(18px)!important}
  body.yo-phone-game.game-open .mobile-game-summary{grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important}
  body.yo-phone-game.game-open .mobile-game-thumb{width:38px!important;height:38px!important;border-radius:11px!important;border:1px solid rgba(238,168,62,.52)!important}
  body.yo-phone-game.game-open .mobile-game-title strong{font-size:13px!important;line-height:1.1!important}
  body.yo-phone-game.game-open .mobile-game-title small{font-size:8px!important;gap:5px!important;margin-top:4px!important}
  body.yo-phone-game.game-open #mobileGameMultiplier{background:rgba(229,147,47,.18)!important;color:#ffc25e!important;border:1px solid rgba(241,169,68,.32)!important;border-radius:999px!important;padding:3px 6px!important}

  /* Gereksiz üst HUD mobil oyunda tamamen kalkar; pano ana kahramandır. */
  body.yo-phone-game.game-open .workspace-hud,
  body.yo-phone-game.game-open .play-tools,
  body.yo-phone-game.game-open .game-side,
  body.yo-phone-game.game-open .mobile-play-status{display:none!important}

  body.yo-phone-game.game-open .board-stage{z-index:20!important;border-radius:0!important;overflow:visible!important;filter:drop-shadow(0 18px 34px rgba(0,0,0,.2))!important}
  body.yo-phone-game.game-open .puzzle-board{border-radius:2px!important;box-shadow:0 0 0 1px rgba(235,167,62,.76),0 0 0 4px rgba(1,15,25,.44),0 20px 48px rgba(0,0,0,.34)!important}
  body.yo-phone-game.game-open .board-surface,
  body.yo-phone-game.game-open .board-reference{border-radius:0!important}

  /* İki küçük floating araç, pano kenarında. */
  body.yo-phone-game.game-open .mobile-quick-tools{display:flex!important;position:absolute!important;z-index:30450!important;left:auto!important;right:7px!important;top:calc(76px + env(safe-area-inset-top))!important;bottom:auto!important;width:48px!important;height:auto!important;flex-direction:column!important;gap:7px!important;opacity:1!important;pointer-events:auto!important;transform:none!important}
  body.yo-phone-game.game-open .mobile-quick-tool{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-radius:15px!important;padding:0!important;display:grid!important;place-items:center!important;background:rgba(6,34,52,.94)!important;border:1px solid rgba(146,194,222,.17)!important;box-shadow:0 8px 22px rgba(0,0,0,.23)!important}
  body.yo-phone-game.game-open .mobile-quick-tool span{font-size:19px!important}
  body.yo-phone-game.game-open .mobile-quick-tool strong{display:none!important}

  /* Serbest yükseklikte gerçek bottom sheet. */
  body.yo-phone-game.game-open .piece-tray{display:grid!important;position:absolute!important;z-index:30300!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;height:var(--mobile-tray-height)!important;min-height:0!important;padding:0 9px calc(68px + env(safe-area-inset-bottom))!important;grid-template-rows:27px 39px 40px minmax(0,1fr)!important;border:1px solid rgba(151,196,222,.18)!important;border-bottom:0!important;border-radius:27px 27px 0 0!important;background:linear-gradient(180deg,rgba(7,31,48,.998),rgba(3,22,35,.998))!important;box-shadow:0 -16px 50px rgba(0,0,0,.42)!important;overflow:hidden!important;transition:none!important}
  body.yo-phone-game.game-open .piece-tray::before{display:none!important}
  body.yo-phone-game.game-open .mobile-tray-grabber{grid-row:1;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;position:relative!important;z-index:40!important;height:27px!important;touch-action:none!important;cursor:ns-resize!important}
  body.yo-phone-game.game-open .mobile-tray-grabber span{width:42px!important;height:4px!important;border-radius:999px!important;background:rgba(206,225,236,.34)!important;box-shadow:0 0 0 1px rgba(255,255,255,.025)!important}
  body.yo-phone-game.game-open .mobile-tray-grabber b{position:absolute!important;right:13px!important;top:4px!important;color:#91aab8!important;font-size:16px!important;line-height:1!important;transition:transform .15s ease!important}
  body.yo-phone-game.game-open .mobile-tray-resizing .mobile-tray-grabber span{background:#e9a63e!important;box-shadow:0 0 12px rgba(233,166,62,.38)!important}

  body.yo-phone-game.game-open .piece-tray .tray-header{grid-row:2!important;height:39px!important;min-height:39px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
  body.yo-phone-game.game-open .piece-tray .tray-title{width:100%!important;height:39px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
  body.yo-phone-game.game-open .piece-tray .tray-title .tray-kicker,
  body.yo-phone-game.game-open .piece-tray .tray-title small{display:none!important}
  body.yo-phone-game.game-open .piece-tray .tray-title strong{font-size:14px!important;color:#edf5f8!important}
  body.yo-phone-game.game-open .piece-tray .tray-title strong b{font-size:18px!important;color:#f0aa3d!important}
  body.yo-phone-game.game-open .piece-tray .tray-actions{display:none!important}
  body.yo-phone-game.game-open .piece-tray .tray-collapse{display:none!important}

  body.yo-phone-game.game-open .piece-tray .tray-tabs{grid-row:3!important;height:40px!important;min-height:40px!important;padding:4px 0!important;gap:5px!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;scroll-snap-type:x proximity!important}
  body.yo-phone-game.game-open .piece-tray .tray-tabs::-webkit-scrollbar{display:none!important}
  body.yo-phone-game.game-open .piece-tray .tray-tab{flex:0 0 auto!important;height:31px!important;min-height:31px!important;padding:0 11px!important;border-radius:11px!important;font-size:9px!important;background:rgba(3,21,34,.62)!important;border:1px solid rgba(142,189,216,.12)!important;scroll-snap-align:start!important}
  body.yo-phone-game.game-open .piece-tray .tray-tab.active{background:rgba(224,144,45,.14)!important;color:#ffc260!important;border-color:rgba(235,165,62,.6)!important}

  body.yo-phone-game.game-open .piece-tray .tray-pieces-layer{grid-row:4!important;min-height:0!important;padding:8px 40px 6px!important;overflow:hidden!important;contain:layout!important}
  body.yo-phone-game.game-open .tray-pieces-layer .puzzle-piece{transform-origin:top left!important;filter:drop-shadow(0 5px 5px rgba(0,0,0,.36))!important}

  body.yo-phone-game.game-open .piece-tray .tray-navigation{position:absolute!important;z-index:25!important;left:0!important;right:0!important;top:106px!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;display:block!important;background:transparent!important;pointer-events:none!important}
  body.yo-phone-game.game-open .piece-tray .tray-navigation span{display:none!important}
  body.yo-phone-game.game-open .piece-tray .tray-navigation button{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;width:34px!important;height:50px!important;min-width:34px!important;min-height:50px!important;border-radius:0 13px 13px 0!important;background:rgba(4,25,39,.88)!important;border:1px solid rgba(147,194,220,.14)!important;color:#e6f0f5!important;font-size:23px!important;pointer-events:auto!important}
  body.yo-phone-game.game-open .piece-tray #trayPrev{left:-1px!important}
  body.yo-phone-game.game-open .piece-tray #trayNext{right:-1px!important;border-radius:13px 0 0 13px!important}
  body.yo-phone-game.game-open .piece-tray .tray-guide{display:none!important}

  /* Peek: en alta kadar çekince sadece tutamak + kalan parça + üç ana aksiyon kalır. */
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray{grid-template-rows:27px 28px 0 minmax(0,1fr)!important;padding-bottom:calc(63px + env(safe-area-inset-bottom))!important}
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray .tray-tabs,
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray .tray-pieces-layer,
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray .tray-navigation{display:none!important}
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray .tray-header{height:28px!important;min-height:28px!important}
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray .tray-title{height:28px!important}
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray .tray-title strong{font-size:11px!important}
  body.yo-phone-game.game-open .mobile-tray-peek .mobile-tray-grabber b{transform:rotate(180deg)!important}

  /* Compact: filtreleri sakla; tek/birkaç satır büyük parçaya alan aç. */
  body.yo-phone-game.game-open .mobile-tray-compact .piece-tray{grid-template-rows:27px 34px 0 minmax(0,1fr)!important}
  body.yo-phone-game.game-open .mobile-tray-compact .piece-tray .tray-tabs{display:none!important}
  body.yo-phone-game.game-open .mobile-tray-compact .piece-tray .tray-navigation{top:61px!important}

  /* Mobil dock artık yalnız üç temel hareket: kalabalık yok. */
  body.yo-phone-game.game-open .mobile-bottom-dock{display:grid!important;position:absolute!important;z-index:35!important;left:0!important;right:0!important;bottom:0!important;height:calc(64px + env(safe-area-inset-bottom))!important;padding:5px max(18px,env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-right))!important;grid-template-columns:1fr 1.35fr 1fr!important;gap:8px!important;align-items:center!important;background:linear-gradient(180deg,rgba(4,25,39,.68),rgba(2,17,28,.98))!important;border-top:1px solid rgba(143,190,217,.10)!important;box-shadow:0 -8px 24px rgba(0,0,0,.16)!important}
  body.yo-phone-game.game-open .mobile-bottom-dock [data-mobile-dock-action="spread"],
  body.yo-phone-game.game-open .mobile-bottom-dock [data-mobile-dock-action="gather"]{display:none!important}
  body.yo-phone-game.game-open .mobile-dock-action{height:50px!important;min-height:50px!important;border-radius:15px!important;padding:3px!important;gap:3px!important;background:#092b42!important;border:1px solid rgba(147,194,221,.13)!important;box-shadow:none!important}
  body.yo-phone-game.game-open .mobile-dock-action span{font-size:17px!important}
  body.yo-phone-game.game-open .mobile-dock-action strong{font-size:7.8px!important}
  body.yo-phone-game.game-open .mobile-dock-primary{height:54px!important;margin:0!important;border-radius:17px!important;background:linear-gradient(180deg,rgba(219,141,42,.19),#0a2b42)!important;border-color:rgba(238,170,68,.55)!important;box-shadow:inset 0 0 0 1px rgba(238,170,68,.05)!important}
  body.yo-phone-game.game-open .mobile-dock-primary span{font-size:20px!important}

  body.yo-phone-game.game-open .hand-hint{bottom:calc(var(--mobile-tray-height) + 8px)!important;width:min(320px,calc(100vw - 72px))!important}
  body.yo-phone-game.game-open .mobile-tools-sheet{bottom:calc(12px + env(safe-area-inset-bottom))!important;z-index:37000!important;max-height:min(72dvh,600px)!important}

  body.yo-phone-game.game-open .puzzle-piece.mobile-lifted{filter:drop-shadow(0 12px 13px rgba(0,0,0,.45)) drop-shadow(0 0 9px rgba(241,165,57,.22))!important}
  body.yo-phone-game.game-open .puzzle-piece.dragging,
  body.yo-phone-game.game-open .puzzle-piece.held{transition:none!important;touch-action:none!important}
}

/* Tablet oyun mantığı mobil sınıfa girmez. 820px altındaki eski mobil görünüm tablet JS'ini bozmasın. */
@media (max-width:820px){
  body.yo-tablet-game.game-open .mobile-game-topbar,
  body.yo-tablet-game.game-open .mobile-quick-tools,
  body.yo-tablet-game.game-open .mobile-bottom-dock,
  body.yo-tablet-game.game-open .mobile-play-status,
  body.yo-tablet-game.game-open .mobile-tray-grabber{display:none!important}
  body.yo-tablet-game.game-open .game-header{display:grid!important;position:relative!important;height:auto!important;min-height:78px!important}
  body.yo-tablet-game.game-open .game-shell{position:relative!important;inset:auto!important;height:calc(100dvh - 92px)!important;min-height:620px!important;display:grid!important;grid-template-columns:76px minmax(0,1fr) 220px!important;gap:8px!important;padding:8px!important;overflow:hidden!important}
  body.yo-tablet-game.game-open .workspace-panel{position:relative!important;inset:auto!important;height:100%!important}
  body.yo-tablet-game.game-open .game-workspace{position:relative!important;inset:auto!important;height:100%!important;min-height:0!important;border-radius:16px!important}
  body.yo-tablet-game.game-open .game-toolbar{display:flex!important}
  body.yo-tablet-game.game-open .game-side{display:flex!important}
  body.yo-tablet-game.game-open .workspace-hud{display:flex!important;top:8px!important;left:8px!important;right:8px!important}
  body.yo-tablet-game.game-open .piece-tray{left:8px!important;right:8px!important;bottom:8px!important;height:170px!important;min-height:170px!important;border-radius:16px!important;grid-template-rows:46px 36px minmax(0,1fr)!important;padding:0!important}
  body.yo-tablet-game.game-open .piece-tray .tray-header{display:flex!important;height:46px!important;min-height:46px!important;padding:5px 42px 5px 9px!important}
  body.yo-tablet-game.game-open .piece-tray .tray-tabs{display:flex!important;height:36px!important;min-height:36px!important}
  body.yo-tablet-game.game-open .piece-tray .tray-pieces-layer{display:block!important}
}

/* v1.31.0 — PHONE GAME V3: az parça için daha ferah uygulama deneyimi */
@media (max-width:820px){
  body.yo-phone-game.game-open .game-shell{--mobile-tray-height:245px!important}
  body.yo-phone-game.game-open .mobile-game-topbar{
    left:10px!important;right:10px!important;top:calc(7px + env(safe-area-inset-top))!important;height:60px!important;
    border-radius:20px!important;background:linear-gradient(180deg,rgba(5,28,44,.985),rgba(3,20,33,.985))!important;
    border-color:rgba(159,204,229,.18)!important;box-shadow:0 12px 34px rgba(0,0,0,.28)!important
  }
  body.yo-phone-game.game-open .mobile-game-back,
  body.yo-phone-game.game-open .mobile-game-more{width:44px!important;height:44px!important;border-radius:15px!important}
  body.yo-phone-game.game-open .mobile-game-title small{font-size:8.5px!important}

  body.yo-phone-game.game-open .mobile-quick-tools{right:8px!important;top:calc(79px + env(safe-area-inset-top))!important;gap:8px!important}
  body.yo-phone-game.game-open .mobile-quick-tool{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:16px!important;background:rgba(5,31,48,.91)!important;backdrop-filter:blur(12px)!important}

  body.yo-phone-game.game-open .piece-tray{
    border-radius:25px 25px 0 0!important;padding-left:11px!important;padding-right:11px!important;
    background:linear-gradient(180deg,rgba(8,35,53,.998) 0%,rgba(4,25,39,.998) 54%,rgba(2,18,30,.999) 100%)!important;
    box-shadow:0 -12px 44px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.035)!important
  }
  body.yo-phone-game.game-open .mobile-tray-grabber{height:30px!important}
  body.yo-phone-game.game-open .mobile-tray-grabber::before{
    content:"Parça kutusunu çek";position:absolute;left:14px;top:8px;color:#7895a5;font:800 8px/1 var(--font);letter-spacing:.04em;opacity:.86
  }
  body.yo-phone-game.game-open .mobile-tray-grabber span{width:48px!important;height:5px!important;background:rgba(220,235,243,.42)!important}
  body.yo-phone-game.game-open .mobile-tray-grabber b{right:14px!important;top:6px!important;color:#f0ad48!important}
  body.yo-phone-game.game-open .mobile-tray-resizing .piece-tray{box-shadow:0 -15px 54px rgba(0,0,0,.46),0 -1px 0 rgba(239,170,65,.28)!important}

  body.yo-phone-game.game-open .piece-tray .tray-header{height:38px!important;min-height:38px!important}
  body.yo-phone-game.game-open .piece-tray .tray-title strong{font-size:13px!important;letter-spacing:.01em!important}
  body.yo-phone-game.game-open .piece-tray .tray-title strong b{font-size:20px!important}
  body.yo-phone-game.game-open .piece-tray .tray-tabs{padding:4px 1px 5px!important;gap:6px!important}
  body.yo-phone-game.game-open .piece-tray .tray-tab{height:32px!important;min-height:32px!important;padding:0 12px!important;font-size:9.5px!important;border-radius:12px!important}
  body.yo-phone-game.game-open .piece-tray .tray-pieces-layer{padding:10px 42px 8px!important}
  body.yo-phone-game.game-open .tray-pieces-layer .puzzle-piece{filter:drop-shadow(0 7px 7px rgba(0,0,0,.4))!important}

  body.yo-phone-game.game-open .piece-tray .tray-navigation{top:108px!important}
  body.yo-phone-game.game-open .piece-tray .tray-navigation button{width:36px!important;height:58px!important;min-width:36px!important;min-height:58px!important;background:rgba(4,27,42,.92)!important;border-color:rgba(154,201,226,.16)!important}

  /* Tam yukarı kaldırıldığında kutu bir parça galerisi gibi davranır. */
  body.yo-phone-game.game-open .mobile-tray-max .piece-tray .tray-pieces-layer{padding-top:14px!important;padding-bottom:12px!important}
  body.yo-phone-game.game-open .mobile-tray-max .piece-tray .tray-tab{font-size:10px!important;padding-inline:14px!important}
  body.yo-phone-game.game-open .mobile-tray-max .mobile-tray-grabber::before{content:"Aşağı çekerek oyun alanını büyüt"}

  /* En aşağıda yalnız kompakt oyun dock'u kalır; pano mümkün olduğunca büyür. */
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray{grid-template-rows:26px 0 0 minmax(0,1fr)!important;padding-bottom:calc(60px + env(safe-area-inset-bottom))!important}
  body.yo-phone-game.game-open .mobile-tray-peek .piece-tray .tray-header{display:none!important}
  body.yo-phone-game.game-open .mobile-tray-peek .mobile-tray-grabber::before{content:"Parçaları açmak için yukarı çek"}
  body.yo-phone-game.game-open .mobile-tray-peek .mobile-tray-grabber b{transform:rotate(180deg)!important}

  body.yo-phone-game.game-open .mobile-bottom-dock{height:calc(60px + env(safe-area-inset-bottom))!important;padding:5px 16px calc(5px + env(safe-area-inset-bottom))!important;gap:9px!important;background:linear-gradient(180deg,rgba(3,24,38,.84),rgba(2,17,28,.99))!important}
  body.yo-phone-game.game-open .mobile-dock-action{height:46px!important;min-height:46px!important;border-radius:14px!important;background:rgba(9,43,65,.88)!important}
  body.yo-phone-game.game-open .mobile-dock-primary{height:50px!important;border-radius:16px!important;border-color:rgba(244,174,65,.7)!important;background:linear-gradient(180deg,rgba(236,157,53,.23),rgba(10,43,65,.98))!important;box-shadow:0 0 0 1px rgba(247,174,64,.05),0 6px 18px rgba(0,0,0,.22)!important}
  body.yo-phone-game.game-open .mobile-dock-action strong{font-size:8.2px!important}

  /* Kesin kavrama: hover/drag dönüşümü tutulan noktanın altından parçayı kaçırmasın. */
  body.yo-phone-game.game-open .puzzle-piece.pointer-grabbed,
  body.yo-phone-game.game-open .puzzle-piece.pointer-grabbed:hover{transform-origin:top left!important;transition:none!important}
}

/* v1.31.0 mobile final controls: pano tam genişlik, üçlü uygulama dock'u */
@media (max-width:820px){
  body.yo-phone-game.game-open .game-shell{--mobile-tray-height:330px!important}
  body.yo-phone-game.game-open .mobile-quick-tools{display:none!important}
  body.yo-phone-game.game-open .mobile-bottom-dock{grid-template-columns:1fr 1.28fr 1fr!important}
  body.yo-phone-game.game-open .mobile-bottom-dock [data-mobile-dock-action="focus"],
  body.yo-phone-game.game-open .mobile-bottom-dock [data-mobile-dock-action="tools"]{display:grid!important}
}


/* ========================================================================== */
/* v1.32.0 — yeni puzzle seçkisi, eksen dengeli snap, gerçek boyutta sürükleme */
/* ========================================================================== */

/* Pano çerçevesi daha ince; parça resmiyle yarışmaz. */
.board-stage{border-width:1px!important;box-shadow:0 0 0 1px rgba(239,180,70,.28),0 18px 46px rgba(0,0,0,.30)!important}
.puzzle-board{border-width:1px!important;box-shadow:0 0 0 1px rgba(235,168,62,.48),0 16px 38px rgba(0,0,0,.28)!important}

/* Tutulan parça gerçek boyutta kalır; eski hover/drag scale hareketlerini iptal et. */
.puzzle-piece.dragging,.puzzle-piece.held,.puzzle-piece.pointer-grabbed,
.puzzle-piece.dragging:hover,.puzzle-piece.held:hover,.puzzle-piece.pointer-grabbed:hover{transition:none!important}
.drag-layer .puzzle-piece.dragging,.drag-layer .puzzle-piece.held{filter:drop-shadow(0 13px 12px rgba(0,0,0,.55)) brightness(1.04)!important}

/* Snap: kısa mıknatıs oturuşu + turuncu temas halkası. */
@keyframes yoSnapSettle{0%{filter:drop-shadow(0 0 0 rgba(255,151,35,0)) brightness(1)}32%{filter:drop-shadow(0 0 13px rgba(255,151,35,.92)) brightness(1.12)}68%{filter:drop-shadow(0 0 7px rgba(255,151,35,.58)) brightness(1.05)}100%{filter:drop-shadow(0 4px 5px rgba(0,0,0,.36)) brightness(1)}}
.puzzle-piece.snap-settle{animation:yoSnapSettle .42s cubic-bezier(.2,.78,.2,1)!important}
.puzzle-piece.snap-ready{filter:drop-shadow(0 0 10px rgba(255,166,53,.82)) brightness(1.08)!important}

/* Ana sayfa: son eklenen 4 puzzle. */
.new-puzzles-section{margin:28px 0 34px;padding:26px;border:1px solid rgba(126,171,199,.16);border-radius:28px;background:linear-gradient(145deg,rgba(8,35,53,.94),rgba(4,23,37,.96));box-shadow:0 22px 60px rgba(0,0,0,.20)}
.new-puzzles-heading{margin-bottom:18px}.new-puzzles-heading p{margin:7px 0 0;color:#8fa9b8;font-size:13px}.new-puzzles-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.new-puzzle-card{position:relative;isolation:isolate;min-height:245px;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:#08283d;cursor:pointer;box-shadow:0 13px 30px rgba(0,0,0,.20);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.new-puzzle-card:hover,.new-puzzle-card:focus-visible{transform:translateY(-4px);border-color:rgba(244,181,72,.52);box-shadow:0 18px 38px rgba(0,0,0,.30);outline:none}.new-puzzle-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}.new-puzzle-card:hover>img{transform:scale(1.035)}
.new-puzzle-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(2,14,23,.03) 25%,rgba(2,14,23,.90) 100%)}.new-puzzle-number{position:absolute;z-index:2;left:14px;top:13px;color:rgba(255,255,255,.72);font:900 10px/1 var(--font);letter-spacing:.16em}.new-puzzle-copy{position:absolute;z-index:2;left:16px;right:48px;bottom:16px;display:grid;gap:4px}.new-puzzle-copy small{color:#f0bb55;font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.new-puzzle-copy strong{color:#fff;font-size:17px;line-height:1.12}.new-puzzle-copy span{color:#aec2cd;font-size:9px;font-weight:750}.new-puzzle-play{position:absolute;z-index:3;right:14px;bottom:16px;display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(5,28,43,.72);color:#ffd069;font-size:11px;backdrop-filter:blur(8px)}
@media(max-width:1050px){.new-puzzles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.new-puzzle-card{min-height:220px}}
@media(max-width:560px){.new-puzzles-section{margin:18px 8px 24px;padding:16px 12px;border-radius:22px}.new-puzzles-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.new-puzzle-card{min-height:180px;border-radius:16px}.new-puzzle-copy{left:11px;right:34px;bottom:11px}.new-puzzle-copy strong{font-size:13px}.new-puzzle-copy span{font-size:7.5px}.new-puzzle-play{right:8px;bottom:9px;width:28px;height:28px}.new-puzzle-number{left:10px;top:10px}}

/* Mobil araç paneli: yalnız devre dışı butonlar sönük; aktif araçlar net ve kontrastlı. */
@media(max-width:820px){
  .mobile-tools-sheet{background:#06243a!important;border-color:rgba(127,190,226,.28)!important;box-shadow:0 26px 74px rgba(0,0,0,.68)!important}
  .mobile-sheet-head span{color:#9eb9c9!important}.mobile-sheet-head strong{color:#fff!important}
  .mobile-sheet-grid>button{opacity:1!important;background:linear-gradient(180deg,#0c3149,#09283e)!important;border-color:rgba(157,202,228,.20)!important;color:#f3f8fb!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
  .mobile-sheet-grid>button span{opacity:1!important;color:#ffc45f!important;text-shadow:0 0 12px rgba(255,181,60,.22)!important;font-size:21px!important}
  .mobile-sheet-grid>button strong{opacity:1!important;color:#edf5f8!important;font-size:9px!important;font-weight:900!important}
  .mobile-sheet-grid>button:active{transform:scale(.97)!important;background:#113a52!important}
  .mobile-sheet-grid>button:disabled{opacity:.42!important;filter:saturate(.55)!important}
  body.yo-phone-game.game-open .puzzle-board{box-shadow:0 0 0 1px rgba(235,167,62,.48),0 15px 36px rgba(0,0,0,.30)!important}
}

/* Tamamlama kutlaması: Lottie önce, sonuç/başka puzzle ekranı sonra. */
.completion-celebration-overlay{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 42%,rgba(29,72,86,.38),rgba(2,13,22,.90) 62%,rgba(1,8,14,.96));opacity:0;pointer-events:none;transition:opacity .24s ease;backdrop-filter:blur(7px)}
.completion-celebration-overlay[hidden]{display:none!important}.completion-celebration-overlay.is-visible{opacity:1}.completion-celebration-overlay.is-leaving{opacity:0}
.completion-celebration-card{display:grid;justify-items:center;width:min(520px,94vw);text-align:center}.completion-celebration-lottie{width:min(430px,84vw);aspect-ratio:1}.completion-celebration-card>span{margin-top:-24px;color:#f5bd55;font-size:10px;font-weight:950;letter-spacing:.2em}.completion-celebration-card>strong{margin-top:7px;color:#fff;font-family:var(--display);font-size:clamp(38px,9vw,66px);line-height:.95}.completion-celebration-card>small{margin-top:9px;color:#bad0dc;font-size:13px;font-weight:750}
.completion-next-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:15px 16px;border:1px solid rgba(244,183,72,.24);border-radius:18px;background:linear-gradient(135deg,rgba(244,183,72,.10),rgba(8,39,58,.72))}.completion-next-card>div{display:grid;gap:3px}.completion-next-card span{color:#f1b956;font-size:8px;font-weight:950;letter-spacing:.14em}.completion-next-card strong{color:#fff;font-size:16px}.completion-next-card small{color:#9fb6c4;font-size:9px}.completion-actions-two{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin-top:10px!important}
@media(max-width:620px){.completion-next-card{display:grid}.completion-next-card .button{width:100%}.completion-celebration-card>span{margin-top:-12px}}

/* v1.32.0 drag correction: JS inline zoom scale is authoritative; no hover shrink/grow. */
.drag-layer .puzzle-piece,.drag-layer .puzzle-piece:hover,.drag-layer .puzzle-piece.pointer-grabbed:hover{transition:none!important;transform-origin:top left!important}

@media(max-width:820px){body.yo-phone-game.game-open .mobile-tools-sheet{z-index:37000!important}.game-workspace.mobile-tools-open::after{z-index:35000!important;background:rgba(1,10,17,.42)!important}}

/* v1.32.0 homepage hero: Haftanın Meydan Okuması yerine son eklenen 4 puzzle. */
.compat-hidden{display:none!important}
.hero-new-puzzles{display:block!important;padding-top:28px!important;min-height:0!important}
.hero-new-puzzles-section{margin:0!important;padding:clamp(22px,2.4vw,34px)!important;border-radius:30px!important;background:radial-gradient(circle at 92% 0%,rgba(244,181,72,.10),transparent 28%),linear-gradient(145deg,rgba(8,35,53,.97),rgba(4,22,36,.98))!important}
.hero-new-puzzles-heading{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:28px!important;margin-bottom:22px!important}
.hero-new-puzzles-heading h1{margin:5px 0 7px!important;font-family:var(--display)!important;font-size:clamp(34px,4vw,58px)!important;line-height:.98!important;letter-spacing:-.035em!important}
.hero-new-puzzles-heading p{max-width:720px!important;font-size:13px!important;line-height:1.55!important}
.hero-new-puzzles-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.hero-new-puzzles-grid .new-puzzle-card{min-height:300px!important}
@media(max-width:980px){.hero-new-puzzles-heading{align-items:flex-start!important;flex-direction:column!important;gap:12px!important}.hero-new-puzzles-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hero-new-puzzles-grid .new-puzzle-card{min-height:240px!important}}
@media(max-width:560px){.hero-new-puzzles{padding-top:14px!important}.hero-new-puzzles-section{padding:15px 11px!important;border-radius:22px!important}.hero-new-puzzles-heading h1{font-size:30px!important}.hero-new-puzzles-heading p{font-size:11px!important}.hero-new-puzzles-heading .button{width:100%!important}.hero-new-puzzles-grid{gap:8px!important}.hero-new-puzzles-grid .new-puzzle-card{min-height:185px!important}}

/* v1.33.0 — classic homepage hero restored; latest puzzles moved lower */
.home-new-puzzles-lower{margin-top:38px;margin-bottom:42px}
.home-new-puzzles-lower .section-heading{align-items:flex-end}
@media(max-width:820px){.home-new-puzzles-lower{margin-top:24px;margin-bottom:28px}.home-new-puzzles-lower .section-heading{align-items:flex-start}}

.homepage-weekly-hero{margin-top:28px!important;margin-bottom:0!important}
.homepage-weekly-hero .weekly-challenge-card{min-height:560px}
.homepage-weekly-hero .weekly-challenge-copy{min-height:560px}
@media(max-width:820px){.homepage-weekly-hero{margin-top:16px!important}.homepage-weekly-hero .weekly-challenge-card,.homepage-weekly-hero .weekly-challenge-copy{min-height:420px}}


/* v1.36 — logo / Keşfet çakışmasını engelle */
@media (min-width:1381px){
  .site-header>.brand{flex:0 0 170px!important;min-width:170px!important;margin-right:8px!important}
  .site-header>.brand .brand-full-logo{width:158px!important;height:52px!important;max-width:158px!important}
  .site-header>.desktop-nav{justify-content:flex-start!important;flex:1 1 auto!important;margin-left:0!important;gap:clamp(4px,.6vw,10px)!important}
  .site-header>.desktop-nav .nav-link:first-child{margin-left:0!important}
}
@media (min-width:1381px) and (max-width:1560px){
  .site-header{padding-inline:clamp(18px,2.3vw,36px)!important;gap:14px!important}
  .site-header>.brand{flex-basis:154px!important;min-width:154px!important;margin-right:6px!important}
  .site-header>.brand .brand-full-logo{width:146px!important;max-width:146px!important}
  .site-header .nav-link{padding-inline:8px!important;font-size:11px!important}
}

/* ========================================================================== */
/* v1.38.0 — admin manual piece settings, SEO fields, pagination               */
/* ========================================================================== */
.piece-number-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.piece-number-inputs label{display:grid;gap:6px;color:#9fb7c6;font-size:10px;font-weight:800}
.piece-number-inputs input{width:100%;min-width:0;height:44px;padding:0 12px;border:1px solid rgba(143,188,215,.2);border-radius:12px;background:#071f31;color:#fff;font-size:16px;font-weight:900;text-align:center;outline:none}
.piece-number-inputs input:focus{border-color:rgba(244,181,72,.7);box-shadow:0 0 0 3px rgba(244,181,72,.09)}
.admin-seo-box{margin:18px 0;padding:0;border:1px solid rgba(139,184,210,.17);border-radius:16px;background:rgba(3,22,35,.5);overflow:hidden}
.admin-seo-box summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;color:#fff;font-weight:900}
.admin-seo-box summary::-webkit-details-marker{display:none}.admin-seo-box summary small{color:#8ca8b8;font-size:10px;font-weight:750}.admin-seo-box[open] summary{border-bottom:1px solid rgba(139,184,210,.13)}
.admin-seo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px}.admin-seo-grid label{display:grid;gap:6px;color:#d9e7ed;font-size:11px;font-weight:850}.admin-seo-grid label small{color:#7795a6;font-size:9px;font-weight:650}.admin-seo-grid input,.admin-seo-grid textarea{width:100%;padding:11px 12px;border:1px solid rgba(139,184,210,.18);border-radius:12px;background:#071f31;color:#fff;outline:none;resize:vertical}.admin-seo-grid input:focus,.admin-seo-grid textarea:focus{border-color:rgba(244,181,72,.6)}.admin-seo-grid .seo-description-field{grid-column:1/-1}.admin-seo-box>p{margin:0;padding:0 16px 16px;color:#7693a4;font-size:10px;line-height:1.5}
.admin-pagination,.collection-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:22px}.admin-pagination[hidden],.collection-pagination[hidden]{display:none!important}.admin-pagination button,.collection-pagination button{min-width:38px;height:38px;padding:0 11px;border:1px solid rgba(139,184,210,.18);border-radius:11px;background:#082a40;color:#dceaf0;font-weight:850;cursor:pointer}.admin-pagination button:hover,.collection-pagination button:hover,.admin-pagination button.active,.collection-pagination button.active{border-color:rgba(244,181,72,.62);background:rgba(244,181,72,.14);color:#ffd06b}.admin-pagination button:disabled,.collection-pagination button:disabled{opacity:.35;cursor:default}.admin-pagination span,.collection-pagination span{color:#728d9d;padding:0 3px}
.collection-results-panel .collection-grid{margin-top:4px}
@media(max-width:720px){.piece-number-inputs{grid-template-columns:repeat(3,1fr);gap:6px}.piece-number-inputs input{height:42px;padding:0 5px}.admin-seo-grid{grid-template-columns:1fr}.admin-seo-grid .seo-description-field{grid-column:auto}.admin-pagination,.collection-pagination{gap:5px}.admin-pagination button,.collection-pagination button{min-width:34px;height:36px;padding:0 8px;font-size:10px}}

/* Mobil sürükleme: tarayıcı seçimi/callout kapalı, tutulan parça ekseninde animasyon yok. */
@media(max-width:820px){
  body.yo-phone-game.game-open .puzzle-piece.dragging,
  body.yo-phone-game.game-open .puzzle-piece.held,
  body.yo-phone-game.game-open .drag-layer .puzzle-piece{transition:none!important;transform-origin:0 0!important;animation:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
}

/* v1.38.0 mobile drag precision: floating pieces are anchored to the visual viewport,
   not to a nested workspace box. This removes Safari/layout offset while dragging. */
@media (max-width:820px),(pointer:coarse){
  body.yo-phone-game.game-open .drag-layer{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    translate:none!important;
    pointer-events:none!important;
    overflow:visible!important;
    touch-action:none!important;
    z-index:50000!important;
  }
  body.yo-phone-game.game-open .drag-layer .puzzle-piece{
    position:absolute!important;
    transform-origin:0 0!important;
    transition:none!important;
    animation:none!important;
    -webkit-user-select:none!important;
    user-select:none!important;
    -webkit-touch-callout:none!important;
  }
}

/* v1.39.0 — homepage pagination + mobile shuffle */
.library-pagination{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:26px 0 4px}
.library-pagination[hidden]{display:none!important}
.library-pagination button{min-width:40px;height:40px;padding:0 12px;border:1px solid rgba(138,184,211,.2);border-radius:12px;background:#0a2b41;color:#dceaf1;font:850 11px/1 var(--font);cursor:pointer;transition:.18s ease}
.library-pagination button:hover:not(:disabled),.library-pagination button.active{border-color:rgba(247,182,71,.7);background:rgba(247,182,71,.14);color:#ffd06a;transform:translateY(-1px)}
.library-pagination button:disabled{opacity:.38;cursor:default}.library-pagination span{color:#7595a8;font-weight:900;padding:0 2px}
@media(max-width:620px){.library-pagination{gap:5px;margin-top:18px}.library-pagination button{height:38px;min-width:36px;padding:0 9px;font-size:10px}}


/* v1.40 homepage weekly players: rows start directly below heading and follow ranking order. */
.leaderboard-panel .leaderboard-list{align-self:start!important;align-content:start!important;grid-auto-rows:min-content!important;justify-content:stretch!important}
.leaderboard-panel .leaderboard-list li{align-self:start!important;height:auto!important;min-height:38px!important}


/* v1.40.2 — ana sayfa koleksiyonları: tam 5 kart, tek sıra */
@media (min-width:821px){
  .collections-panel .collection-strip{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    grid-template-rows:1fr!important;
    grid-auto-flow:column!important;
    grid-auto-columns:minmax(0,1fr)!important;
    overflow:hidden!important;
    gap:12px!important;
  }
  .collections-panel .collection-card{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
}


/* v1.40.3 — puzzle kartı favori rozeti: her kartta aynı ölçü ve hizalama */
.puzzle-card-image .card-favorite{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  line-height:1!important;
  white-space:nowrap!important;
  border-radius:999px!important;
  transform:none!important;
}
.puzzle-card-image .card-favorite small{
  display:inline-block!important;
  min-width:8px!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums!important;
}
.puzzle-card-image .card-favorite:hover,
.puzzle-card-image .card-favorite:focus-visible{
  transform:none!important;
}
@media(max-width:620px){
  .puzzle-card-image .card-favorite{
    top:10px!important;
    right:10px!important;
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:34px!important;
    min-height:34px!important;
  }
}

/* ========================================================================== */
/* v1.41.0 — Puzzle öner / destek & iletişim                                  */
/* ========================================================================== */
.puzzle-suggestion-cta{margin:34px 0 42px;padding:30px 32px;display:flex;align-items:center;justify-content:space-between;gap:28px;border:1px solid rgba(244,181,72,.27);border-radius:28px;background:radial-gradient(circle at 86% 18%,rgba(246,177,65,.14),transparent 30%),linear-gradient(140deg,rgba(8,39,58,.98),rgba(4,23,37,.98));box-shadow:0 20px 54px rgba(0,0,0,.22)}
.puzzle-suggestion-copy{max-width:790px}.puzzle-suggestion-copy h2{margin:7px 0 8px;font-family:var(--display);font-size:clamp(28px,3.4vw,48px);line-height:1;letter-spacing:-.035em}.puzzle-suggestion-copy p{margin:0;max-width:720px;color:#a9c0cd;font-size:13px;line-height:1.6}.puzzle-suggestion-cta>.button{flex:0 0 auto;min-width:190px}
.feedback-card{width:min(720px,94vw);max-height:min(88vh,820px);overflow:auto;padding:28px}.feedback-modal-heading{padding-right:48px}.feedback-modal-heading h2{margin:5px 0 8px;font-family:var(--display);font-size:36px;line-height:1}.feedback-modal-heading p{margin:0;color:#9db4c1;line-height:1.55}.feedback-form{display:grid;gap:15px;margin-top:22px}.feedback-form label{display:grid;gap:7px;color:#dce9ef;font-size:11px;font-weight:850}.feedback-form label>small{font-weight:650;color:#7895a5}.feedback-form input,.feedback-form textarea,.feedback-form select{width:100%;border:1px solid rgba(137,184,211,.18);border-radius:14px;background:#09283d;color:#f7fbfd;padding:12px 13px;font:inherit;font-size:13px;outline:none}.feedback-form textarea{resize:vertical;min-height:120px}.feedback-form input:focus,.feedback-form textarea:focus,.feedback-form select:focus{border-color:rgba(244,181,72,.65);box-shadow:0 0 0 3px rgba(244,181,72,.09)}.feedback-type-grid,.feedback-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.feedback-context{padding:10px 12px;border:1px solid rgba(244,181,72,.18);border-radius:12px;background:rgba(244,181,72,.07);color:#f0c36e;font-size:11px;font-weight:800}.feedback-privacy{grid-template-columns:auto 1fr!important;align-items:flex-start!important;gap:9px!important;color:#8faab8!important;font-weight:650!important;line-height:1.45}.feedback-privacy input{width:17px;height:17px;margin-top:1px}.feedback-privacy a{color:#f0be60}.feedback-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:3px}.feedback-status{min-height:18px;margin:0;color:#f3c667;font-size:11px;font-weight:800}.card-report{position:absolute;z-index:6;top:12px;left:12px;display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(3,19,30,.68);color:#e8f1f5;font-size:14px;opacity:0;transform:translateY(-2px);transition:opacity .18s ease,transform .18s ease,background .18s ease;backdrop-filter:blur(8px)}.puzzle-card:hover .card-report,.card-report:focus-visible{opacity:1;transform:none}.card-report:hover{background:rgba(146,56,55,.8);color:white}.game-report-button{white-space:nowrap}
@media(max-width:820px){.puzzle-suggestion-cta{margin:24px 8px 30px;padding:22px 18px;align-items:flex-start;flex-direction:column;border-radius:22px}.puzzle-suggestion-cta>.button{width:100%}.feedback-card{padding:22px 16px}.feedback-modal-heading h2{font-size:30px}.feedback-type-grid,.feedback-contact-grid{grid-template-columns:1fr}.feedback-actions{display:grid;grid-template-columns:1fr 1fr}.card-report{opacity:.82;transform:none;width:32px;height:32px}.game-bottom-bar .game-report-button{display:none!important}}

/* ========================================================================== */
/* v1.42.0 — Çocuk Modu: sade ana sayfa + çocuklara özel oyun arayüzü         */
/* ========================================================================== */
.kids-page-body{--kid-ink:#17364d;--kid-blue:#20aeea;--kid-yellow:#ffc83d;--kid-coral:#ff7f68;--kid-mint:#70d9c2;--kid-purple:#a685ef;background:#fff8e7!important;background-image:radial-gradient(circle at 5% 9%,rgba(255,196,69,.27),transparent 22%),radial-gradient(circle at 95% 18%,rgba(74,195,235,.20),transparent 25%),linear-gradient(#fffdf5,#fff8e7)!important;color:var(--kid-ink)!important}
.kids-page-body .kids-header{height:84px!important;border-bottom:1px solid rgba(28,84,112,.10)!important;background:rgba(255,253,245,.94)!important;box-shadow:0 8px 30px rgba(54,101,118,.07)!important}
.kids-page-body .kids-header nav a{font-size:13px!important}.kids-page-body .kids-header nav a.active{background:#e8f8ff!important;color:#137eb0!important}.kids-page-body .kids-profile-button{background:#1f9fd4!important;box-shadow:0 8px 20px rgba(26,151,204,.20)!important}
.kids-main{width:min(1380px,calc(100% - 40px))!important;padding:30px 0 66px!important}
.kids-hero-v142{position:relative;display:grid;grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);align-items:center;gap:42px;min-height:530px;padding:clamp(34px,5vw,68px);overflow:hidden;border:1px solid rgba(40,134,171,.10);border-radius:38px;background:radial-gradient(circle at 12% 15%,rgba(255,211,78,.42),transparent 25%),radial-gradient(circle at 92% 12%,rgba(77,197,238,.25),transparent 26%),linear-gradient(135deg,#fff1ae 0%,#fffdf4 45%,#dff7ff 100%);box-shadow:0 28px 75px rgba(51,96,112,.13)}
.kids-hero-v142::after{content:'✦';position:absolute;left:44%;bottom:8%;font-size:120px;line-height:1;color:rgba(255,160,83,.07);transform:rotate(17deg);pointer-events:none}.kids-eyebrow-v142,.kids-small-overline{display:inline-flex;align-items:center;gap:6px;color:#db7926;font-size:10px;font-weight:950;letter-spacing:.13em}.kids-hero-copy-v142 h1{margin:16px 0 15px;font-family:var(--display);font-size:clamp(50px,6vw,82px);line-height:.91;letter-spacing:-.045em;color:var(--kid-ink)}.kids-hero-copy-v142 h1 em{font-style:normal;color:#f28a2d}.kids-hero-copy-v142>p{max-width:590px;margin:0;color:#567383;font-size:17px;line-height:1.62}.kids-hero-actions-v142{display:flex;align-items:center;gap:12px;margin-top:26px}.kids-big-button,.kids-hero-actions-v142>a{min-height:58px;padding:0 24px;border-radius:18px;font:950 14px/1 var(--sans);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:pointer}.kids-big-button{border:0;background:linear-gradient(135deg,#ffbd36,#ff9b39);color:#18344b;box-shadow:0 14px 30px rgba(235,147,36,.25)}.kids-big-button span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#fff9;color:#cf6f15}.kids-hero-actions-v142>a{border:2px solid rgba(25,79,105,.11);color:#28556d;background:#fff9}.kids-hero-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:21px}.kids-hero-badges span{padding:8px 11px;border-radius:999px;background:#fff9;border:1px solid rgba(31,103,133,.09);color:#4d7380;font-size:10px;font-weight:900}
.kids-hero-puzzle{position:relative;isolation:isolate;display:block;width:100%;aspect-ratio:1.32;padding:0;overflow:hidden;border:10px solid rgba(255,255,255,.88);border-radius:34px;background:#fff;cursor:pointer;box-shadow:0 25px 54px rgba(37,103,126,.22);transform:rotate(1.2deg);transition:.22s ease}.kids-hero-puzzle:hover{transform:rotate(0deg) translateY(-4px)}.kids-hero-puzzle>img{width:100%;height:100%;object-fit:cover;display:block}.kids-hero-puzzle::after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 52%,rgba(8,43,61,.55))}.kids-hero-sticker{position:absolute;z-index:3;right:18px;top:18px;display:grid;place-items:center;width:82px;height:82px;border-radius:50%;background:#ff775f;color:#fff;font-size:9px;font-weight:950;letter-spacing:.08em;line-height:1.2;box-shadow:0 10px 24px rgba(208,85,60,.30);transform:rotate(8deg)}.kids-hero-play{position:absolute;z-index:3;left:18px;right:18px;bottom:16px;display:flex;align-items:center;gap:10px;color:#fff;text-align:left}.kids-hero-play b{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#ffc33f;color:#18364d;font-size:18px;box-shadow:0 8px 22px rgba(0,0,0,.18)}.kids-hero-play small{font-size:16px;font-weight:950;text-shadow:0 2px 8px rgba(0,0,0,.35)}
.kids-piece-fast,.kids-category-world,.kids-today,.kids-library-v142{margin-top:34px;padding:30px;border:1px solid rgba(33,102,132,.09);border-radius:30px;background:rgba(255,255,255,.78);box-shadow:0 18px 45px rgba(66,104,116,.08)}.kids-section-heading-v142{display:flex;align-items:flex-end;justify-content:space-between;gap:22px}.kids-section-heading-v142>div>span{color:#da7b28;font-size:9px;font-weight:950;letter-spacing:.14em}.kids-section-heading-v142 h2,.kids-library-head h2{margin:5px 0 4px;font-family:var(--display);font-size:clamp(31px,3.4vw,48px);line-height:1;color:var(--kid-ink)}.kids-section-heading-v142 p{margin:0;color:#738994;font-size:12px}.kids-section-heading-v142>strong{padding:9px 12px;border-radius:999px;background:#eaf8ff;color:#197fae;font-size:10px}.kids-section-heading-v142>button{border:0;background:transparent;color:#1684b6;font-weight:900;cursor:pointer}
.kids-piece-fast-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.kids-piece-fast-grid>button{position:relative;display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto auto;align-items:center;gap:2px 12px;min-height:110px;padding:18px 20px;border:2px solid transparent;border-radius:24px;background:#f5fbfd;color:#385b6b;text-align:left;cursor:pointer;transition:.18s ease}.kids-piece-fast-grid>button>span{grid-row:1/3;display:grid;place-items:center;width:58px;height:58px;border-radius:19px;background:#fff;font-size:28px}.kids-piece-fast-grid>button>strong{font-family:var(--display);font-size:33px;line-height:1;color:#183c53}.kids-piece-fast-grid>button>b{font-size:13px}.kids-piece-fast-grid>button>small{grid-column:2/4;color:#7c929d;font-size:10px}.kids-piece-fast-grid>button.easy{background:#f1fff8}.kids-piece-fast-grid>button.medium{background:#fff9e8}.kids-piece-fast-grid>button.hard{background:#f6f0ff}.kids-piece-fast-grid>button.active{border-color:#ffb83e;box-shadow:0 10px 24px rgba(234,158,47,.14);transform:translateY(-2px)}.kids-piece-fast-grid>button.active::after{content:'✓';position:absolute;right:13px;top:12px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ffb83e;color:#18364d;font-weight:950}
.kids-category-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:20px}.kids-category-card-v142{position:relative;isolation:isolate;min-height:185px;overflow:hidden;padding:0;border:3px solid transparent;border-radius:23px;background:#ddecf1;cursor:pointer;text-align:left;box-shadow:0 12px 28px rgba(51,95,111,.12);transition:.2s ease}.kids-category-card-v142:hover,.kids-category-card-v142.active{transform:translateY(-4px);border-color:#ffbd40}.kids-category-card-v142 img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.kids-category-card-v142:hover img{transform:scale(1.04)}.kids-category-shade{position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(9,35,50,.02) 32%,rgba(8,41,58,.84) 100%)}.kids-category-icon{position:absolute;z-index:2;left:12px;top:12px;display:grid;place-items:center;width:43px;height:43px;border-radius:15px;background:#fffda;font-size:22px;box-shadow:0 7px 16px rgba(0,0,0,.13)}.kids-category-copy{position:absolute;z-index:2;left:14px;right:14px;bottom:14px;display:flex;align-items:end;justify-content:space-between;gap:8px;color:#fff}.kids-category-copy strong{font-size:18px}.kids-category-copy small{padding:5px 7px;border-radius:999px;background:#fff2;font-size:9px;font-weight:800}
.kids-featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:20px}.kids-feature-card-v142,.kids-puzzle-card-v142{overflow:hidden;border:1px solid rgba(39,105,131,.10);border-radius:24px;background:#fff;cursor:pointer;box-shadow:0 13px 32px rgba(50,95,111,.09);transition:.2s ease}.kids-feature-card-v142:hover,.kids-puzzle-card-v142:hover,.kids-feature-card-v142:focus-visible,.kids-puzzle-card-v142:focus-visible{transform:translateY(-5px);box-shadow:0 19px 38px rgba(50,95,111,.15);outline:3px solid rgba(255,188,63,.45);outline-offset:2px}.kids-card-image-v142{position:relative;aspect-ratio:1.38;overflow:hidden}.kids-card-image-v142 img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.kids-feature-card-v142:hover img,.kids-puzzle-card-v142:hover img{transform:scale(1.025)}.kids-card-image-v142>span{position:absolute;left:10px;top:10px;padding:7px 10px;border-radius:999px;background:#fffe;color:#2a5d71;font-size:9px;font-weight:950;box-shadow:0 5px 13px rgba(0,0,0,.08)}.kids-card-image-v142>button{position:absolute;right:11px;bottom:10px;display:grid;place-items:center;width:48px;height:48px;border:5px solid #fff9;border-radius:50%;background:#ffc03f;color:#15384e;font-size:16px}.kids-card-copy-v142{padding:14px 15px 16px}.kids-card-copy-v142 h3{margin:0;color:#17364d;font-size:17px;line-height:1.2}.kids-card-copy-v142 p{margin:4px 0 11px;color:#82949d;font-size:10px}.kids-card-copy-v142>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.kids-card-copy-v142 b{color:#1c8dba;font-size:10px}.kids-card-copy-v142>div>span{color:#687f8c;font-size:9px;font-weight:800}
.kids-library-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.kids-toolbar-v142{display:grid;grid-template-columns:minmax(230px,320px) 160px;gap:9px}.kids-toolbar-v142 label{display:flex;align-items:center;gap:8px;min-height:45px;padding:0 13px;border:1px solid rgba(33,104,133,.10);border-radius:14px;background:#f4fafc}.kids-toolbar-v142 input{width:100%;border:0;background:transparent;outline:0;color:#244b60;font:800 12px var(--sans)}.kids-toolbar-v142 select{border:1px solid rgba(33,104,133,.10);border-radius:14px;background:#f4fafc;color:#244b60;padding:0 12px;font:850 11px var(--sans)}.kids-filter-chips{display:flex;gap:7px;overflow:auto;padding:18px 1px 8px;scrollbar-width:none}.kids-filter-chips::-webkit-scrollbar{display:none}.kids-filter-chips button{flex:0 0 auto;min-height:40px;padding:0 12px;border:1px solid rgba(35,104,132,.11);border-radius:14px;background:#fff;color:#5d7885;font:900 10px var(--sans);cursor:pointer}.kids-filter-chips button span{font-size:15px;margin-right:5px}.kids-filter-chips button small{margin-left:4px;opacity:.7}.kids-filter-chips button.active{background:#1d9bcf;color:#fff;border-color:#1d9bcf}.kids-puzzle-grid-v142{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:10px}.kids-puzzle-card-v142 .kids-card-copy-v142 h3{font-size:15px}.kids-puzzle-card-v142 .kids-card-image-v142{aspect-ratio:1.32}.kids-empty{margin-top:14px!important;padding:45px!important;background:#fff;border:2px dashed rgba(34,105,133,.14)!important}.kids-empty>span{display:block;font-size:34px;margin-bottom:7px}
.kids-parent-note-v142{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;margin-top:34px;padding:26px 30px;border-radius:27px;background:linear-gradient(135deg,#1a83ae,#1aa0bf);color:#fff;box-shadow:0 18px 40px rgba(33,123,155,.18)}.kids-parent-icon{display:grid;place-items:center;width:55px;height:55px;border-radius:18px;background:#fff2;color:#ffd46e;font-size:25px}.kids-parent-note-v142 span{font-size:8px;font-weight:950;letter-spacing:.14em;color:#bdeeff}.kids-parent-note-v142 h2{margin:4px 0;font-family:var(--display);font-size:24px}.kids-parent-note-v142 p{margin:0;max-width:780px;color:#d7f2fb;font-size:11px;line-height:1.5}.kids-parent-note-v142>a{color:#fff;text-decoration:none;font-weight:950;font-size:11px;white-space:nowrap}.kids-footer-v142{display:flex;align-items:center;justify-content:space-between;padding:28px clamp(18px,4vw,68px);background:#fff;border-top:1px solid rgba(33,105,133,.08)}.kids-footer-v142 .kids-brand img{width:155px}.kids-footer-v142 p{color:#6f8994;font-size:11px}
.kids-piece-modal-card-v142{position:relative;width:min(820px,94vw);display:grid;grid-template-columns:1.05fr .95fr;gap:0;overflow:hidden;border-radius:30px;background:#fff;box-shadow:0 30px 90px rgba(14,64,84,.32)}.kids-piece-preview-v142{position:relative;min-height:450px}.kids-piece-preview-v142 img{width:100%;height:100%;object-fit:cover;display:block}.kids-piece-preview-v142>span{position:absolute;left:15px;top:15px;padding:8px 10px;border-radius:999px;background:#fffed;color:#276077;font-size:10px;font-weight:950}.kids-piece-choice-v142{display:flex;flex-direction:column;justify-content:center;padding:35px}.kids-piece-choice-v142 h2{margin:9px 0 5px;font-family:var(--display);font-size:35px;line-height:1;color:#17364d}.kids-piece-choice-v142>p{margin:0 0 17px;color:#76909c;font-size:12px}.kids-piece-options-v142{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.kids-piece-options-v142 button{padding:13px 5px;border:2px solid transparent;border-radius:16px;background:#eff8fb;color:#365c6d;cursor:pointer}.kids-piece-options-v142 button strong,.kids-piece-options-v142 button small{display:block}.kids-piece-options-v142 button strong{font-size:25px}.kids-piece-options-v142 button small{font-size:8px;font-weight:850}.kids-piece-options-v142 button.active{border-color:#ffb83e;background:#fff7df}.kids-modal-start{margin-top:14px;min-height:52px;border:0;border-radius:16px;background:#ffb83e;color:#17364d;font-weight:950;cursor:pointer}

/* Çocuk oyunu — yetişkin motoru aynı, kontroller daha büyük/renkli ve yan araçlar açık. */
body.kids-game-mode{--kids-game-yellow:#ffc244;--kids-game-blue:#23a9df;--kids-game-ink:#14384e}
body.kids-game-mode .game-header{background:linear-gradient(90deg,#159ccc,#24b5dc)!important;border-bottom-color:rgba(255,255,255,.22)!important;box-shadow:0 8px 24px rgba(4,75,103,.25)!important}
body.kids-game-mode .game-header-left::after{content:'ÇOCUK';display:inline-flex!important;margin-left:8px;padding:6px 9px;border-radius:999px;background:#ffc244;color:#17364d;font-size:8px;font-weight:950;letter-spacing:.1em}
body.kids-game-mode .game-workspace{background:radial-gradient(circle at 50% 38%,#48c5e8 0%,#2196c4 45%,#126486 100%)!important}
body.kids-game-mode .puzzle-board{border-color:#ffc84d!important;box-shadow:0 0 0 3px rgba(255,207,84,.30),0 16px 36px rgba(0,70,96,.28)!important}
body.kids-game-mode .play-tool{background:linear-gradient(180deg,#fffdf6,#eaf9ff)!important;border:2px solid rgba(255,255,255,.78)!important;color:#24536a!important;box-shadow:0 9px 22px rgba(4,76,104,.18)!important}
body.kids-game-mode .play-tool span{color:#168ebc!important;font-size:24px!important}body.kids-game-mode .play-tool strong{color:#204c61!important;font-weight:950!important;font-size:12px!important}
body.kids-game-mode .play-tool.active{background:#fff1b8!important;border-color:#ffc244!important;box-shadow:0 0 0 3px rgba(255,194,68,.20),0 8px 22px rgba(3,69,95,.16)!important}
body.kids-game-mode .piece-tray{background:linear-gradient(180deg,#fffaf0,#eefaff)!important;border-color:rgba(255,255,255,.9)!important;box-shadow:0 -10px 28px rgba(6,77,104,.22)!important;color:#244d61!important}body.kids-game-mode .tray-title .tray-kicker{color:#e07e21!important}body.kids-game-mode .tray-title strong{color:#173f56!important}body.kids-game-mode .tray-title small{color:#6d8997!important}
body.kids-game-mode .game-side .game-card{background:linear-gradient(180deg,#fffdf7,#edf9ff)!important;border:2px solid rgba(255,255,255,.82)!important;color:#234c61!important;box-shadow:0 12px 28px rgba(3,73,101,.18)!important}body.kids-game-mode .game-side .card-kicker{color:#e77c22!important}body.kids-game-mode .game-side h3,body.kids-game-mode .game-side strong,body.kids-game-mode .game-side dd{color:#1b4459!important}body.kids-game-mode .game-side small,body.kids-game-mode .game-side dt{color:#718c99!important}
body.kids-game-mode .game-side .game-leaderboard-card,body.kids-game-mode .game-side .multiplayer-card,body.kids-game-mode .game-side .shortcuts-card{display:none!important}body.kids-game-mode .game-side .helper-card{display:block!important}.kids-game-mode .wide-helper-button{background:#dff5ff!important;color:#22617d!important;border-color:#bde8f8!important}
body.kids-game-mode .progress-ring{background:conic-gradient(#ffc244 var(--progress,0%),rgba(31,143,186,.13) 0)!important}body.kids-game-mode .progress-ring::after{background:#fff9ec!important}
body.kids-game-mode .workspace-hud{background:rgba(255,255,255,.93)!important;border-color:#fff!important;color:#24536a!important;box-shadow:0 8px 20px rgba(8,78,104,.14)!important}body.kids-game-mode .hud-button{color:#255a71!important;background:#eaf8fe!important;border-color:#cbeaf6!important}
body.kids-game-mode .game-bottom-bar{background:#fff7dd!important;color:#173f55!important;border-top-color:#f0dca3!important}body.kids-game-mode .game-bottom-bar small{color:#6f8792!important}body.kids-game-mode .game-bottom-bar .button{background:#fff!important;color:#27617a!important;border-color:#d8ebf2!important}
body.kids-game-mode .completion-celebration-overlay.kids-celebration{background:radial-gradient(circle at 50% 42%,rgba(255,232,133,.60),rgba(48,167,207,.90) 58%,rgba(18,91,122,.96))!important}body.kids-game-mode .completion-celebration-overlay.kids-celebration .completion-celebration-card>span{color:#fff3a8!important}body.kids-game-mode .completion-celebration-overlay.kids-celebration .completion-celebration-card>strong{color:#fff!important;text-shadow:0 5px 24px rgba(9,80,106,.28)!important}body.kids-game-mode .completion-celebration-overlay.kids-celebration .completion-celebration-card>small{color:#f5fdff!important}
@media(min-width:821px){body.kids-game-mode .game-shell.edge-docks .play-tools{left:14px!important;filter:none!important;border-right:0!important;overflow:auto!important}body.kids-game-mode .game-shell.edge-docks .game-side{right:14px!important;border-left:0!important;overflow:auto!important}body.kids-game-mode .game-shell.edge-docks .play-tools::before,body.kids-game-mode .game-shell.edge-docks .game-side::after{display:none!important}body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool,body.kids-game-mode .game-shell.edge-docks .game-side .game-card{opacity:1!important;pointer-events:auto!important}}

@media(max-width:1050px){.kids-hero-v142{grid-template-columns:1fr 1fr;padding:34px}.kids-hero-copy-v142 h1{font-size:57px}.kids-category-cards{grid-template-columns:repeat(4,1fr)}.kids-featured-grid{grid-template-columns:repeat(3,1fr)}.kids-puzzle-grid-v142{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.kids-main{width:min(100% - 20px,1380px)!important;padding-top:14px!important}.kids-hero-v142{grid-template-columns:1fr;gap:22px;min-height:0;padding:26px 22px;border-radius:28px}.kids-hero-copy-v142 h1{font-size:51px}.kids-hero-copy-v142>p{font-size:14px}.kids-hero-puzzle{max-width:680px;margin:auto}.kids-piece-fast,.kids-category-world,.kids-today,.kids-library-v142{padding:21px 17px;border-radius:24px}.kids-piece-fast-grid{grid-template-columns:1fr}.kids-category-cards{grid-template-columns:repeat(2,1fr)}.kids-featured-grid{grid-template-columns:repeat(2,1fr)}.kids-puzzle-grid-v142{grid-template-columns:repeat(2,1fr)}.kids-library-head{align-items:flex-start;flex-direction:column}.kids-toolbar-v142{width:100%;grid-template-columns:1fr 140px}.kids-parent-note-v142{grid-template-columns:auto 1fr}.kids-parent-note-v142>a{grid-column:1/-1;margin-left:73px}body.kids-game-mode.yo-phone-game .play-tools{background:rgba(255,250,236,.96)!important;border:1px solid rgba(255,255,255,.9)!important}body.kids-game-mode.yo-phone-game .play-tools .play-tool{background:#fff!important;border-color:#d5edf7!important}body.kids-game-mode .mobile-bottom-dock{background:#fff9e8!important;border-color:#ffe3a3!important}body.kids-game-mode .mobile-bottom-dock button{color:#285a70!important}body.kids-game-mode .mobile-bottom-dock button span{color:#168fbd!important}body.kids-game-mode .mobile-tools-sheet{background:#fff9ec!important;border-color:#ffe4a6!important;color:#224d62!important}body.kids-game-mode .mobile-sheet-head strong{color:#214c61!important}body.kids-game-mode .mobile-sheet-head span{color:#6e8997!important}body.kids-game-mode .mobile-sheet-grid>button{background:#fff!important;border-color:#d9edf5!important;color:#254e62!important}body.kids-game-mode .mobile-sheet-grid>button span{color:#f2992e!important}body.kids-game-mode .mobile-sheet-grid>button strong{color:#264e62!important}}
@media(max-width:560px){.kids-header{height:69px!important}.kids-header nav{display:none}.kids-brand img{width:132px!important}.kids-main{width:min(100% - 14px,1380px)!important}.kids-hero-v142{padding:22px 16px;border-radius:23px}.kids-hero-copy-v142 h1{font-size:43px}.kids-hero-actions-v142{display:grid;grid-template-columns:1fr}.kids-big-button,.kids-hero-actions-v142>a{width:100%;min-height:52px}.kids-hero-badges{gap:5px}.kids-hero-badges span{font-size:8px;padding:7px 8px}.kids-hero-sticker{width:64px;height:64px;right:10px;top:10px;font-size:7px}.kids-hero-play b{width:43px;height:43px}.kids-hero-play small{font-size:13px}.kids-section-heading-v142{align-items:flex-start;flex-direction:column;gap:10px}.kids-section-heading-v142 h2,.kids-library-head h2{font-size:31px}.kids-piece-fast-grid>button{min-height:94px;padding:13px}.kids-category-cards{gap:8px}.kids-category-card-v142{min-height:145px;border-radius:18px}.kids-category-copy strong{font-size:14px}.kids-featured-grid,.kids-puzzle-grid-v142{gap:8px}.kids-feature-card-v142,.kids-puzzle-card-v142{border-radius:18px}.kids-card-copy-v142{padding:10px}.kids-card-copy-v142 h3,.kids-puzzle-card-v142 .kids-card-copy-v142 h3{font-size:12px}.kids-card-copy-v142 p{font-size:8px;margin-bottom:7px}.kids-card-copy-v142>div{align-items:flex-start;flex-direction:column;gap:3px}.kids-card-image-v142>button{width:38px;height:38px}.kids-toolbar-v142{grid-template-columns:1fr}.kids-parent-note-v142{grid-template-columns:1fr;padding:21px}.kids-parent-note-v142>a{grid-column:auto;margin:0}.kids-footer-v142{flex-direction:column;gap:10px}.kids-piece-modal-card-v142{grid-template-columns:1fr;max-height:90dvh;overflow:auto}.kids-piece-preview-v142{min-height:240px}.kids-piece-choice-v142{padding:24px 18px}.kids-piece-choice-v142 h2{font-size:29px}}

/* =========================================================
   v1.42.1 — Çocuk oyun alanı arayüz düzeltmesi
   - Sol/sağ docklarda koyu blok arka plan yok.
   - Kontroller pastel, tek tek yüzen kartlar olarak görünür.
   - Üst pano kontrolleri tek büyük beyaz kutu yerine hafif yüzen pill yapıda.
   ========================================================= */
body.kids-game-mode{
  --kids-ui-white:rgba(255,255,255,.96);
  --kids-ui-line:rgba(255,255,255,.88);
  --kids-ui-ink:#214b60;
  --kids-ui-muted:#6d8795;
  --kids-ui-blue:#1aa2d3;
  --kids-ui-yellow:#ffc34a;
  --kids-ui-shadow:0 10px 28px rgba(4,76,104,.18);
}

/* Üst araç grubu: arka plandaki büyük beyaz paneli kaldır. */
body.kids-game-mode .workspace-hud{
  top:14px!important;
  left:50%!important;
  right:auto!important;
  width:max-content!important;
  max-width:calc(100% - 390px)!important;
  min-height:0!important;
  padding:0!important;
  gap:6px!important;
  transform:translateX(-50%)!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.kids-game-mode .workspace-hud .hud-spacer{display:none!important}
body.kids-game-mode .workspace-hud .hud-button{
  width:auto!important;
  min-width:48px!important;
  height:46px!important;
  min-height:46px!important;
  padding:0 13px!important;
  border:1px solid rgba(89,159,189,.16)!important;
  border-radius:15px!important;
  background:var(--kids-ui-white)!important;
  color:var(--kids-ui-ink)!important;
  box-shadow:0 8px 20px rgba(4,76,104,.14)!important;
  font-weight:950!important;
}
body.kids-game-mode .workspace-hud .hud-button:hover,
body.kids-game-mode .workspace-hud .hud-button.active{
  transform:translateY(-2px)!important;
  border-color:rgba(255,186,61,.72)!important;
  background:#fff9e7!important;
}
body.kids-game-mode .workspace-hud .hud-button.icon-only{
  width:46px!important;min-width:46px!important;padding:0!important;font-size:22px!important;
}
body.kids-game-mode .workspace-hud .hud-button.zoom-readout{
  min-width:72px!important;padding:0 11px!important;background:#eefaff!important;color:#196a8c!important;
}
body.kids-game-mode .workspace-hud .hud-button span{color:var(--kids-ui-blue)!important}

@media(min-width:821px){
  /* Sol araçlar: koyu lacivert gövde tamamen kaldırıldı. */
  body.kids-game-mode .game-shell.edge-docks .play-tools{
    left:16px!important;
    right:auto!important;
    top:118px!important;
    bottom:auto!important;
    width:88px!important;
    max-width:88px!important;
    height:auto!important;
    max-height:calc(100dvh - 150px)!important;
    padding:0!important;
    gap:9px!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools::before,
  body.kids-game-mode .game-shell.edge-docks .play-tools::after{display:none!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool{
    width:84px!important;
    min-width:84px!important;
    min-height:70px!important;
    padding:8px 5px!important;
    gap:3px!important;
    border:1px solid rgba(68,145,177,.13)!important;
    border-radius:19px!important;
    background:var(--kids-ui-white)!important;
    color:var(--kids-ui-ink)!important;
    box-shadow:var(--kids-ui-shadow)!important;
    opacity:1!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool:hover{
    transform:translateY(-2px) scale(1.015)!important;
    border-color:rgba(255,185,61,.7)!important;
    box-shadow:0 13px 30px rgba(4,76,104,.22)!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool.active{
    border-color:#ffc34a!important;
    background:#fff6d9!important;
    box-shadow:0 0 0 3px rgba(255,195,74,.18),0 12px 26px rgba(4,76,104,.16)!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool span{
    font-size:23px!important;line-height:1!important;color:#159bca!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool strong{
    font-size:10px!important;line-height:1.15!important;color:#24546a!important;text-align:center!important;
  }

  /* Sağ bilgi paneli: koyu gövde yok, sadece yüzen açık kartlar. */
  body.kids-game-mode .game-shell.edge-docks .game-side{
    display:flex!important;
    right:16px!important;
    left:auto!important;
    top:118px!important;
    bottom:auto!important;
    width:250px!important;
    max-height:calc(100dvh - 150px)!important;
    padding:0!important;
    gap:11px!important;
    overflow-y:auto!important;
    overflow-x:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    scrollbar-width:thin!important;
  }
  body.kids-game-mode .game-shell.edge-docks .game-side::before,
  body.kids-game-mode .game-shell.edge-docks .game-side::after{display:none!important}
  body.kids-game-mode .game-shell.edge-docks .game-side .game-card{
    flex:0 0 auto!important;
    padding:14px!important;
    border:1px solid rgba(70,148,180,.12)!important;
    border-radius:22px!important;
    background:var(--kids-ui-white)!important;
    color:var(--kids-ui-ink)!important;
    box-shadow:var(--kids-ui-shadow)!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  body.kids-game-mode .game-side .reference-card{order:1!important}
  body.kids-game-mode .game-side .progress-card{order:2!important}
  body.kids-game-mode .game-side .helper-card{order:3!important}
  body.kids-game-mode .game-side .game-card-heading{margin-bottom:10px!important}
  body.kids-game-mode .game-side .card-kicker{
    display:inline-flex!important;width:max-content!important;padding:5px 8px!important;border-radius:999px!important;
    background:#fff3d2!important;color:#e47d21!important;font-size:8px!important;letter-spacing:.13em!important;
  }
  body.kids-game-mode .game-side .game-card-heading h3{
    margin-top:6px!important;font-size:14px!important;line-height:1.15!important;color:#214b60!important;
  }
  body.kids-game-mode .reference-image-button{
    overflow:hidden!important;border:0!important;border-radius:16px!important;background:#eaf8fc!important;
    box-shadow:inset 0 0 0 1px rgba(73,151,181,.09)!important;
  }
  body.kids-game-mode .reference-image-button img{
    width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important;object-fit:contain!important;background:#eaf8fc!important;border-radius:16px!important;
  }
  body.kids-game-mode .reference-image-button span{
    right:7px!important;bottom:7px!important;padding:6px 8px!important;border-radius:10px!important;background:rgba(25,93,119,.82)!important;
  }
  body.kids-game-mode .reference-peek{
    min-height:40px!important;border-color:#ccecf7!important;background:#edfaff!important;color:#24647d!important;border-radius:12px!important;
  }
  body.kids-game-mode .ghost-control{border-top-color:#dfedf2!important}
  body.kids-game-mode .progress-layout{grid-template-columns:76px 1fr!important;gap:12px!important}
  body.kids-game-mode .progress-ring{width:74px!important;height:74px!important}
  body.kids-game-mode .progress-ring strong{font-size:18px!important;color:#24566d!important}
  body.kids-game-mode .progress-layout dl>div{padding:4px 0!important;border-color:#e4eef2!important}
  body.kids-game-mode .helper-row{border-color:#e3eef2!important}
  body.kids-game-mode .wide-helper-button{
    min-height:42px!important;border:1px solid #cce9f4!important;border-radius:13px!important;background:#eaf8fd!important;color:#24637d!important;
  }
}

/* Tablet/kompakt masaüstünde açık docklar içerik üstüne taşmasın. */
@media(min-width:821px) and (max-width:1180px){
  body.kids-game-mode .workspace-hud{max-width:calc(100% - 230px)!important}
  body.kids-game-mode .game-shell.edge-docks .game-side{width:220px!important;right:10px!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools{left:10px!important;width:82px!important;max-width:82px!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool{width:78px!important;min-width:78px!important;min-height:66px!important}
}

/* v1.42.2 — yetişkin/çocuk navigasyonu ve bağımsız devam kartları */
.site-header .nav-kids-logo{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:172px;height:48px;padding:2px 4px;border-radius:12px;text-decoration:none;transition:transform .18s ease,background .18s ease}
.site-header .nav-kids-logo:hover{transform:translateY(-1px);background:rgba(255,255,255,.045)}
.site-header .nav-kids-logo img{display:block;width:100%;height:100%;object-fit:contain}
.mobile-menu .mobile-kids-logo{display:flex;align-items:center;min-height:54px;padding:6px 10px}
.mobile-menu .mobile-kids-logo img{display:block;width:178px;max-width:72vw;height:auto;object-fit:contain}

.kids-header .kids-brand,.kids-footer-v142 .kids-brand{flex:0 0 auto;gap:0}
.kids-header .kids-brand img,.kids-footer-v142 .kids-brand img{width:250px!important;height:auto!important;max-height:64px!important;object-fit:contain!important;padding:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.kids-header .kids-brand span,.kids-footer-v142 .kids-brand span{display:none!important}

.kids-resume-v1422{position:relative;display:grid;grid-template-columns:132px minmax(0,1fr) auto;align-items:center;gap:20px;margin:24px 0 8px;padding:16px 62px 16px 16px;border:2px solid rgba(55,174,198,.18);border-radius:26px;background:linear-gradient(135deg,#fff9e9 0%,#ffffff 48%,#e9fbff 100%);box-shadow:0 16px 38px rgba(60,120,145,.10);overflow:hidden}
.kids-resume-v1422[hidden]{display:none!important}
.kids-resume-v1422>img{width:132px;height:92px;object-fit:cover;border-radius:18px;box-shadow:0 10px 22px rgba(41,92,117,.14)}
.kids-resume-v1422>div>span{display:block;color:#e88931;font-size:9px;font-weight:950;letter-spacing:.14em}
.kids-resume-v1422 h2{margin:5px 0 6px;color:#17364d;font-family:var(--display);font-size:25px;line-height:1.08}
.kids-resume-v1422 p{margin:0;color:#6a818e;font-size:11px;font-weight:750}.kids-resume-v1422 p b{color:#1a9db7;font-size:15px}.kids-resume-v1422 p strong{color:#405d6d;font-weight:850}
.kids-resume-v1422>button:not(.kids-resume-close){min-height:50px;padding:0 20px;border:0;border-radius:16px;background:#ffbc3e;color:#17364d;font:950 13px/1 var(--sans);cursor:pointer;box-shadow:0 11px 24px rgba(225,148,35,.22)}
.kids-resume-close{position:absolute;right:14px;top:12px;width:32px;height:32px;border:0;border-radius:50%;background:rgba(32,84,105,.07);color:#607985;font-size:20px;cursor:pointer}

@media(max-width:1100px){.site-header .nav-kids-logo{width:146px;height:44px}.kids-header .kids-brand img{width:220px!important}}
@media(max-width:760px){.kids-resume-v1422{grid-template-columns:92px minmax(0,1fr);gap:13px;padding:12px 44px 12px 12px;border-radius:20px}.kids-resume-v1422>img{width:92px;height:78px;border-radius:14px}.kids-resume-v1422 h2{font-size:18px}.kids-resume-v1422 p{font-size:9px}.kids-resume-v1422>button:not(.kids-resume-close){grid-column:1/-1;width:100%;min-height:46px}.kids-header .kids-brand img{width:178px!important;max-height:50px!important}}
@media(max-width:560px){.kids-header .kids-brand img{width:154px!important}.kids-footer-v142 .kids-brand img{width:190px!important}}

/* ========================================================================== */
/* v1.42.3 — Header mode switch: merkez menü + karşı mod logosu en sağda      */
/* ========================================================================== */
@media (min-width:1021px){
  .site-header.site-header-v1423{
    display:grid!important;
    grid-template-columns:220px minmax(0,1fr) 220px!important;
    align-items:center!important;
    column-gap:16px!important;
    padding-inline:clamp(18px,2.6vw,44px)!important;
  }
  .site-header-v1423>.header-brand-slot{
    width:220px!important;min-width:220px!important;max-width:220px!important;
    margin:0!important;justify-self:start!important;
  }
  .site-header-v1423>.header-brand-slot .brand-full-logo{
    width:auto!important;height:50px!important;max-width:210px!important;max-height:50px!important;object-fit:contain!important;
  }
  .site-header-v1423>.home-header-center{
    min-width:0;display:flex;align-items:center;justify-content:center;gap:clamp(8px,1vw,16px);
    justify-self:stretch;
  }
  .site-header-v1423 .desktop-nav{
    flex:0 0 auto!important;display:flex!important;justify-content:center!important;margin:0!important;gap:4px!important;
  }
  .site-header-v1423 .header-actions{
    flex:0 1 auto!important;margin:0!important;justify-content:center!important;gap:clamp(5px,.55vw,9px)!important;
  }
  .site-header-v1423>.header-mode-switch{
    justify-self:end!important;width:220px!important;height:54px!important;padding:0!important;margin:0!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;background:transparent!important;
  }
  .site-header-v1423>.header-mode-switch img{
    width:auto!important;height:50px!important;max-width:220px!important;max-height:50px!important;object-fit:contain!important;
  }
  .site-header-v1423>.header-mode-switch:hover{background:transparent!important;transform:translateY(-1px)!important}

  .kids-header.kids-header-v1423{
    display:grid!important;
    grid-template-columns:260px minmax(0,1fr) 260px!important;
    align-items:center!important;column-gap:16px!important;
    padding-inline:clamp(18px,3vw,54px)!important;
  }
  .kids-header-v1423>.kids-header-brand-slot{
    width:260px!important;min-width:260px!important;margin:0!important;justify-self:start!important;
  }
  .kids-header-v1423>.kids-header-brand-slot img{
    width:auto!important;height:50px!important;max-width:250px!important;max-height:50px!important;object-fit:contain!important;
  }
  .kids-header-v1423>.kids-header-center{
    min-width:0;display:flex;align-items:center;justify-content:center;gap:14px;justify-self:stretch;
  }
  .kids-header-v1423>.kids-header-center nav{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:0!important;
  }
  .kids-header-v1423>.kids-header-center .kids-profile-button{margin:0!important}
  .kids-header-v1423>.kids-adult-logo-switch{
    width:260px;height:56px;justify-self:end;display:flex;align-items:center;justify-content:flex-end;text-decoration:none;
  }
  .kids-header-v1423>.kids-adult-logo-switch>span{
    height:56px;padding:0;display:flex;align-items:center;justify-content:flex-end;
    background:transparent;transition:transform .18s ease;
  }
  .kids-header-v1423>.kids-adult-logo-switch img{
    width:auto;height:50px;max-width:220px;max-height:50px;object-fit:contain;
  }
  .kids-header-v1423>.kids-adult-logo-switch:hover>span{transform:translateY(-1px)}
}

/* Orta genişlikte merkez grubu koru; iki mod logosu kenarlarda kalır. */
@media (min-width:1021px) and (max-width:1380px){
  .site-header.site-header-v1423{grid-template-columns:180px minmax(0,1fr) 180px!important;padding-inline:16px!important}
  .site-header-v1423>.header-brand-slot{width:180px!important;min-width:180px!important}
  .site-header-v1423>.header-brand-slot .brand-full-logo{height:46px!important;max-width:174px!important}
  .site-header-v1423>.header-mode-switch{width:180px!important;height:50px!important}
  .site-header-v1423>.header-mode-switch img{height:46px!important;max-width:180px!important}
  .site-header-v1423 .desktop-nav{display:flex!important}
  .site-header-v1423 .header-actions .button{padding-inline:10px!important;font-size:11px!important;min-height:42px!important}
  .site-header-v1423 .header-actions .button.ghost span{display:none}

  .kids-header.kids-header-v1423{grid-template-columns:220px minmax(0,1fr) 220px!important;padding-inline:18px!important}
  .kids-header-v1423>.kids-header-brand-slot{width:220px!important;min-width:220px!important}
  .kids-header-v1423>.kids-header-brand-slot img{height:46px!important;max-width:215px!important}
  .kids-header-v1423>.kids-adult-logo-switch{width:220px!important}
  .kids-header-v1423>.kids-adult-logo-switch>span{height:52px!important;padding:0!important}
  .kids-header-v1423>.kids-adult-logo-switch img{height:46px!important;max-width:205px!important}
}

/* Mobilde mevcut hamburger/kompakt davranış korunur. Sağ mod logosu menü içine taşınır. */
@media (max-width:1020px){
  .site-header-v1423>.home-header-center{display:contents}
  .site-header-v1423>.header-mode-switch{display:none!important}
  .site-header-v1423 .desktop-nav{display:none!important}
  .site-header-v1423 .header-actions{margin-left:auto!important}
  .kids-header-v1423{display:flex!important}
  .kids-header-v1423>.kids-header-center{margin-left:auto;display:flex;align-items:center;gap:8px}
  .kids-header-v1423>.kids-header-center nav{display:none!important}
  .kids-header-v1423>.kids-adult-logo-switch{display:flex;align-items:center;margin-left:0;text-decoration:none}
  .kids-header-v1423>.kids-adult-logo-switch>span{height:46px;padding:0;display:flex;align-items:center}
  .kids-header-v1423>.kids-adult-logo-switch img{height:40px;width:auto;max-width:120px;object-fit:contain}
}
@media (max-width:620px){
  .kids-header-v1423>.kids-header-center .kids-profile-button{display:none!important}
  .kids-header-v1423>.kids-adult-logo-switch>span{height:42px;padding:0}
  .kids-header-v1423>.kids-adult-logo-switch img{height:36px;max-width:102px}
}

/* ========================================================================== */
/* v1.42.4 — Çocuk oyun alanı: hizalama, tatlı arayüz ve sıfır yetişkin flash */
/* ========================================================================== */

/* Çocuk sayfasından ?kids=1 ile oyun açılırken ana/yetişkin sayfa hiç boyanmaz. */
body.kids-game-boot{
  min-height:100dvh!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 14% 18%,rgba(255,220,93,.68),transparent 24%),
    radial-gradient(circle at 86% 20%,rgba(183,238,255,.85),transparent 28%),
    linear-gradient(145deg,#fff6cf 0%,#e7fbff 48%,#d7f6ff 100%)!important;
}
body.kids-game-boot #siteHeader,
body.kids-game-boot #homeView{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
body.kids-game-boot::before{
  content:'';position:fixed;inset:0;z-index:2147482000;pointer-events:none;
  background:
    radial-gradient(circle at 20% 26%,rgba(255,255,255,.92) 0 5px,transparent 6px),
    radial-gradient(circle at 78% 34%,rgba(255,255,255,.78) 0 4px,transparent 5px),
    radial-gradient(circle at 68% 76%,rgba(255,203,70,.22) 0 28px,transparent 29px),
    radial-gradient(circle at 28% 72%,rgba(94,207,235,.20) 0 34px,transparent 35px),
    linear-gradient(145deg,#fff6cf 0%,#e7fbff 48%,#d7f6ff 100%);
}
body.kids-game-boot::after{
  content:'🧩  Puzzle hazırlanıyor…';position:fixed;z-index:2147482100;left:50%;top:50%;transform:translate(-50%,-50%);
  padding:16px 22px;border:3px solid rgba(255,255,255,.88);border-radius:24px;background:rgba(255,255,255,.92);
  color:#24566d;font:950 16px/1 var(--sans);box-shadow:0 18px 46px rgba(45,130,160,.18);white-space:nowrap;pointer-events:none;
}

/* Oyun giriş animasyonu çocuk başlatmasında yetişkin koyu ekranına dönmez. */
.game-start-transition.kids-start-transition{
  background:
    radial-gradient(circle at 50% 44%,rgba(255,250,218,.98),rgba(210,246,255,.98) 56%,#8ddff0 100%)!important;
}
.game-start-transition.kids-start-transition .game-start-transition-inner{
  border-radius:42px;background:rgba(255,255,255,.58);box-shadow:0 24px 70px rgba(31,135,170,.16);
}
.game-start-transition.kids-start-transition .game-start-loading span{background:#ffb93d!important}

body.kids-game-mode{
  --kids-ui-ink:#244f64;
  --kids-ui-muted:#6d8795;
  --kids-ui-blue:#20a8d7;
  --kids-ui-yellow:#ffc34a;
  --kids-ui-pink:#ff8fa8;
  --kids-ui-mint:#80dbc2;
  --kids-ui-lilac:#c6b4ff;
}

/* Çocuk oyun header'ı: yetişkin koyu istatistik panelini daha yumuşak hale getir. */
body.kids-game-mode .game-header{
  background:linear-gradient(90deg,#38bde0 0%,#57cee8 52%,#3ab9dc 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.48)!important;
  box-shadow:0 8px 25px rgba(19,121,154,.20)!important;
}
body.kids-game-mode .game-header-left::after{display:none!important}
body.kids-game-mode .game-header .game-brand{min-width:164px!important;max-width:190px!important}
body.kids-game-mode .game-header .game-brand img{width:auto!important;height:46px!important;max-width:188px!important;object-fit:contain!important}
body.kids-game-mode .game-back{
  border-color:rgba(255,255,255,.72)!important;background:rgba(255,255,255,.88)!important;color:#28627b!important;
  box-shadow:0 7px 18px rgba(25,118,150,.13)!important;
}
body.kids-game-mode .header-puzzle-name strong{color:#fff!important;text-shadow:0 2px 9px rgba(16,94,121,.18)!important}
body.kids-game-mode .header-puzzle-name small{color:rgba(255,255,255,.82)!important}
body.kids-game-mode .game-header-stats{
  border:2px solid rgba(255,255,255,.72)!important;background:rgba(255,255,255,.92)!important;
  box-shadow:0 10px 26px rgba(25,116,148,.15)!important;
}
body.kids-game-mode .game-header-stats .header-stat{background:transparent!important}
body.kids-game-mode .game-header-stats .header-stat + .header-stat{border-left:1px solid #ddecf2!important}
body.kids-game-mode .game-header-stats .header-stat span{color:#6a8997!important}
body.kids-game-mode .game-header-stats .header-stat strong{color:#23576f!important}
body.kids-game-mode .game-header-stats .primary-stat strong{color:#e79520!important}
body.kids-game-mode .game-header-stats .primary-stat::before{background:#eaf3f6!important}
body.kids-game-mode .game-header-stats .primary-stat::after{background:#ffc34a!important}
body.kids-game-mode .game-header-actions .button{
  border-color:rgba(255,255,255,.48)!important;background:rgba(255,255,255,.13)!important;color:#fff!important;
}
body.kids-game-mode .game-header-actions .button:hover{background:rgba(255,255,255,.24)!important;border-color:#fff!important}
body.kids-game-mode .game-header-actions #saveProgressButton{background:#fff5c9!important;color:#ad7412!important;border-color:#ffe28b!important}

/* Çocuk çalışma masası: temiz, açık mavi ve hafif oyuncak hissi. */
body.kids-game-mode .game-workspace{
  background:
    radial-gradient(circle at 12% 18%,rgba(255,255,255,.19) 0 4px,transparent 5px),
    radial-gradient(circle at 86% 16%,rgba(255,239,157,.20) 0 5px,transparent 6px),
    radial-gradient(circle at 75% 75%,rgba(255,255,255,.10),transparent 28%),
    linear-gradient(145deg,#43bee0 0%,#29a8d2 52%,#1c8fbd 100%)!important;
}
body.kids-game-mode .puzzle-board{
  border:3px solid #ffd268!important;border-radius:12px!important;
  box-shadow:0 0 0 5px rgba(255,255,255,.16),0 16px 38px rgba(9,100,132,.20)!important;
}

/* Üst pano kontrolleri: hiçbir çocuk butonu daralıp diğerinin üstüne binemez. */
body.kids-game-mode .workspace-hud{
  top:13px!important;left:50%!important;right:auto!important;width:max-content!important;max-width:calc(100% - 370px)!important;
  display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;gap:8px!important;
  transform:translateX(-50%)!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
body.kids-game-mode .workspace-hud .hud-button{
  flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  width:auto!important;min-width:54px!important;height:48px!important;min-height:48px!important;padding:0 14px!important;
  white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
  border:2px solid rgba(255,255,255,.78)!important;border-radius:17px!important;background:rgba(255,255,255,.95)!important;
  color:#285a70!important;box-shadow:0 9px 22px rgba(7,89,120,.14)!important;font-size:11px!important;font-weight:950!important;
}
body.kids-game-mode .workspace-hud .hud-button span{flex:0 0 auto!important;display:inline-grid!important;place-items:center!important;line-height:1!important;color:#169ccc!important}
body.kids-game-mode .workspace-hud .hud-button.icon-only{width:48px!important;min-width:48px!important;padding:0!important;font-size:24px!important}
body.kids-game-mode .workspace-hud .hud-button.zoom-readout{min-width:78px!important;background:#edfaff!important;color:#23718e!important}
body.kids-game-mode #panButton{background:#eafff7!important}
body.kids-game-mode #trayQuickButton{background:#fff7d9!important;border-color:#ffe6a3!important}
body.kids-game-mode #referenceBoardButton{background:#fff0f6!important;border-color:#ffd2df!important}
/* Çocuk dockları zaten sürekli açık; bu düğme gereksiz ve hizalamayı bozuyordu. */
body.kids-game-mode #toggleDocksButton{display:none!important}

@media(min-width:821px){
  /* Sol araçlar daha tatlı, eş ölçülü ve sabit hizada. */
  body.kids-game-mode .game-shell.edge-docks .play-tools{
    left:14px!important;top:120px!important;width:86px!important;max-width:86px!important;gap:8px!important;padding:0!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool{
    flex:0 0 66px!important;width:84px!important;min-width:84px!important;height:66px!important;min-height:66px!important;max-height:66px!important;
    padding:7px 5px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;
    border:2px solid rgba(255,255,255,.78)!important;border-radius:20px!important;color:#27566b!important;box-shadow:0 9px 21px rgba(7,89,120,.14)!important;
  }
  body.kids-game-mode .play-tools .play-tool:nth-child(1){background:#effff7!important}
  body.kids-game-mode .play-tools .play-tool:nth-child(2){background:#f4efff!important}
  body.kids-game-mode .play-tools .play-tool:nth-child(3){background:#fff1e7!important}
  body.kids-game-mode .play-tools .play-tool:nth-child(4){background:#ecf9ff!important}
  body.kids-game-mode .play-tools .play-tool:nth-child(5){background:#fff8d9!important}
  body.kids-game-mode .play-tools .play-tool:nth-child(6){background:#fff0f5!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool span{font-size:22px!important;line-height:1!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool strong{font-size:9px!important;line-height:1.12!important;white-space:normal!important;text-align:center!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool:hover{transform:translateY(-2px)!important;box-shadow:0 12px 25px rgba(7,89,120,.18)!important}

  /* Sağ kartlar küçültüldü; hepsi aynı kolon ve dengeli boşluklarla görünür. */
  body.kids-game-mode .game-shell.edge-docks .game-side{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;right:14px!important;top:120px!important;width:238px!important;
    max-height:calc(100dvh - 140px)!important;gap:9px!important;padding:0 2px 10px 0!important;overflow-y:auto!important;overflow-x:visible!important;
    background:transparent!important;border:0!important;box-shadow:none!important;
  }
  body.kids-game-mode .game-shell.edge-docks .game-side .game-card{
    width:100%!important;margin:0!important;padding:12px!important;border:2px solid rgba(255,255,255,.80)!important;border-radius:20px!important;
    background:rgba(255,255,255,.95)!important;color:#244f64!important;box-shadow:0 9px 22px rgba(7,89,120,.13)!important;
  }
  body.kids-game-mode .game-side .reference-card{background:#f4fbff!important}
  body.kids-game-mode .game-side .progress-card{background:#f1fff9!important}
  body.kids-game-mode .game-side .helper-card{background:#fff9e7!important}
  body.kids-game-mode .game-side .game-card-heading{margin-bottom:7px!important}
  body.kids-game-mode .game-side .card-kicker{padding:4px 7px!important;font-size:7px!important}
  body.kids-game-mode .game-side .game-card-heading h3{margin-top:5px!important;font-size:13px!important;line-height:1.15!important}
  body.kids-game-mode .reference-image-button{border-radius:14px!important}
  body.kids-game-mode .reference-image-button img{height:118px!important;min-height:118px!important;aspect-ratio:auto!important;object-fit:cover!important;border-radius:14px!important}
  body.kids-game-mode .reference-peek{min-height:34px!important;padding:0 8px!important;font-size:8px!important}
  body.kids-game-mode .ghost-control{margin-top:8px!important;padding-top:8px!important;gap:5px!important}
  body.kids-game-mode .ghost-control span strong{font-size:9px!important}
  body.kids-game-mode .ghost-control span small{font-size:7px!important}
  body.kids-game-mode .progress-layout{grid-template-columns:64px 1fr!important;gap:10px!important}
  body.kids-game-mode .progress-ring{width:62px!important;height:62px!important}
  body.kids-game-mode .progress-ring::after{inset:8px!important}
  body.kids-game-mode .progress-ring strong{font-size:16px!important}
  body.kids-game-mode .progress-layout dl>div{padding:3px 0!important}
  body.kids-game-mode .progress-layout dt{font-size:7px!important}
  body.kids-game-mode .progress-layout dd{font-size:9px!important}
  body.kids-game-mode .helper-row{padding:7px 0!important}
  body.kids-game-mode .helper-row b{font-size:9px!important}
  body.kids-game-mode .helper-row small{font-size:7px!important}
  body.kids-game-mode .wide-helper-button{min-height:36px!important;padding:6px 8px!important;font-size:8px!important}
}

/* Masaüstünde board kontrolleri sol/sağ çocuk docklarının içine girmesin. */
@media(min-width:1181px){
  body.kids-game-mode .workspace-hud{max-width:calc(100% - 430px)!important}
}
@media(min-width:821px) and (max-width:1180px){
  body.kids-game-mode .workspace-hud{max-width:calc(100% - 310px)!important;gap:5px!important}
  body.kids-game-mode .workspace-hud .hud-button{height:44px!important;min-height:44px!important;padding-inline:10px!important;font-size:12px!important}
  body.kids-game-mode .workspace-hud .hud-button.icon-only{width:44px!important;min-width:44px!important}
  body.kids-game-mode .game-shell.edge-docks .game-side{width:205px!important;right:9px!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools{left:9px!important;width:78px!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool{width:76px!important;min-width:76px!important;height:62px!important;min-height:62px!important;max-height:62px!important}
}

/* Telefonda da çocuk rengi korunur; masaüstü sabit ölçüleri mobile sızmaz. */
@media(max-width:820px){
  body.kids-game-mode .workspace-hud{left:7px!important;right:7px!important;top:auto!important;transform:none!important;width:auto!important;max-width:none!important;gap:4px!important}
  body.kids-game-mode #toggleDocksButton{display:none!important}
  body.kids-game-mode .mobile-bottom-dock{background:rgba(255,251,233,.98)!important;box-shadow:0 -8px 24px rgba(16,119,151,.12)!important}
}

/* ========================================================================== */
/* v1.42.5 — Çocuk oyun UI: desktop/tablet profesyonel kontrast + hizalama    */
/* Mobil oyun düzenine bu blokta dokunulmaz.                                  */
/* ========================================================================== */
@media (min-width:821px){
  body.kids-game-mode{
    --kid-game-ink:#12384d;
    --kid-game-ink-2:#24586d;
    --kid-game-muted:#6d8997;
    --kid-game-line:#b9dce8;
    --kid-game-blue:#159dca;
    --kid-game-blue-dark:#0a6f96;
    --kid-game-yellow:#ffbd3e;
    --kid-game-yellow-soft:#fff5d7;
    --kid-game-surface:#ffffff;
    --kid-game-soft:#f3f9fc;
  }

  /* Çalışma alanı: dekoratif lekeler yerine daha sakin ve temiz bir zemin. */
  body.kids-game-mode .game-workspace{
    background:
      radial-gradient(circle at 50% 22%,rgba(255,255,255,.15),transparent 34%),
      linear-gradient(145deg,#2bb3d6 0%,#1598c3 56%,#0d82ad 100%)!important;
  }

  /* Üst kontrol grubu tek bir toolbar gibi görünür; hiçbir buton daralmaz. */
  body.kids-game-mode .workspace-hud{
    top:11px!important;
    left:50%!important;
    right:auto!important;
    width:max-content!important;
    max-width:calc(100% - 440px)!important;
    min-height:58px!important;
    padding:6px!important;
    gap:5px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
    transform:translateX(-50%)!important;
    border:1px solid rgba(18,84,109,.16)!important;
    border-radius:19px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 13px 32px rgba(4,84,115,.20)!important;
    backdrop-filter:blur(14px)!important;
  }
  body.kids-game-mode .workspace-hud .hud-spacer{display:none!important}
  body.kids-game-mode .workspace-hud .hud-button{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:70px!important;
    height:46px!important;
    min-height:46px!important;
    padding:0 13px!important;
    gap:6px!important;
    border:1px solid #d1e7ef!important;
    border-radius:13px!important;
    background:#f3f9fc!important;
    color:var(--kid-game-ink)!important;
    box-shadow:none!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.kids-game-mode .workspace-hud .hud-button:hover,
  body.kids-game-mode .workspace-hud .hud-button.active{
    border-color:#75c7df!important;
    background:#e6f7fc!important;
    color:#096f96!important;
    transform:translateY(-1px)!important;
  }
  body.kids-game-mode .workspace-hud .hud-button span{
    flex:0 0 auto!important;
    color:#0d8fbc!important;
    font-size:16px!important;
    line-height:1!important;
  }
  body.kids-game-mode .workspace-hud .hud-button.icon-only{
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    padding:0!important;
    font-size:23px!important;
  }
  body.kids-game-mode .workspace-hud .hud-button.zoom-readout{
    width:78px!important;
    min-width:78px!important;
    max-width:78px!important;
    background:#edf8fc!important;
    color:#0b7da6!important;
  }
  body.kids-game-mode #panButton{
    min-width:82px!important;
    background:#eefaf7!important;
    border-color:#bfe8dc!important;
  }
  body.kids-game-mode #trayQuickButton{
    min-width:116px!important;
    padding-inline:15px!important;
    background:var(--kid-game-yellow-soft)!important;
    border-color:#f3d37b!important;
    color:#8a5b08!important;
  }
  body.kids-game-mode #trayQuickButton span{color:#d58a00!important}
  body.kids-game-mode #referenceBoardButton{
    min-width:88px!important;
    background:#f4f8fb!important;
    border-color:#d1e3ea!important;
  }

  /* Sol araçlar: tüm pastel renkler kaldırıldı; tek sistem, yüksek kontrast. */
  body.kids-game-mode .game-shell.edge-docks .play-tools{
    left:14px!important;
    top:118px!important;
    width:90px!important;
    max-width:90px!important;
    gap:9px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool,
  body.kids-game-mode .play-tools .play-tool:nth-child(1),
  body.kids-game-mode .play-tools .play-tool:nth-child(2),
  body.kids-game-mode .play-tools .play-tool:nth-child(3),
  body.kids-game-mode .play-tools .play-tool:nth-child(4),
  body.kids-game-mode .play-tools .play-tool:nth-child(5),
  body.kids-game-mode .play-tools .play-tool:nth-child(6){
    position:relative!important;
    flex:0 0 66px!important;
    width:88px!important;
    min-width:88px!important;
    height:66px!important;
    min-height:66px!important;
    max-height:66px!important;
    padding:7px 5px!important;
    gap:3px!important;
    overflow:hidden!important;
    border:1px solid var(--kid-game-line)!important;
    border-radius:18px!important;
    background:#fff!important;
    color:var(--kid-game-ink)!important;
    box-shadow:0 8px 20px rgba(5,80,108,.16)!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool::before{
    content:"";
    position:absolute;
    left:0;top:11px;bottom:11px;
    width:4px;
    border-radius:0 4px 4px 0;
    background:#26abd2;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool span{
    font-size:20px!important;
    line-height:1!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool strong{
    max-width:74px!important;
    color:var(--kid-game-ink)!important;
    font-size:9px!important;
    font-weight:950!important;
    line-height:1.08!important;
    text-align:center!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool:hover,
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool.active{
    border-color:#f0bf4f!important;
    background:#fff8df!important;
    color:var(--kid-game-ink)!important;
    box-shadow:0 10px 24px rgba(5,80,108,.19)!important;
    transform:translateY(-1px)!important;
  }
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool.active::before,
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool:hover::before{background:#f0ad22!important}

  /* Sağ panel: aynı beyaz yüzey ve daha net tipografi. */
  body.kids-game-mode .game-shell.edge-docks .game-side{
    right:14px!important;
    top:118px!important;
    width:238px!important;
    gap:10px!important;
  }
  body.kids-game-mode .game-shell.edge-docks .game-side .game-card,
  body.kids-game-mode .game-side .reference-card,
  body.kids-game-mode .game-side .progress-card,
  body.kids-game-mode .game-side .helper-card{
    padding:13px!important;
    border:1px solid var(--kid-game-line)!important;
    border-radius:20px!important;
    background:#fff!important;
    color:var(--kid-game-ink)!important;
    box-shadow:0 10px 25px rgba(5,80,108,.16)!important;
  }
  body.kids-game-mode .game-side .card-kicker{
    display:inline-flex!important;
    align-items:center!important;
    min-height:21px!important;
    padding:0 8px!important;
    border-radius:999px!important;
    background:#fff1c5!important;
    color:#a86b05!important;
    font-size:7px!important;
    font-weight:950!important;
    letter-spacing:.12em!important;
  }
  body.kids-game-mode .game-side .game-card-heading h3{
    margin-top:6px!important;
    color:var(--kid-game-ink)!important;
    font-size:14px!important;
    font-weight:950!important;
  }
  body.kids-game-mode .game-side .reference-image-button{
    overflow:hidden!important;
    border:1px solid #d4e7ee!important;
    border-radius:13px!important;
    background:#eef7fa!important;
  }
  body.kids-game-mode .game-side .reference-peek,
  body.kids-game-mode .game-side .wide-helper-button{
    border:1px solid #c7e3ed!important;
    border-radius:11px!important;
    background:#eef8fb!important;
    color:#1b637e!important;
    font-weight:900!important;
  }
  body.kids-game-mode .game-side .ghost-control,
  body.kids-game-mode .game-side .progress-layout dl>div,
  body.kids-game-mode .game-side .helper-row{border-color:#e1edf2!important}
  body.kids-game-mode .game-side .ghost-control span strong,
  body.kids-game-mode .game-side .progress-layout dd,
  body.kids-game-mode .game-side .helper-row b{color:var(--kid-game-ink)!important}
  body.kids-game-mode .game-side .ghost-control span small,
  body.kids-game-mode .game-side .progress-layout dt,
  body.kids-game-mode .game-side .helper-row small{color:var(--kid-game-muted)!important}

  /* Çocuk parça kutusu: soluk krem yerine net beyaz + güçlü metin/sekme kontrastı. */
  body.kids-game-mode .piece-tray{
    left:112px!important;
    right:268px!important;
    bottom:16px!important;
    border:1px solid #a9d2e1!important;
    border-radius:22px!important;
    background:#f8fbfd!important;
    box-shadow:0 17px 42px rgba(4,75,103,.24)!important;
  }
  body.kids-game-mode .piece-tray .tray-header{
    border-bottom:1px solid #d8e9ef!important;
    background:#fff!important;
  }
  body.kids-game-mode .piece-tray .tray-title .tray-kicker{color:#0d8fb8!important}
  body.kids-game-mode .piece-tray .tray-title strong{color:var(--kid-game-ink)!important}
  body.kids-game-mode .piece-tray .tray-title strong b{color:#dd930d!important}
  body.kids-game-mode .piece-tray .tray-title small{color:#708995!important}
  body.kids-game-mode .piece-tray .tray-actions .tray-action,
  body.kids-game-mode .piece-tray .tray-collapse,
  body.kids-game-mode .piece-tray .piece-size-control button{
    border-color:#c9e0e9!important;
    background:#f3f9fb!important;
    color:#285d72!important;
    box-shadow:none!important;
  }
  body.kids-game-mode .piece-tray #spreadPiecesButton{
    border-color:#efc765!important;
    background:#fff3c9!important;
    color:#956109!important;
  }
  body.kids-game-mode .piece-tray #dockGatherButton{
    border-color:#b9dce8!important;
    background:#edf8fc!important;
    color:#176d8a!important;
  }
  body.kids-game-mode .piece-tray .tray-tabs{
    border-color:#d8e9ef!important;
    background:#f2f8fb!important;
  }
  body.kids-game-mode .piece-tray .tray-tab{
    border:1px solid transparent!important;
    background:transparent!important;
    color:#537584!important;
    font-size:10px!important;
    font-weight:900!important;
  }
  body.kids-game-mode .piece-tray .tray-tab:hover{
    border-color:#c4e0e9!important;
    background:#fff!important;
    color:#176b88!important;
  }
  body.kids-game-mode .piece-tray .tray-tab.active{
    border-color:#168db6!important;
    background:#168db6!important;
    color:#fff!important;
    box-shadow:0 5px 12px rgba(11,117,154,.16)!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation{
    border:1px solid #c9e0e9!important;
    background:#fff!important;
    color:#527586!important;
    box-shadow:0 5px 13px rgba(5,80,108,.10)!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button{
    border-color:#d1e5ec!important;
    background:#f1f8fb!important;
    color:#176b88!important;
  }
  body.kids-game-mode .piece-tray .tray-row-switch button{
    border-color:#c4dfe9!important;
    background:#fff!important;
    color:#486c7c!important;
    box-shadow:none!important;
  }
  body.kids-game-mode .piece-tray .tray-row-switch button::before{color:#7b929d!important}
  body.kids-game-mode .piece-tray .tray-row-switch button[aria-pressed="true"],
  body.kids-game-mode .piece-tray .tray-row-switch button.active{
    border-color:#eebc49!important;
    background:#fff4cd!important;
    color:#97630a!important;
    box-shadow:inset 0 0 0 1px rgba(238,188,73,.12)!important;
  }

  /* Açık parça kutusu sağ bilgi panelinin altına girmez. */
  body.kids-game-mode .tray-reopen{
    right:268px!important;
    border-color:#a9d2e1!important;
    background:#fff!important;
    color:#176b88!important;
    box-shadow:0 10px 26px rgba(4,75,103,.20)!important;
  }
  body.kids-game-mode .tray-reopen span:nth-child(2),
  body.kids-game-mode .tray-reopen b{color:#176b88!important}
}

/* Tablet: aynı tasarım dili, daha kompakt ölçüler. Mobil CSS'e sızmaz. */
@media (min-width:821px) and (max-width:1180px){
  body.kids-game-mode .workspace-hud{
    max-width:calc(100% - 300px)!important;
    gap:4px!important;
    padding:5px!important;
  }
  body.kids-game-mode .workspace-hud .hud-button{min-width:62px!important;height:43px!important;min-height:43px!important;padding-inline:10px!important;font-size:12px!important}
  body.kids-game-mode .workspace-hud .hud-button.icon-only{width:43px!important;min-width:43px!important;max-width:43px!important}
  body.kids-game-mode .workspace-hud .hud-button.zoom-readout{width:70px!important;min-width:70px!important;max-width:70px!important}
  body.kids-game-mode #panButton{min-width:74px!important}
  body.kids-game-mode #trayQuickButton{min-width:104px!important;padding-inline:12px!important}
  body.kids-game-mode #referenceBoardButton{min-width:78px!important}

  body.kids-game-mode .game-shell.edge-docks .game-side{right:9px!important;width:205px!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools{left:9px!important;width:79px!important;max-width:79px!important}
  body.kids-game-mode .game-shell.edge-docks .play-tools .play-tool,
  body.kids-game-mode .play-tools .play-tool:nth-child(1),
  body.kids-game-mode .play-tools .play-tool:nth-child(2),
  body.kids-game-mode .play-tools .play-tool:nth-child(3),
  body.kids-game-mode .play-tools .play-tool:nth-child(4),
  body.kids-game-mode .play-tools .play-tool:nth-child(5),
  body.kids-game-mode .play-tools .play-tool:nth-child(6){width:77px!important;min-width:77px!important}
  body.kids-game-mode .piece-tray{left:96px!important;right:225px!important}
  body.kids-game-mode .tray-reopen{right:225px!important}
}

/* ========================================================================== */
/* v1.42.6 — Çocuk oyun header + parça şeridi navigasyon hizalama düzeltmesi */
/* Desktop/tablet only. Mobil oyun düzenine dokunulmaz.                       */
/* ========================================================================== */
@media (min-width:821px){
  /* Çocuk logosu kendi geniş oranına sahip. Eski 172px flex-basis + 188px
     görsel birleşimi geri butonunu logonun üzerine taşıyabiliyordu. */
  body.kids-game-mode .game-header-left{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    overflow:hidden!important;
  }
  body.kids-game-mode .game-header .game-brand{
    flex:0 0 204px!important;
    width:204px!important;
    min-width:204px!important;
    max-width:204px!important;
    height:58px!important;
    padding:0 16px 0 0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    box-sizing:border-box!important;
    border-right:1px solid rgba(255,255,255,.30)!important;
    overflow:hidden!important;
  }
  body.kids-game-mode .game-header .game-brand img,
  body.kids-game-mode .game-header .game-brand .brand-full-logo{
    display:block!important;
    width:184px!important;
    max-width:184px!important;
    height:auto!important;
    max-height:46px!important;
    object-fit:contain!important;
    object-position:left center!important;
    flex:0 0 auto!important;
  }
  body.kids-game-mode .game-header .game-back{
    order:2!important;
    flex:0 0 48px!important;
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
    position:relative!important;
    inset:auto!important;
    z-index:2!important;
  }
  body.kids-game-mode .game-header .header-puzzle-name{
    order:3!important;
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
  }
  body.kids-game-mode .game-header .header-puzzle-name strong{
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Parça şeridinin sağındaki sayfalama artık beyaz zeminde kaybolmaz. */
  body.kids-game-mode .piece-tray .tray-navigation{
    position:absolute!important;
    z-index:30!important;
    right:10px!important;
    top:82px!important;
    bottom:auto!important;
    width:42px!important;
    min-width:42px!important;
    padding:5px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    border:1px solid #9ccfdf!important;
    border-radius:15px!important;
    background:#eaf7fb!important;
    box-shadow:0 8px 20px rgba(5,80,108,.16)!important;
    color:#12384d!important;
    pointer-events:auto!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button{
    display:grid!important;
    place-items:center!important;
    width:32px!important;
    min-width:32px!important;
    max-width:32px!important;
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding:0!important;
    border:1px solid #087ca6!important;
    border-radius:10px!important;
    background:#138fba!important;
    color:#fff!important;
    box-shadow:0 4px 10px rgba(8,106,143,.20)!important;
    font-size:22px!important;
    font-weight:900!important;
    line-height:1!important;
    opacity:1!important;
    cursor:pointer!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button:hover,
  body.kids-game-mode .piece-tray .tray-navigation button:focus-visible{
    background:#087ca6!important;
    border-color:#066b90!important;
    outline:3px solid rgba(255,194,64,.55)!important;
    outline-offset:1px!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button:disabled{
    background:#b8d8e3!important;
    border-color:#a7cbd7!important;
    color:#fff!important;
    opacity:.72!important;
    cursor:default!important;
    box-shadow:none!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation span{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:32px!important;
    min-height:22px!important;
    padding:2px 3px!important;
    border:0!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#24586d!important;
    font-size:9px!important;
    font-weight:950!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
}

/* Tablet başlığında da logo ve geri butonu birbirinden güvenli mesafede. */
@media (min-width:821px) and (max-width:1180px){
  body.kids-game-mode .game-header .game-brand{
    flex-basis:174px!important;
    width:174px!important;
    min-width:174px!important;
    max-width:174px!important;
    padding-right:12px!important;
  }
  body.kids-game-mode .game-header .game-brand img,
  body.kids-game-mode .game-header .game-brand .brand-full-logo{
    width:160px!important;
    max-width:160px!important;
    max-height:40px!important;
  }
  body.kids-game-mode .game-header-left{gap:10px!important}
}

/* ========================================================================== */
/* v1.42.7 — Çocuk oyununda gerçek hizalama düzeltmesi                         */
/* Önceki sürümde yanlış hedeflenen esnek header yapısı ve parça pager'ı       */
/* bu blokta deterministik grid/rail düzenine çevrilir. Desktop + tablet.      */
/* ========================================================================== */
@media (min-width:821px){
  /* Çocuk rozeti logonun kendi görselinin parçasıdır. Eski pseudo rozet varsa
     tamamen kaldır; header'da logo / geri / başlık için ayrı kolonlar kullan. */
  body.kids-game-mode .game-header-left::before,
  body.kids-game-mode .game-header-left::after{
    content:none!important;
    display:none!important;
  }
  body.kids-game-mode .game-header-left{
    min-width:0!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:200px 50px minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:start!important;
    column-gap:18px!important;
    overflow:visible!important;
  }
  body.kids-game-mode .game-header .game-brand{
    grid-column:1!important;
    align-self:center!important;
    justify-self:start!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:200px!important;
    min-width:200px!important;
    max-width:200px!important;
    height:54px!important;
    min-height:54px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .game-header .game-brand img,
  body.kids-game-mode .game-header .game-brand .brand-full-logo{
    display:block!important;
    width:196px!important;
    min-width:196px!important;
    max-width:196px!important;
    height:auto!important;
    max-height:49px!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:left center!important;
    transform:none!important;
  }
  body.kids-game-mode .game-header .game-back{
    grid-column:2!important;
    align-self:center!important;
    justify-self:center!important;
    position:static!important;
    inset:auto!important;
    width:50px!important;
    min-width:50px!important;
    max-width:50px!important;
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #c5e3ed!important;
    border-radius:15px!important;
    background:#fff!important;
    color:#165d79!important;
    box-shadow:0 7px 18px rgba(11,91,120,.16)!important;
    z-index:3!important;
  }
  body.kids-game-mode .game-header .game-back::before{
    content:'←'!important;
    display:block!important;
    font-size:25px!important;
    line-height:1!important;
    color:#165d79!important;
  }
  body.kids-game-mode .game-header .header-puzzle-name{
    grid-column:3!important;
    min-width:0!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.kids-game-mode .game-header .header-puzzle-name strong,
  body.kids-game-mode .game-header .header-puzzle-name small{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  /* Parça şeridi: navigasyon için gerçek alan ayır ve butonları ayrı bir
     yüksek-kontrast ray içinde tut. Artık parçalar veya tepsi kenarı altında
     kalamaz. */
  body.kids-game-mode .piece-tray{
    overflow:hidden!important;
  }
  body.kids-game-mode .piece-tray .tray-pieces-layer{
    padding-right:76px!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation{
    position:absolute!important;
    z-index:80!important;
    right:12px!important;
    top:72px!important;
    bottom:12px!important;
    width:52px!important;
    min-width:52px!important;
    height:auto!important;
    min-height:0!important;
    padding:7px 5px!important;
    margin:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    border:1px solid #08789f!important;
    border-radius:16px!important;
    background:#0d7fa8!important;
    box-shadow:0 8px 22px rgba(4,78,105,.24)!important;
    color:#fff!important;
    pointer-events:auto!important;
    overflow:visible!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:grid!important;
    place-items:center!important;
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    padding:0!important;
    margin:0!important;
    border:2px solid #fff!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#08789f!important;
    box-shadow:0 4px 10px rgba(0,0,0,.14)!important;
    font-size:25px!important;
    font-weight:950!important;
    line-height:1!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button:hover,
  body.kids-game-mode .piece-tray .tray-navigation button:focus-visible{
    background:#fff5cc!important;
    border-color:#ffd15b!important;
    color:#785000!important;
    outline:0!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button:disabled{
    border-color:#b8dce8!important;
    background:#d8edf4!important;
    color:#5d8da0!important;
    opacity:1!important;
    box-shadow:none!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation span{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:40px!important;
    min-width:40px!important;
    min-height:24px!important;
    padding:3px 2px!important;
    margin:0!important;
    border:0!important;
    border-radius:8px!important;
    background:rgba(255,255,255,.17)!important;
    color:#fff!important;
    font-size:9px!important;
    font-weight:950!important;
    line-height:1!important;
    writing-mode:horizontal-tb!important;
    transform:none!important;
    white-space:nowrap!important;
    opacity:1!important;
  }
}

@media (min-width:821px) and (max-width:1180px){
  body.kids-game-mode .game-header-left{
    grid-template-columns:166px 44px minmax(0,1fr)!important;
    column-gap:11px!important;
  }
  body.kids-game-mode .game-header .game-brand{
    width:166px!important;
    min-width:166px!important;
    max-width:166px!important;
    height:46px!important;
  }
  body.kids-game-mode .game-header .game-brand img,
  body.kids-game-mode .game-header .game-brand .brand-full-logo{
    width:162px!important;
    min-width:162px!important;
    max-width:162px!important;
    max-height:40px!important;
  }
  body.kids-game-mode .game-header .game-back{
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
  }
  body.kids-game-mode .piece-tray .tray-pieces-layer{padding-right:68px!important}
  body.kids-game-mode .piece-tray .tray-navigation{
    right:8px!important;
    width:48px!important;
    min-width:48px!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button{
    width:35px!important;min-width:35px!important;max-width:35px!important;
    height:35px!important;min-height:35px!important;max-height:35px!important;
  }
}


/* ========================================================================== */
/* v1.42.8 — Çocuk parça şeridi: navigasyon artık overlay değil gerçek kolon */
/* Desktop/tablet only. Parçalar okların bulunduğu bölgeye fiziksel olarak   */
/* giremez; önceki absolute navigation kuralları burada tamamen ezilir.       */
/* ========================================================================== */
@media (min-width:821px){
  body.kids-game-mode .piece-tray{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr) 72px!important;
    column-gap:0!important;
    overflow:hidden!important;
  }

  /* Üst aksiyon satırı ana içerik + navigasyon kolonunun üzerinde devam eder. */
  body.kids-game-mode .piece-tray .tray-header{
    grid-column:2 / 4!important;
  }

  body.kids-game-mode .piece-tray .tray-tabs{
    grid-column:2!important;
  }

  /* Gerçek parça alanı yalnızca orta kolondur. JS getBoundingClientRect()
     üzerinden bu küçülen alanı okuyacağı için kolon/sayfa hesabı da buna göre
     yeniden yapılır. */
  body.kids-game-mode .piece-tray .tray-pieces-layer{
    grid-column:2!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:8px 10px!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    position:relative!important;
  }

  /* Oklar artık parça katmanının üzerinde değil, üçüncü grid kolonunda. */
  body.kids-game-mode .piece-tray .tray-navigation{
    position:relative!important;
    inset:auto!important;
    right:auto!important;
    left:auto!important;
    top:auto!important;
    bottom:auto!important;
    grid-column:3!important;
    grid-row:2 / 4!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:10px 8px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:44px 30px 44px!important;
    align-content:center!important;
    justify-items:center!important;
    gap:8px!important;
    border:0!important;
    border-left:1px solid #c7dfe8!important;
    border-radius:0!important;
    background:#eaf5f9!important;
    box-shadow:none!important;
    color:#0a5774!important;
    overflow:hidden!important;
    isolation:isolate!important;
    z-index:5000!important;
    pointer-events:auto!important;
  }

  body.kids-game-mode .piece-tray .tray-navigation button{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:grid!important;
    place-items:center!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:0 0 4px!important;
    border:0!important;
    border-radius:13px!important;
    background:#087fa8!important;
    color:#fff!important;
    box-shadow:0 5px 12px rgba(8,94,126,.22)!important;
    font-family:Arial,sans-serif!important;
    font-size:34px!important;
    font-weight:900!important;
    line-height:1!important;
    opacity:1!important;
    visibility:visible!important;
    overflow:hidden!important;
    z-index:2!important;
    pointer-events:auto!important;
  }

  body.kids-game-mode .piece-tray .tray-navigation button:hover,
  body.kids-game-mode .piece-tray .tray-navigation button:focus-visible{
    background:#056b8e!important;
    color:#fff!important;
    outline:3px solid rgba(255,196,54,.55)!important;
    outline-offset:2px!important;
  }

  /* Pasif ok kaybolmaz; yalnızca daha açık renkte görünür. */
  body.kids-game-mode .piece-tray .tray-navigation button:disabled{
    background:#b8d7e3!important;
    color:#47798b!important;
    opacity:1!important;
    visibility:visible!important;
    box-shadow:none!important;
  }

  body.kids-game-mode .piece-tray .tray-navigation span{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:30px!important;
    min-height:30px!important;
    margin:0!important;
    padding:0 4px!important;
    border:1px solid #b8d6e2!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#155f79!important;
    font-size:10px!important;
    font-weight:950!important;
    line-height:1!important;
    writing-mode:horizontal-tb!important;
    transform:none!important;
    white-space:nowrap!important;
    opacity:1!important;
    visibility:visible!important;
    z-index:2!important;
  }
}

@media (min-width:821px) and (max-width:1180px){
  body.kids-game-mode .piece-tray{
    grid-template-columns:78px minmax(0,1fr) 62px!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation{
    padding:8px 6px!important;
    grid-template-rows:40px 27px 40px!important;
    gap:6px!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button{
    width:40px!important;min-width:40px!important;max-width:40px!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;
    font-size:30px!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation span{
    width:46px!important;min-width:46px!important;max-width:46px!important;
    height:27px!important;min-height:27px!important;font-size:9px!important;
  }
}

/* ========================================================================== */
/* v1.42.9 — Çocuk parça şeridi: topla sonrası ölçüm/yerleşim düzeltmesi      */
/* Desktop/tablet only. Tepsi üç fiziksel kolondur; orta parça alanı gerçek   */
/* yüksekliğe zorlanır. Eski min-height kuralları parçaları aşağı itemez.     */
/* ========================================================================== */
@media (min-width:821px){
  body.kids-game-mode .piece-tray{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr) 72px!important;
    grid-template-rows:58px minmax(0,1fr)!important;
    column-gap:0!important;
    row-gap:0!important;
    overflow:hidden!important;
  }

  /* Başlık/aksiyonlar sadece orta kolonda. Sağ navigasyon kendi kolonunu baştan
     sona kullanır; hiçbir parça veya buton onun altına giremez. */
  body.kids-game-mode .piece-tray .tray-header{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    width:auto!important;
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }

  /* Filtreler üst satırda absolute kalabilir fakat navigasyon kolonundan önce
     biter. */
  body.kids-game-mode .piece-tray .tray-tabs{
    right:84px!important;
    max-width:calc(100% - 440px)!important;
  }

  /* Kritik düzeltme: geçmiş sürümlerde tray-two-rows için 168/230/240px gibi
     min-height değerleri kalmıştı. Bunlar katmanı tepsiden daha uzun yapıp
     parçaları aşağı taşıyordu. Burada gerçek grid satırına sabitlenir. */
  body.kids-game-mode .piece-tray .tray-pieces-layer,
  body.kids-game-mode .game-workspace.tray-two-rows .piece-tray .tray-pieces-layer{
    grid-column:2!important;
    grid-row:2!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    padding:8px 12px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    position:relative!important;
    contain:layout paint!important;
  }

  /* Navigasyon tam tepsi yüksekliğini kullanır. Böylece dar şeritte bile iki ok
     ve sayfa göstergesi rahatça sığar. */
  body.kids-game-mode .piece-tray .tray-navigation{
    position:relative!important;
    inset:auto!important;
    grid-column:3!important;
    grid-row:1 / 3!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:10px 8px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:44px 30px 44px!important;
    align-content:center!important;
    justify-items:center!important;
    gap:7px!important;
    border:0!important;
    border-left:1px solid #c7dfe8!important;
    border-radius:0!important;
    background:#eaf5f9!important;
    box-shadow:none!important;
    overflow:hidden!important;
    z-index:5000!important;
    pointer-events:auto!important;
  }

  body.kids-game-mode .piece-tray .tray-navigation button{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:0 0 4px!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:13px!important;
    background:#087fa8!important;
    color:#fff!important;
    box-shadow:0 5px 12px rgba(8,94,126,.22)!important;
    font-family:Arial,sans-serif!important;
    font-size:34px!important;
    font-weight:900!important;
    line-height:1!important;
    opacity:1!important;
    visibility:visible!important;
    overflow:hidden!important;
    pointer-events:auto!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button:disabled{
    background:#c8e2eb!important;
    color:#4b7f92!important;
    opacity:1!important;
    visibility:visible!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation span{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:30px!important;
    min-height:30px!important;
    margin:0!important;
    padding:0 4px!important;
    border:1px solid #b8d6e2!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#155f79!important;
    font-size:10px!important;
    font-weight:950!important;
    line-height:1!important;
    white-space:nowrap!important;
    writing-mode:horizontal-tb!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
  }

  /* Şerit dar/geniş düğmeleri sol kolonda kalır ve tepsinin gerçek yüksekliğine
     göre eşit paylaşılır. */
  body.kids-game-mode .piece-tray .tray-row-switch{
    z-index:20!important;
  }

  /* Parçalar ölçüm anında bile katmanın üstünden başlasın. */
  body.kids-game-mode .piece-tray .tray-pieces-layer .puzzle-piece{
    transform-origin:center center!important;
    margin:0!important;
  }
}

@media (min-width:821px) and (max-width:1180px){
  body.kids-game-mode .piece-tray{
    grid-template-columns:78px minmax(0,1fr) 62px!important;
  }
  body.kids-game-mode .piece-tray .tray-tabs{
    right:72px!important;
    max-width:calc(100% - 390px)!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation{
    padding:8px 6px!important;
    grid-template-rows:40px 27px 40px!important;
    gap:6px!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button{
    width:40px!important;min-width:40px!important;max-width:40px!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;
    font-size:30px!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation span{
    width:46px!important;min-width:46px!important;max-width:46px!important;
    height:27px!important;min-height:27px!important;font-size:9px!important;
  }
}

/* ========================================================================== */
/* v1.43.1 — Çocuk oyun alanı yapısal düzeltme                               */
/* Desktop/tablet: yan araçlar için gerçek güvenli alan + yeni parça şeridi.  */
/* Mobil düzen etkilenmez.                                                     */
/* ========================================================================== */
@media (min-width:821px){
  body.kids-game-mode{
    --kid-left-safe:112px;
    --kid-right-safe:238px;
    --kid-tray-narrow:198px;
    --kid-tray-wide:282px;
  }

  /* Sağ ve sol araçlar overlay gibi görünse bile çalışma alanında kendilerine
     ayrılmış güvenli koridor vardır. JS de bu gerçek ölçüleri kullanır. */
  body.kids-game-mode .game-shell.edge-docks .play-tools{
    left:14px!important;
    width:82px!important;
    max-width:82px!important;
    z-index:240!important;
  }
  body.kids-game-mode .game-shell.edge-docks .game-side{
    right:14px!important;
    width:210px!important;
    max-width:210px!important;
    z-index:240!important;
  }

  /* Çocuk parça şeridi artık yamalı eski grid yerine 3 net alandan oluşur:
     sol dar/geniş kontrolü | orta içerik | sağ sayfalama. */
  body.kids-game-mode .piece-tray,
  body.kids-game-mode .game-workspace .piece-tray{
    left:var(--kid-left-safe)!important;
    right:var(--kid-right-safe)!important;
    bottom:14px!important;
    height:var(--kid-tray-narrow)!important;
    min-height:var(--kid-tray-narrow)!important;
    max-height:var(--kid-tray-narrow)!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:86px minmax(0,1fr) 66px!important;
    grid-template-rows:54px 38px minmax(0,1fr)!important;
    gap:0!important;
    overflow:hidden!important;
    border:1px solid #b7d7e3!important;
    border-radius:22px!important;
    background:#ffffff!important;
    box-shadow:0 18px 44px rgba(4,74,101,.20)!important;
    isolation:isolate!important;
  }
  body.kids-game-mode .game-shell.tray-two-rows .piece-tray,
  body.kids-game-mode .game-workspace.tray-two-rows .piece-tray{
    height:var(--kid-tray-wide)!important;
    min-height:var(--kid-tray-wide)!important;
    max-height:var(--kid-tray-wide)!important;
  }

  body.kids-game-mode .piece-tray .tray-header{
    position:static!important;
    grid-column:2!important;
    grid-row:1!important;
    width:auto!important;
    min-width:0!important;
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
    margin:0!important;
    padding:7px 10px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    border:0!important;
    border-bottom:1px solid #dbeaf0!important;
    background:#fff!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .piece-tray .tray-title{
    order:2!important;
    flex:0 0 auto!important;
    min-width:0!important;
    margin-left:auto!important;
    padding:0 4px!important;
    display:flex!important;
    align-items:center!important;
    white-space:nowrap!important;
  }
  body.kids-game-mode .piece-tray .tray-title .tray-kicker,
  body.kids-game-mode .piece-tray .tray-title small{display:none!important}
  body.kids-game-mode .piece-tray .tray-title strong{
    font-size:11px!important;
    color:#527484!important;
  }
  body.kids-game-mode .piece-tray .tray-title strong b{
    color:#0b85ad!important;
    font-size:13px!important;
  }

  body.kids-game-mode .piece-tray .tray-actions{
    position:static!important;
    order:1!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    overflow:visible!important;
  }
  body.kids-game-mode .piece-tray .tray-actions #spreadPiecesButton,
  body.kids-game-mode .piece-tray .tray-actions #dockGatherButton{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:142px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 14px!important;
    border-radius:12px!important;
    font-size:10px!important;
    font-weight:950!important;
    white-space:nowrap!important;
  }
  body.kids-game-mode .piece-tray .piece-size-control,
  body.kids-game-mode .piece-tray .tray-collapse{display:none!important}

  /* Dar / geniş düğmeleri tamamen kendi sol rayında. */
  body.kids-game-mode .piece-tray .tray-row-switch{
    position:absolute!important;
    z-index:25!important;
    left:8px!important;
    top:8px!important;
    bottom:8px!important;
    width:70px!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:1fr 1fr!important;
    gap:8px!important;
    pointer-events:auto!important;
  }
  body.kids-game-mode .piece-tray .tray-row-switch button{
    width:70px!important;
    min-width:70px!important;
    max-width:70px!important;
    height:auto!important;
    min-height:0!important;
    padding:8px 5px!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #c7dfe8!important;
    border-radius:14px!important;
    background:#f4fafc!important;
    color:#486c7c!important;
    font-size:9px!important;
    font-weight:950!important;
    line-height:1.15!important;
    text-align:center!important;
    box-shadow:none!important;
  }
  body.kids-game-mode .piece-tray .tray-row-switch button[aria-pressed="true"],
  body.kids-game-mode .piece-tray .tray-row-switch button.active{
    border-color:#efbf4c!important;
    background:#fff3c8!important;
    color:#8b5a05!important;
  }

  body.kids-game-mode .piece-tray .tray-tabs{
    position:static!important;
    inset:auto!important;
    grid-column:2!important;
    grid-row:2!important;
    width:100%!important;
    max-width:none!important;
    height:38px!important;
    min-height:38px!important;
    margin:0!important;
    padding:4px 8px!important;
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    border:0!important;
    border-bottom:1px solid #deebf0!important;
    background:#f5fafc!important;
    box-sizing:border-box!important;
    scrollbar-width:none!important;
  }
  body.kids-game-mode .piece-tray .tray-tabs::-webkit-scrollbar{display:none!important}
  body.kids-game-mode .piece-tray .tray-tab{
    flex:0 0 auto!important;
    height:29px!important;
    min-height:29px!important;
    padding:0 10px!important;
    border-radius:10px!important;
    font-size:9px!important;
  }

  /* Asıl parça alanı: top-left transform origin ile JS hesabı birebir eşleşir.
     Bu kural yarım görünen / alt kenardan taşan parçaları ortadan kaldırır. */
  body.kids-game-mode .piece-tray .tray-pieces-layer,
  body.kids-game-mode .game-workspace.tray-two-rows .piece-tray .tray-pieces-layer{
    position:relative!important;
    inset:auto!important;
    grid-column:2!important;
    grid-row:3!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:8px 10px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    contain:layout paint!important;
    background:#fff!important;
  }
  body.kids-game-mode .piece-tray .tray-pieces-layer .puzzle-piece{
    transform-origin:0 0!important;
    margin:0!important;
    max-width:none!important;
    max-height:none!important;
    filter:drop-shadow(0 3px 3px rgba(18,73,94,.12))!important;
  }

  body.kids-game-mode .piece-tray .tray-navigation{
    position:relative!important;
    inset:auto!important;
    grid-column:3!important;
    grid-row:1 / 4!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:10px 7px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:44px 28px 44px!important;
    align-content:center!important;
    justify-items:center!important;
    gap:8px!important;
    border:0!important;
    border-left:1px solid #c9e1ea!important;
    border-radius:0!important;
    background:#eaf6fa!important;
    box-shadow:none!important;
    overflow:hidden!important;
    z-index:40!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:0 0 3px!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:13px!important;
    background:#0b88b2!important;
    color:#fff!important;
    box-shadow:0 5px 12px rgba(9,100,133,.20)!important;
    font-size:30px!important;
    font-weight:950!important;
    line-height:1!important;
    opacity:1!important;
    visibility:visible!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button:disabled{
    background:#cbe4ed!important;
    color:#5e8b9b!important;
    box-shadow:none!important;
    opacity:1!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation span{
    width:50px!important;
    min-width:50px!important;
    height:28px!important;
    min-height:28px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0 4px!important;
    border:1px solid #c4dfe8!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#176884!important;
    font-size:9px!important;
    font-weight:950!important;
    line-height:1!important;
    writing-mode:horizontal-tb!important;
    transform:none!important;
    white-space:nowrap!important;
  }

  /* Alt şerit büyüdüğünde sabit yan araçlar onun üstünde kalır; asla şeridin
     üzerine oturmaz. */
  body.kids-game-mode .game-shell.edge-docks .play-tools,
  body.kids-game-mode .game-shell.edge-docks .game-side{
    bottom:calc(var(--kid-tray-narrow) + 28px)!important;
  }
  body.kids-game-mode .game-shell.tray-two-rows.edge-docks .play-tools,
  body.kids-game-mode .game-shell.tray-two-rows.edge-docks .game-side{
    bottom:calc(var(--kid-tray-wide) + 28px)!important;
  }

  body.kids-game-mode .tray-reopen{
    left:var(--kid-left-safe)!important;
    right:var(--kid-right-safe)!important;
  }
}

@media (min-width:821px) and (max-width:1180px){
  body.kids-game-mode{
    --kid-left-safe:96px;
    --kid-right-safe:220px;
    --kid-tray-narrow:182px;
    --kid-tray-wide:254px;
  }
  body.kids-game-mode .piece-tray,
  body.kids-game-mode .game-workspace .piece-tray{
    grid-template-columns:76px minmax(0,1fr) 58px!important;
    grid-template-rows:50px 36px minmax(0,1fr)!important;
  }
  body.kids-game-mode .piece-tray .tray-header{height:50px!important;min-height:50px!important;max-height:50px!important;padding:6px 8px!important}
  body.kids-game-mode .piece-tray .tray-title{display:none!important}
  body.kids-game-mode .piece-tray .tray-actions #spreadPiecesButton,
  body.kids-game-mode .piece-tray .tray-actions #dockGatherButton{min-width:122px!important;height:36px!important;min-height:36px!important;padding:0 10px!important;font-size:9px!important}
  body.kids-game-mode .piece-tray .tray-row-switch{left:6px!important;top:6px!important;bottom:6px!important;width:64px!important;gap:6px!important}
  body.kids-game-mode .piece-tray .tray-row-switch button{width:64px!important;min-width:64px!important;max-width:64px!important;font-size:8px!important}
  body.kids-game-mode .piece-tray .tray-tabs{height:36px!important;min-height:36px!important;padding:3px 6px!important}
  body.kids-game-mode .piece-tray .tray-navigation{grid-template-rows:40px 25px 40px!important;padding:7px 5px!important;gap:6px!important}
  body.kids-game-mode .piece-tray .tray-navigation button{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;font-size:27px!important}
  body.kids-game-mode .piece-tray .tray-navigation span{width:44px!important;min-width:44px!important;height:25px!important;min-height:25px!important;font-size:8px!important}
}

/* ========================================================================== */
/* v1.44.0 — Sadeleştirme turu                                                 */
/* - Ana sayfada hızlı "Puzzle seç ve başla" hiyerarşisi                     */
/* - Yetişkin oyunda varsayılan sade görünüm, gelişmiş araçlar tek menüde     */
/* - Çocuk oyunda 4 temel kontrol + isteğe bağlı ileri araçlar                */
/* - Çocuk kartlarında okunabilir minimum yazı ölçüleri                       */
/* - Ebeveyn kapısı: yetişkin moda 2 sn basılı tut                            */
/* ========================================================================== */

/* Ana sayfa: ürünün birincil davranışı en üstte açıkça görünür. */
.home-quick-start-v1440{
  width:min(1440px,calc(100% - 36px));
  margin:18px auto 14px;
  padding:18px 20px;
  display:grid;
  grid-template-columns:minmax(260px,1.15fr) minmax(360px,.95fr) auto;
  align-items:center;
  gap:24px;
  border:1px solid rgba(244,181,72,.22);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(9,39,58,.98),rgba(7,30,46,.98));
  box-shadow:0 15px 38px rgba(0,0,0,.16);
}
.home-quick-start-copy h1{margin:3px 0 4px;font-family:var(--display);font-size:clamp(26px,2.4vw,38px);line-height:1;color:#f7fbfd;letter-spacing:-.025em}
.home-quick-start-copy p{margin:0;color:#9fb7c5;font-size:12px;line-height:1.5}
.home-quick-start-steps{display:flex;align-items:center;justify-content:center;gap:9px;color:#d9e6ec;font-size:11px;font-weight:850;white-space:nowrap}
.home-quick-start-steps span{display:flex;align-items:center;gap:7px}.home-quick-start-steps span b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ffc44d;color:#10283a;font-size:11px}.home-quick-start-steps i{font-style:normal;color:#648394}
.home-quick-start-actions{display:flex;align-items:center;gap:8px}.home-quick-start-actions .button{white-space:nowrap}
@media(max-width:1050px){.home-quick-start-v1440{grid-template-columns:1fr auto}.home-quick-start-steps{grid-column:1/-1;grid-row:2;justify-content:flex-start}.home-quick-start-actions{grid-column:2;grid-row:1}}
@media(max-width:720px){.home-quick-start-v1440{width:min(100% - 18px,1440px);grid-template-columns:1fr;padding:17px 15px}.home-quick-start-steps{grid-column:auto;grid-row:auto;overflow:auto;justify-content:flex-start;padding-bottom:2px}.home-quick-start-actions{grid-column:auto;grid-row:auto;display:grid;grid-template-columns:1fr 1fr}.home-quick-start-actions .button{min-width:0;padding-inline:12px}.home-quick-start-copy p{font-size:13px}}

/* -------------------------------------------------------------------------- */
/* Çocuk oyun: oyun alanı birincil, arayüz ikincil.                            */
body.kids-game-mode{--kid-simple-blue:#109bc8;--kid-simple-blue-dark:#0879a2;--kid-simple-yellow:#ffc94e;--kid-simple-ink:#20475b;--kid-simple-line:#cfe7ef;--kid-simple-paper:#fffdf7}
body.kids-game-mode .kids-simple-toolbar[hidden]{display:none!important}
@media(min-width:821px){
  body.kids-game-mode .game-shell{display:block!important;min-height:calc(100dvh - 78px)!important;padding:0!important;background:#35b6dc!important}
  body.kids-game-mode .workspace-panel{display:block!important;width:100%!important;max-width:none!important}
  body.kids-game-mode .game-workspace{height:calc(100dvh - 78px)!important;min-height:620px!important;border:0!important;border-radius:0!important;background:linear-gradient(180deg,#47c4e5 0%,#25acd4 100%)!important}
  body.kids-game-mode .workspace-hud{display:none!important}
  body.kids-game-mode .game-side{display:none!important}
  body.kids-game-mode .game-bottom-bar{display:none!important}
  body.kids-game-mode .table-coachmark{display:none!important}

  body.kids-game-mode .kids-simple-toolbar{
    position:absolute!important;
    z-index:4100!important;
    top:12px!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    padding:7px!important;
    border:1px solid rgba(255,255,255,.9)!important;
    border-radius:20px!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 12px 30px rgba(20,102,132,.19)!important;
    backdrop-filter:blur(12px)!important;
  }
  body.kids-game-mode .kids-simple-toolbar>button{
    min-width:106px!important;
    height:52px!important;
    padding:0 14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    border:1px solid #d8edf4!important;
    border-radius:15px!important;
    background:#fff!important;
    color:var(--kid-simple-ink)!important;
    box-shadow:none!important;
    font:900 13px/1 var(--sans)!important;
    cursor:pointer!important;
  }
  body.kids-game-mode .kids-simple-toolbar>button span{font-size:20px!important;line-height:1!important}
  body.kids-game-mode .kids-simple-toolbar>button:hover,
  body.kids-game-mode .kids-simple-toolbar>button.active{border-color:#f2c44e!important;background:#fff5cf!important;transform:translateY(-1px)!important}
  body.kids-game-mode .kids-simple-toolbar>.kids-more-tools{min-width:92px!important;background:#edf9fd!important;color:#3a6679!important}
  body.kids-game-mode .kids-simple-toolbar>.kids-more-tools span{font-size:17px!important}

  /* İleri araçlar yalnızca "Daha Fazla" açıldığında görünür. */
  body.kids-game-mode .play-tools{
    display:none!important;
    position:absolute!important;
    z-index:4050!important;
    top:78px!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    width:auto!important;
    max-width:calc(100% - 40px)!important;
    height:auto!important;
    padding:8px!important;
    flex-direction:row!important;
    gap:7px!important;
    border:1px solid rgba(255,255,255,.92)!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 15px 34px rgba(13,94,126,.22)!important;
    transform:translateX(-50%)!important;
    overflow:visible!important;
  }
  body.kids-game-mode.kids-advanced-open .play-tools{display:flex!important}
  body.kids-game-mode .play-tools .play-tool{display:flex!important;width:auto!important;min-width:126px!important;height:48px!important;min-height:48px!important;padding:0 12px!important;flex-direction:row!important;gap:7px!important;border:1px solid #d4e9f1!important;border-radius:13px!important;background:#fff!important;color:#28566a!important;box-shadow:none!important;opacity:1!important;transform:none!important;pointer-events:auto!important}
  body.kids-game-mode .play-tools .play-tool span{font-size:18px!important}.kids-game-mode .play-tools .play-tool strong{font-size:12px!important;line-height:1.1!important}
  body.kids-game-mode .play-tools #focusButton,
  body.kids-game-mode .play-tools #pauseButton{display:none!important}

  /* Çocukta süre/puan/karmaşık header yerine ilerleme + yeni puzzle yeterli. */
  body.kids-game-mode .game-header{height:78px!important;min-height:78px!important;padding:0 20px!important;background:#43c4e2!important;border-bottom:1px solid rgba(255,255,255,.55)!important;color:#173f53!important}
  body.kids-game-mode .game-header-left{min-width:0!important;gap:12px!important}
  body.kids-game-mode .game-header .game-brand{width:168px!important;min-width:168px!important;max-width:168px!important;height:58px!important;padding:0!important;overflow:visible!important}
  body.kids-game-mode .game-header .game-brand img{width:164px!important;max-width:164px!important;height:54px!important;max-height:54px!important;object-fit:contain!important}
  body.kids-game-mode .game-header .game-back{width:48px!important;min-width:48px!important;height:48px!important;border-radius:15px!important;background:#fff!important;color:#1b627e!important;border:1px solid rgba(36,133,168,.16)!important;font-size:0!important}
  body.kids-game-mode .game-header .game-back::before{content:'←';font-size:25px!important;font-weight:950!important}
  body.kids-game-mode .game-header .header-puzzle-name strong{font-size:17px!important;color:#174961!important}.kids-game-mode .game-header .header-puzzle-name small{font-size:11px!important;color:#4d8092!important}
  body.kids-game-mode .game-header-stats{margin-left:auto!important}
  body.kids-game-mode .game-header-stats .header-stat:not(.primary-stat){display:none!important}
  body.kids-game-mode .game-header-stats .primary-stat{min-width:126px!important;height:56px!important;background:#fff!important;border:1px solid rgba(26,119,152,.14)!important;color:#15485f!important;box-shadow:none!important}
  body.kids-game-mode .game-header-stats .primary-stat span{font-size:11px!important;color:#658493!important}.kids-game-mode .game-header-stats .primary-stat strong{font-size:22px!important;color:#f0a11c!important}
  body.kids-game-mode #saveProgressButton,
  body.kids-game-mode #inviteGameButton,
  body.kids-game-mode #fullscreenButton,
  body.kids-game-mode #gameProfileButton{display:none!important}
  body.kids-game-mode #newPuzzleButton{min-height:46px!important;padding-inline:16px!important;border:1px solid rgba(255,255,255,.7)!important;background:rgba(255,255,255,.18)!important;color:#164d65!important;font-size:12px!important}

  /* Çocuk parça kutusu: tek satır varsayılan, parçalar tam görünür. */
  body.kids-game-mode .piece-tray,
  body.kids-game-mode .game-workspace .piece-tray{
    position:absolute!important;
    left:18px!important;
    right:18px!important;
    bottom:14px!important;
    width:auto!important;
    height:164px!important;
    min-height:164px!important;
    max-height:164px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 68px!important;
    grid-template-rows:44px minmax(0,1fr)!important;
    gap:0!important;
    overflow:hidden!important;
    border:2px solid rgba(255,255,255,.92)!important;
    border-radius:24px!important;
    background:#fff!important;
    box-shadow:0 18px 44px rgba(16,93,123,.22)!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .game-workspace.tray-two-rows .piece-tray,
  body.kids-game-mode .game-shell.tray-two-rows .piece-tray{height:248px!important;min-height:248px!important;max-height:248px!important}
  body.kids-game-mode .piece-tray .tray-header{
    position:static!important;grid-column:1!important;grid-row:1!important;width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border:0!important;border-bottom:1px solid #e0edf2!important;background:#f7fbfd!important;box-sizing:border-box!important
  }
  body.kids-game-mode .piece-tray .tray-title{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}.kids-game-mode .piece-tray .tray-title .tray-kicker{display:none!important}.kids-game-mode .piece-tray .tray-title strong{font-size:13px!important;color:#27566a!important;white-space:nowrap!important}.kids-game-mode .piece-tray .tray-title strong b{font-size:15px!important;color:#0b8db8!important}.kids-game-mode .piece-tray .tray-title small{display:none!important}
  body.kids-game-mode .piece-tray .tray-actions{display:none!important}
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-actions{display:flex!important;align-items:center!important;gap:6px!important}
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-actions #spreadPiecesButton,
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-actions #dockGatherButton{display:inline-flex!important;min-width:0!important;height:32px!important;min-height:32px!important;padding:0 10px!important;border-radius:10px!important;font-size:12px!important}
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-row-switch{display:flex!important;position:static!important;width:auto!important;height:32px!important;gap:4px!important}
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-row-switch button{width:auto!important;min-width:70px!important;height:32px!important;min-height:32px!important;padding:0 8px!important;font-size:12px!important;border-radius:10px!important}
  body.kids-game-mode .piece-tray .piece-size-control,
  body.kids-game-mode .piece-tray .tray-collapse{display:none!important}
  body.kids-game-mode .piece-tray .tray-tabs{display:none!important}
  body.kids-game-mode .piece-tray .tray-guide{display:none!important}
  body.kids-game-mode .piece-tray .tray-pieces-layer,
  body.kids-game-mode .game-workspace.tray-two-rows .piece-tray .tray-pieces-layer{
    position:relative!important;
    inset:auto!important;
    grid-column:1!important;
    grid-row:2!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    padding:8px 12px!important;
    overflow:hidden!important;
    contain:layout paint!important;
    background:#fff!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .piece-tray .tray-pieces-layer .puzzle-piece{transform-origin:0 0!important;filter:drop-shadow(0 3px 4px rgba(16,76,99,.18))!important}
  body.kids-game-mode .piece-tray .tray-navigation{
    position:static!important;
    inset:auto!important;
    grid-column:2!important;
    grid-row:1 / 3!important;
    width:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    height:100%!important;
    padding:9px 7px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:44px 28px 44px!important;
    align-content:center!important;
    justify-items:center!important;
    gap:7px!important;
    border:0!important;
    border-left:1px solid #d5e9f0!important;
    border-radius:0!important;
    background:#eef8fb!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
    z-index:70!important;
  }
  body.kids-game-mode .piece-tray .tray-navigation button{position:static!important;transform:none!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;display:grid!important;place-items:center!important;border:0!important;border-radius:13px!important;background:#0d91bd!important;color:#fff!important;box-shadow:none!important;font-size:28px!important;font-weight:950!important;line-height:1!important;opacity:1!important;visibility:visible!important}
  body.kids-game-mode .piece-tray .tray-navigation button:disabled{background:#d5eaf1!important;color:#6f97a6!important;opacity:1!important}
  body.kids-game-mode .piece-tray .tray-navigation span{width:50px!important;min-width:50px!important;height:28px!important;min-height:28px!important;display:grid!important;place-items:center!important;padding:0!important;border:1px solid #cfe4ec!important;border-radius:999px!important;background:#fff!important;color:#176985!important;font-size:11px!important;font-weight:950!important;writing-mode:horizontal-tb!important;transform:none!important;white-space:nowrap!important}

  /* İlk oyun rehberi yalnızca bir kez, boardu örtmeden kısa bir kart olarak görünür. */
  body.kids-game-mode .kids-first-guide{
    position:absolute!important;z-index:4300!important;left:50%!important;top:84px!important;transform:translateX(-50%)!important;width:min(660px,calc(100% - 40px))!important;padding:18px 20px!important;border:2px solid #fff!important;border-radius:22px!important;background:#fffdf5!important;color:#214b60!important;box-shadow:0 18px 46px rgba(13,91,120,.25)!important;text-align:center!important
  }
  body.kids-game-mode .kids-first-guide[hidden]{display:none!important}
  .kids-first-guide-close{position:absolute;right:10px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:#e9f6fb;color:#3a6c80;font-size:20px;cursor:pointer}.kids-first-guide-kicker{display:block;color:#e58b25;font-size:11px;font-weight:950;letter-spacing:.1em}.kids-first-guide>strong{display:block;margin:5px 0 13px;font-size:22px}.kids-first-guide>div{display:flex;align-items:center;justify-content:center;gap:12px}.kids-first-guide>div>span{display:grid;gap:2px;min-width:120px;padding:10px;border-radius:14px;background:#f1f9fc;font-size:16px}.kids-first-guide>div b{font-size:13px}.kids-first-guide>div small{font-size:11px;color:#6d8996}.kids-first-guide>div i{font-style:normal;color:#9fb6c0}.kids-first-guide>button:last-child{margin-top:14px;min-height:42px;padding:0 20px;border:0;border-radius:13px;background:#ffc84b;color:#24495b;font:950 13px var(--sans);cursor:pointer}
}

/* Tablet: aynı sade çocuk mantığı, biraz daha kompakt. */
@media(min-width:821px) and (max-width:1180px){
  body.kids-game-mode .kids-simple-toolbar{gap:5px!important;padding:6px!important}.kids-game-mode .kids-simple-toolbar>button{min-width:90px!important;height:48px!important;padding:0 10px!important;font-size:12px!important}.kids-game-mode .kids-simple-toolbar>.kids-more-tools{min-width:82px!important}
  body.kids-game-mode .game-header .game-brand{width:142px!important;min-width:142px!important}.kids-game-mode .game-header .game-brand img{width:138px!important;max-width:138px!important}.kids-game-mode .game-header .header-puzzle-name strong{font-size:15px!important}
  body.kids-game-mode .piece-tray,body.kids-game-mode .game-workspace .piece-tray{left:12px!important;right:12px!important;bottom:10px!important}
  body.kids-game-mode .play-tools .play-tool{min-width:108px!important}
}

/* Telefonun mevcut native-benzeri düzeni korunur; yeni desktop toolbar görünmez. */
@media(max-width:820px){
  body.kids-game-mode .kids-simple-toolbar{display:none!important}
  body.kids-game-mode .kids-first-guide{display:none!important}
}

/* -------------------------------------------------------------------------- */
/* Çocuk landing: okunabilirlik. Sığdırmak için metni küçültmek yerine bilgi az. */
.kids-page-body .kids-card-copy-v142 h3,.kids-page-body .kids-puzzle-card-v142 .kids-card-copy-v142 h3{font-size:max(15px,1rem)!important;line-height:1.25!important}
.kids-page-body .kids-card-copy-v142 p{font-size:12px!important;line-height:1.35!important}
.kids-page-body .kids-card-copy-v142 b,.kids-page-body .kids-card-copy-v142>div>span{font-size:11px!important;line-height:1.3!important}
.kids-page-body .kids-card-image-v142>span{font-size:11px!important}
.kids-page-body .kids-filter-chips button{font-size:12px!important;min-height:44px!important}
.kids-page-body .kids-toolbar-v142 input,.kids-page-body .kids-toolbar-v142 select{font-size:13px!important}
.kids-page-body .kids-section-heading-v142 p{font-size:12px!important;line-height:1.5!important}
.kids-page-body .kids-hero-badges span{font-size:11px!important}
@media(max-width:560px){
  .kids-page-body .kids-card-copy-v142{padding:12px!important}
  .kids-page-body .kids-card-copy-v142 h3,.kids-page-body .kids-puzzle-card-v142 .kids-card-copy-v142 h3{font-size:15px!important}
  .kids-page-body .kids-card-copy-v142 p{font-size:11px!important;margin:5px 0 9px!important}
  .kids-page-body .kids-card-copy-v142 b,.kids-page-body .kids-card-copy-v142>div>span{font-size:11px!important}
  .kids-page-body .kids-card-copy-v142>div{gap:5px!important}
  .kids-page-body .kids-card-image-v142>span{font-size:12px!important}
  .kids-page-body .kids-hero-badges span{font-size:11px!important;padding:8px 9px!important}
}

/* -------------------------------------------------------------------------- */
/* Ebeveyn kapısı: yanlış dokunmayla yetişkin bölüme çıkılmaz. */
.kids-adult-logo-switch[data-parent-gate],.kids-parent-note-v142 [data-parent-gate]{position:relative;user-select:none;-webkit-user-select:none;touch-action:none}
.kids-adult-logo-switch[data-parent-gate] small{display:block;margin-left:8px;color:#527382;font-size:11px;font-weight:900;white-space:nowrap}
.kids-adult-logo-switch[data-parent-gate]::after,.kids-parent-note-v142 [data-parent-gate]::after{content:'';position:absolute;left:0;bottom:-3px;width:100%;height:3px;border-radius:999px;background:#ffc54b;transform:scaleX(0);transform-origin:left;opacity:0}
.kids-adult-logo-switch.parent-gate-holding::after,.kids-parent-note-v142 .parent-gate-holding::after{opacity:1;animation:kid-parent-hold 2s linear forwards}
@keyframes kid-parent-hold{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:620px){.kids-adult-logo-switch[data-parent-gate] small{display:none}}

/* ========================================================================== */
/* v1.44.1 — Çocuk kontrolleri taşma düzeltmesi + yetişkin dock restorasyonu  */
/* ========================================================================== */

@media(min-width:821px){
  /* Çocuk üst kontrol grubu: hiçbir başlık butonun dışına taşamaz. */
  body.kids-game-mode .kids-simple-toolbar{
    max-width:calc(100% - 44px)!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .kids-simple-toolbar>button{
    flex:0 0 112px!important;
    width:112px!important;
    min-width:112px!important;
    max-width:112px!important;
    padding:0 10px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .kids-simple-toolbar>button span{
    flex:0 0 auto!important;
    font-size:19px!important;
  }
  body.kids-game-mode .kids-simple-toolbar>button strong{
    display:block!important;
    min-width:0!important;
    max-width:76px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:13px!important;
    line-height:1.15!important;
  }
  body.kids-game-mode .kids-simple-toolbar>.kids-more-tools{
    flex-basis:108px!important;
    width:108px!important;
    min-width:108px!important;
    max-width:108px!important;
  }

  /* Daha Fazla menüsünde kontrollü iki satır; metin dışarı taşmaz. */
  body.kids-game-mode .play-tools{
    box-sizing:border-box!important;
    flex-wrap:nowrap!important;
  }
  body.kids-game-mode .play-tools .play-tool{
    flex:0 0 116px!important;
    width:116px!important;
    min-width:116px!important;
    max-width:116px!important;
    padding:0 9px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .play-tools .play-tool strong{
    display:-webkit-box!important;
    min-width:0!important;
    max-width:78px!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-align:center!important;
    font-size:11.5px!important;
    line-height:1.08!important;
  }

  /* Çocuk şeridinde eski ::before/::after etiketleri ile gerçek buton metni
     üst üste geliyordu. Gerçek metni gizleyip tek bir kompakt etiket çiziyoruz. */
  body.kids-game-mode .piece-tray .tray-row-switch button{
    position:relative!important;
    min-width:72px!important;
    width:72px!important;
    max-width:72px!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    padding:0!important;
    overflow:hidden!important;
    font-size:0!important;
    line-height:1!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .piece-tray .tray-row-switch button::before{
    display:none!important;
    content:none!important;
  }
  body.kids-game-mode .piece-tray .tray-row-switch #trayOneRowButton::after,
  body.kids-game-mode .piece-tray .tray-row-switch #trayTwoRowsButton::after{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:inherit!important;
    font-size:11px!important;
    font-weight:950!important;
    line-height:34px!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  body.kids-game-mode .piece-tray .tray-row-switch #trayOneRowButton::after{content:'Dar'!important}
  body.kids-game-mode .piece-tray .tray-row-switch #trayTwoRowsButton::after{content:'Geniş'!important}

  body.kids-game-mode.kids-advanced-open .piece-tray .tray-actions{
    min-width:0!important;
    max-width:100%!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    overflow:hidden!important;
  }
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-actions #spreadPiecesButton,
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-actions #dockGatherButton{
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:132px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 10px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:11px!important;
    line-height:1!important;
  }

  /* Header başlığı ve yeni puzzle düğmesi de dar tabletlerde birbirine girmez. */
  body.kids-game-mode .game-header-left{flex:1 1 auto!important;overflow:hidden!important}
  body.kids-game-mode .header-puzzle-name{min-width:0!important;max-width:min(360px,28vw)!important;overflow:hidden!important}
  body.kids-game-mode .header-puzzle-name strong,
  body.kids-game-mode .header-puzzle-name small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.kids-game-mode .game-header-actions{flex:0 0 auto!important}
}

@media(min-width:821px) and (max-width:1180px){
  body.kids-game-mode .kids-simple-toolbar>button{
    flex-basis:94px!important;width:94px!important;min-width:94px!important;max-width:94px!important;padding:0 7px!important
  }
  body.kids-game-mode .kids-simple-toolbar>button strong{max-width:61px!important;font-size:11.5px!important}
  body.kids-game-mode .kids-simple-toolbar>.kids-more-tools{flex-basis:92px!important;width:92px!important;min-width:92px!important;max-width:92px!important}
  body.kids-game-mode .play-tools .play-tool{flex-basis:104px!important;width:104px!important;min-width:104px!important;max-width:104px!important}
  body.kids-game-mode .play-tools .play-tool strong{max-width:68px!important;font-size:10.5px!important}
  body.kids-game-mode .piece-tray .tray-row-switch button{width:62px!important;min-width:62px!important;max-width:62px!important}
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-actions #spreadPiecesButton,
  body.kids-game-mode.kids-advanced-open .piece-tray .tray-actions #dockGatherButton{max-width:112px!important;font-size:10px!important}
}

@media(min-width:821px){
  /* Çocuk header: yalnızca tamamlanma kartı varsa eski 3 kolonluk boş gövdeyi
     taşımıyoruz. Böylece sağında anlamsız beyaz alan oluşmaz. */
  body.kids-game-mode .game-header-stats{
    display:block!important;
    flex:0 0 138px!important;
    width:138px!important;
    min-width:138px!important;
    max-width:138px!important;
    padding:0!important;
    border:1px solid rgba(26,119,152,.14)!important;
    border-radius:16px!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.kids-game-mode .game-header-stats .primary-stat{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:56px!important;
    min-height:56px!important;
    padding:8px 15px 11px!important;
    border:0!important;
    border-radius:0!important;
    box-sizing:border-box!important;
  }
  body.kids-game-mode .game-header-stats .primary-stat::before{left:15px!important;right:15px!important;bottom:7px!important}
  body.kids-game-mode .game-header-stats .primary-stat::after{left:15px!important;bottom:7px!important;max-width:calc(100% - 30px)!important}
}

/* v1.45.4 multiplayer cursor: keep the other player's name/cursor above every game layer. */
.remote-player-cursor{
  z-index:100600!important;
  min-height:38px!important;
  grid-template-columns:30px max-content!important;
  padding:6px 10px 6px 6px!important;
  border:2px solid rgba(87,219,169,.72)!important;
  background:rgba(4,28,44,.97)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.42),0 0 0 3px rgba(87,219,169,.10)!important;
  transition:left .10s linear,top .10s linear!important;
}
.remote-cursor-avatar{width:30px!important;height:30px!important;font-size:11px!important}
.remote-player-cursor strong{font-size:12px!important;line-height:1.15!important;color:#fff!important;white-space:nowrap!important}
.remote-player-cursor small{font-size:9px!important;line-height:1.15!important;color:#b8d1dd!important;white-space:nowrap!important}

/* v1.45.5 — 3 kişilik odada her uzak oyuncunun imleci ayrı renkte ve adı görünür. */
.remote-player-cursor[data-remote-user]{border-color:var(--remote-color,#57dba9)!important;box-shadow:0 10px 30px rgba(0,0,0,.35),0 0 0 2px color-mix(in srgb,var(--remote-color,#57dba9) 22%,transparent)!important}
.remote-player-cursor[data-remote-user] .remote-cursor-avatar{background:var(--remote-color,#57dba9)!important;color:#071c2b!important}
.room-participants{gap:0}.room-participants .room-avatar{flex:0 0 auto}.room-participants .room-empty-seat{flex:0 0 auto}

/* v1.45.6 multiplayer realtime polish */
.remote-player-cursor{z-index:100200!important;transition:left .11s linear,top .11s linear!important;will-change:left,top,transform!important}.remote-drag-ghost-layer.board-logical-ghost-layer{z-index:100150!important}.remote-drag-ghost-layer.board-logical-ghost-layer .remote-drag-ghost{transition:left .09s linear,top .09s linear!important;will-change:left,top!important}

/* v2.0.2 — social/multiplayer removal cleanup */
.experience-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
@media (max-width:760px){.experience-cards{grid-template-columns:1fr;}}

/* v2.1.0 — fresh Social3 / three-player multiplayer UI */
.experience-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.social-header-button{white-space:nowrap}
.social-room-seats{min-width:236px;justify-content:flex-end}
.room-seat{min-width:72px}
.multiplayer-card .room-participants{min-height:46px}
.room-game-actions{display:grid;gap:8px}
.remote-player-cursor{
  z-index:100700!important;
  transform:translate(12px,12px)!important;
  border-color:var(--remote-color,#57dba9)!important;
  transition:left .075s linear,top .075s linear!important;
  pointer-events:none!important;
}
.remote-player-cursor strong{font-size:12px!important;font-weight:950!important}
.remote-player-cursor small{font-size:10px!important}
.remote-drag-ghost-layer.board-logical-ghost-layer{z-index:100650!important;pointer-events:none!important}
.puzzle-piece.remote-claimed{outline:2px solid var(--remote-color,#55e8b4);outline-offset:2px}
#socialModal .social-player-actions{align-items:center}
#socialModal .social-action{min-width:0}
#roomPlayerCount,#onlinePlayerCount,#friendCount,#friendRequestCount{font-variant-numeric:tabular-nums}
@media(max-width:1100px){
  .social-room-hero{grid-template-columns:1fr!important}
  .social-room-seats{min-width:0;justify-content:flex-start}
  .experience-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .experience-cards{grid-template-columns:1fr!important}
  .remote-player-cursor{transform:translate(8px,8px) scale(.86)!important;transform-origin:top left!important}
}

/* "Kod ile katıl" - homepage collab-card quick-join form, and the in-room shareable code panel. */
.join-code-form{margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}
.join-code-form label{display:block;font-size:11px;font-weight:800;letter-spacing:.02em;color:#e7edf1;margin-bottom:7px}
.join-code-row{display:flex;gap:8px;flex-wrap:wrap}
.join-code-row input{flex:1 1 140px;min-width:0;min-height:38px;padding:0 12px;border-radius:10px;border:1px solid rgba(255,255,255,.42);background:rgba(1,14,23,.35);color:#fff;font:inherit;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.join-code-row input::placeholder{color:rgba(255,255,255,.5);text-transform:none;font-weight:500;letter-spacing:normal}
.join-code-row input:focus{outline:2px solid var(--gold-2);outline-offset:1px}
.button.ghost-light{border:1px solid rgba(255,255,255,.42);background:rgba(1,14,23,.2);color:#fff;backdrop-filter:blur(10px);white-space:nowrap}
.button.ghost-light:hover{border-color:var(--gold-2);background:rgba(4,22,36,.6)}

.room-code-share{margin-top:10px;padding:10px 12px;border-radius:12px;border:1px dashed var(--line-strong);background:rgba(242,182,77,.06)}
.room-code-label{display:block;font-size:10px;font-weight:700;color:var(--muted);margin-bottom:7px;line-height:1.4}
.room-code-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.room-code-value{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:15px;font-weight:800;letter-spacing:.05em;color:var(--gold-2);background:rgba(0,0,0,.22);border-radius:8px;padding:5px 9px;flex:1 1 auto;min-width:0}
.room-code-copy{border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.025);color:var(--gold-2);cursor:pointer;min-height:32px;padding:0 10px;font-size:10px;font-weight:800;white-space:nowrap}
.room-code-copy:hover{border-color:rgba(244,182,79,.42);color:var(--gold-2);background:rgba(255,255,255,.06)}
.room-hero-create{margin-top:12px;min-height:36px;padding:0 16px;font-size:12px}


/* ========================================================================== */
/* v2.1.20 — profesyonel buton görünümü (cascade-safe override)              */
/* Dosyanın üst kısımlarında yıllar içinde eklenmiş !important kurallar      */
/* (özellikle satır ~2457 ve ~2484 civarındaki .game-action / .play-tool     */
/* tanımları) üst bardaki ve sol araç çubuğundaki butonların arka plan/kenar */
/* stilini eziyordu. Bu blok kasıtlı olarak dosyanın en sonunda ve daha      */
/* yüksek özgüllükte tanımlanarak o eski kuralları güvenli biçimde geçersiz  */
/* kılar; geometriye (boyut/konum) dokunmaz, yalnızca görsel derinlik katar. */
/* ========================================================================== */
.game-header-actions .button.game-action{
  border:1px solid rgba(210,228,242,.18)!important;
  background:linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.014))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px rgba(2,10,18,.3)!important;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.game-header-actions .button.game-action:hover{
  border-color:rgba(244,182,79,.42)!important;
  background:linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.022))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 9px 20px rgba(2,10,18,.36)!important;
  transform:translateY(-1px);
}
.game-header-actions .button.game-action#saveProgressButton{
  border-color:rgba(244,182,79,.52)!important;
  background:linear-gradient(180deg, rgba(244,182,79,.18), rgba(244,182,79,.045))!important;
  color:var(--gold-2)!important;
}
.game-header-actions .button.game-action.multiplayer-action{
  border-color:rgba(94,225,182,.4)!important;
  background:linear-gradient(180deg, rgba(94,225,182,.14), rgba(94,225,182,.03))!important;
}

@media (min-width:821px){
  .play-tools .play-tool{
    border:1px solid rgba(210,228,242,.17)!important;
    background:linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.015))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07), 0 10px 22px rgba(2,10,18,.28)!important;
    transition:border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  .play-tools .play-tool:hover{
    transform:translateY(-1px);
    border-color:rgba(244,182,79,.44)!important;
    background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.024))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.09), 0 12px 26px rgba(2,10,18,.34)!important;
  }
  .play-tools .play-tool.active{
    border-color:rgba(244,182,79,.44)!important;
    background:linear-gradient(180deg, rgba(244,182,79,.16), rgba(244,182,79,.035))!important;
    color:#fff!important;
  }
  .play-tools .play-tool.primary-tool{
    border-color:rgba(244,182,79,.5)!important;
    background:linear-gradient(180deg, rgba(244,182,79,.22), rgba(244,182,79,.055))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 2px rgba(244,182,79,.1), 0 14px 30px rgba(2,10,18,.3)!important;
  }
}

/* v2.1.29 — "Anılarını puzzle'a çevir" deneyim kartları grid'ine 4. kart olarak eklendi (2x2
   grid: yan yana 2, altına 2). Grid daha önce (satır ~6554) masaüstünde 3 sütuna sabitlenmişti
   ("!important" ile) - burada, dosyanın en sonunda, aynı özgüllük + !important ile üzerine
   yazıyoruz ki 4 kart her zaman 2x2 dizilsin. 1100px altı zaten 2 sütuna, 760px altı 1 sütuna
   düşüyordu, o kademeler değişmeden kalıyor. */
.experience-cards { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
