@font-face { font-family: Fraunces; src: url(../fonts/fraunces-latin-ext-soft-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0; }
@font-face { font-family: Fraunces; src: url(../fonts/fraunces-latin-soft-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212; }
@font-face { font-family: Figtree; src: url(../fonts/figtree-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0; }
@font-face { font-family: Figtree; src: url(../fonts/figtree-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212; }

:root {
  --bg: #0b1733; --surface: #132450; --surface2: #1a2f66; --line: #2c4684; --ink: #f8f1dc; --muted: #b9c3dd;
  --yellow: #f7c548; --orange: #e8892b; --on-yellow: #1d1503; --accent-text: #f7c548; --danger: #e4637a;
  --shadow: 0 10px 28px rgba(3, 8, 24, .45);
  --head: Fraunces, 'Cooper Black', Georgia, serif; --body: Figtree, system-ui, sans-serif;
  --st: env(safe-area-inset-top, 0px); --sr: env(safe-area-inset-right, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px);
  color-scheme: dark;
}
:root[data-theme=light] {
  --bg: #d5ebe7; --surface: #f6fbf9; --surface2: #e6f3f0; --line: #a9cfc9; --ink: #15304a; --muted: #43617a;
  --accent-text: #9a4a09; --danger: #b52f49; --shadow: 0 10px 26px rgba(21, 48, 74, .16); color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); min-height: 100dvh; overflow-wrap: break-word; }
body.no-scroll, body.playing { overflow: hidden; }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; font-variation-settings: 'SOFT' 100; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-star, .ic-play { fill: currentColor; }
.row { display: flex; gap: 10px; align-items: center; } .wrap { flex-wrap: wrap; } .end { justify-content: flex-end; } .center { justify-content: center; }
.small { font-size: .9rem; color: var(--muted); } .note { color: var(--muted); padding: 10px 2px; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 20px; border-radius: 14px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .12s, filter .12s; }
.btn:active { transform: translateY(2px); }
.btn.primary { background: linear-gradient(176deg, #ffd765, var(--yellow) 45%, #efae35); color: var(--on-yellow); box-shadow: 0 3px 0 #b9701a; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--surface2); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--yellow); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.huge { min-height: 60px; font-size: 1.15rem; padding: 12px 30px; border-radius: 18px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 22px; background: var(--surface2); box-shadow: inset 0 0 0 2px var(--line); font-weight: 650; }
.chip.on { background: var(--yellow); color: var(--on-yellow); box-shadow: none; }
.chip.big { font-size: 1.15rem; min-width: 62px; min-height: 52px; border-radius: 16px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface2); }
.icon-btn:hover { color: var(--accent-text); }
.field { min-height: 48px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); width: 100%; }
input[type=range] { appearance: none; -webkit-appearance: none; background: none; width: 100%; height: 44px; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: var(--line); }
input[type=range]::-moz-range-track { height: 12px; border-radius: 6px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border-radius: 50%; background: var(--yellow); border: 3px solid #b9701a; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 3px solid #b9701a; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--yellow); animation: spin 1s linear infinite; margin: auto; }
@keyframes spin { to { transform: rotate(1turn); } }
.boot { min-height: 100dvh; display: grid; place-items: center; }

/* Başlık */
.site-head { position: relative; overflow: hidden; padding: calc(14px + var(--st)) calc(18px + var(--sr)) 16px calc(18px + var(--sl)); background: #12265a; }
.site-head.tall { padding-bottom: clamp(16px, 4vw, 34px); padding-top: calc(clamp(16px, 3vw, 28px) + var(--st)); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.head-in { position: relative; max-width: 1500px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.logo { font-family: var(--head); font-weight: 900; font-variation-settings: 'SOFT' 100; font-size: clamp(1.35rem, 3.2vw, 2.1rem); line-height: 1.05; text-decoration: none; color: #fff6d8; text-shadow: 0 2px 0 #0a1533, 0 0 18px rgba(8, 16, 44, .9); }
.logo span { color: var(--yellow); }
[data-theme=light] .logo { color: #15304a; text-shadow: 0 0 10px #e9f7f3, 0 0 22px #e9f7f3, 0 0 4px #e9f7f3; } [data-theme=light] .logo span { color: #a34a06; }
.nav { display: flex; gap: 4px; background: rgba(8, 16, 44, .78); padding: 4px; border-radius: 16px; margin-left: auto; }
.nav a { color: #f8f1dc; text-decoration: none; font-weight: 650; padding: 10px 14px; border-radius: 12px; min-height: 44px; }
.nav a:hover { background: rgba(255, 255, 255, .1); }
.nav a[aria-current] { background: var(--yellow); color: var(--on-yellow); }
.head-side { display: flex; gap: 8px; align-items: center; }
.rank-chip { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 14px; background: rgba(8, 16, 44, .78); color: #f8f1dc; text-decoration: none; }
.rank-chip .row { gap: 4px; color: var(--yellow); font-weight: 750; }
.icon-btn.on-sky { background: rgba(8, 16, 44, .78); color: #f8f1dc; }
@media (max-width: 860px) {
  .nav { order: 3; width: 100%; margin: 0; justify-content: space-between; } .nav a { flex: 1; text-align: center; padding: 10px 4px; }
  .head-side { margin-left: auto; }
}
@media (max-width: 480px) { .head-in { gap: 10px; } .logo { width: 100%; } .head-side { margin-left: 0; width: 100%; } .rank-chip { flex: 1; justify-content: space-between; } }

.page { max-width: 1500px; margin: 0 auto; padding: clamp(18px, 3vw, 34px) calc(18px + var(--sr)) 40px calc(18px + var(--sl)); min-height: 60dvh; }
.page.center { display: grid; justify-items: center; align-content: center; gap: 16px; text-align: center; }
.page > h1 { margin-bottom: 18px; }
.foot { display: flex; gap: 22px; justify-content: center; padding: 18px 18px calc(26px + var(--sb)); color: var(--muted); }
.foot a, .foot button { text-decoration: underline; text-underline-offset: 3px; padding: 10px; min-height: 44px; }

/* Devam et */
.continue { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; margin-bottom: 28px; }
.cont { position: relative; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.cont:first-child { grid-column: 1 / -1; box-shadow: inset 0 0 0 3px var(--yellow), var(--shadow); }
.cont-main { display: flex; width: 100%; align-items: center; gap: clamp(12px, 2.4vw, 26px); padding: 14px 64px 14px 14px; }
.cont-main img, .cont-main .ph { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: var(--surface2); flex: none; }
.cont:first-child .cont-main img { width: clamp(104px, 18vw, 200px); height: clamp(104px, 13vw, 150px); }
.cont-txt { display: grid; gap: 4px; flex: 1; min-width: 0; }
.cont-h { font-family: var(--head); font-weight: 900; font-variation-settings: 'SOFT' 100; font-size: clamp(1.2rem, 3vw, 1.75rem); line-height: 1.1; color: var(--accent-text); }
.cont-play { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; flex: none; margin-right: 10px; }
@media (max-width: 560px) { .cont-play { display: none; } }
.cont > .icon-btn { position: absolute; top: 10px; right: 10px; }
.bar { display: block; height: 10px; border-radius: 6px; background: rgba(120, 140, 190, .35); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .3s; }

/* Galeri */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 -4px 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 48px; padding: 10px 18px; border-radius: 14px; font-weight: 700; color: var(--muted); }
.tab[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: inset 0 -4px 0 var(--yellow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.card-wrap { position: relative; display: flex; }
.card { display: flex; flex-direction: column; width: 100%; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .16s; }
.card:hover { transform: translateY(-4px); }
.pic { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface2); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.cap { display: grid; gap: 2px; padding: 11px 14px 14px; } .cap b { line-height: 1.25; } .cap small { color: var(--muted); } .cap .src { opacity: .8; }
.tag { position: absolute; top: 10px; left: 10px; border-radius: 12px; padding: 3px 10px; font-weight: 800; background: var(--yellow); color: var(--on-yellow); }
.tag.done { left: auto; right: 10px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; background: #2f8f5b; color: #fff; border-radius: 50%; }
.card-tools { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.card-tools + *, .card-wrap:has(.card-tools) .cap { padding-bottom: 62px; }
.card.loading { opacity: .6; } .card.loading .pic::after { content: ''; position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; border: 5px solid #fff8; border-top-color: var(--yellow); animation: spin 1s linear infinite; }
.upload { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px; margin-bottom: 20px; border: 3px dashed var(--line); border-radius: 20px; background: var(--surface); }
.upload.over { border-color: var(--yellow); background: var(--surface2); }
.upload p { color: var(--muted); } .upload h3 { font-size: 1.3rem; margin-bottom: 4px; }
@media (hover: hover) and (pointer: fine) { .touch-only { display: none; } }
.search .btn { flex: none; } .search { display: flex; gap: 10px; margin-bottom: 12px; max-width: 640px; } .explore h3 { margin: 28px 0 14px; } .ideas { margin-bottom: 6px; }

/* Kurulum */
.back { margin-bottom: 16px; }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.setup-pic { display: grid; gap: 12px; justify-items: center; }
.preview-canvas { max-width: 100%; max-height: min(66dvh, 640px); border-radius: 10px; box-shadow: var(--shadow); }
figcaption { text-align: center; display: grid; } figcaption span { color: var(--muted); }
.setup-panel { display: grid; gap: 16px; }
.setup-panel .num { width: 96px; text-align: center; font-weight: 750; font-size: 1.15rem; flex: none; }
.verdict { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--surface); }
.result { font-weight: 750; font-size: 1.15rem; } .result.adj { color: var(--accent-text); }
.diff { font-family: var(--head); font-weight: 900; font-variation-settings: 'SOFT' 100; font-size: 1.2rem; color: var(--accent-text); }
.dots { display: inline-flex; gap: 5px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); } .dots i.on { background: var(--orange); }
.warn { color: var(--accent-text); font-weight: 650; }
.setup-go, .resume-note { display: grid; gap: 10px; } .resume-note:empty { display: none; }
.bests summary { cursor: pointer; padding: 8px 0; } .bests ul { padding-left: 20px; }
@media (max-width: 820px) { .setup-grid { grid-template-columns: 1fr; } .preview-canvas { max-height: 42dvh; } }

/* Oyun */
.play { position: fixed; inset: 0; height: 100dvh; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.play-bg { filter: brightness(.72) saturate(.8); position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.play-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; } .play-fx.top { z-index: 12; }
.safe-probe { position: absolute; visibility: hidden; pointer-events: none; padding: var(--st) var(--sr) var(--sb) var(--sl); }
.hud { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: calc(6px + var(--st)) calc(12px + var(--sr)) 6px calc(10px + var(--sl)); background: rgba(8, 16, 40, .82); color: #f8f1dc; }
.hud-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26vw; } .hud .bar { flex: 1; min-width: 40px; }
.hud-pct { font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.hud-chip { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 5px 11px; border-radius: 12px; background: rgba(120, 145, 205, .22); }
.tool { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #f8f1dc; }
.tool:hover { background: rgba(255, 255, 255, .14); } .tool[aria-pressed=true] { background: var(--yellow); color: var(--on-yellow); }
.tools .ic-sound, .tools .ic-mute { color: inherit; }
.tool:has(.ic-sound)[aria-pressed=true] { background: none; color: #f8f1dc; }
.tools { position: absolute; z-index: 5; right: calc(8px + var(--sr)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 18px; background: rgba(8, 16, 40, .7); max-height: calc(100dvh - 90px); overflow-y: auto; scrollbar-width: none; }
.tools::-webkit-scrollbar { display: none; }
.fs-only { display: none; }
.fs .hud { display: none; } .fs .fs-only { display: grid; }
.fs .tools { background: rgba(8, 16, 40, .34); opacity: .72; transition: opacity .2s; max-height: calc(100dvh - 16px); } .fs .tools:hover, .fs .tools:focus-within { opacity: 1; background: rgba(8, 16, 40, .8); }
.mini { display: none; position: absolute; z-index: 4; left: calc(10px + var(--sl)); top: calc(8px + var(--st)); padding: 3px 10px; border-radius: 10px; background: rgba(8, 16, 40, .45); color: #f8f1dc; font-size: .85rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.fs .mini { display: block; }
.preview { position: absolute; z-index: 4; left: calc(12px + var(--sl)); bottom: calc(12px + var(--sb)); padding: 6px; border-radius: 14px; background: rgba(8, 16, 40, .85); box-shadow: var(--shadow); pointer-events: none; }
.preview img { max-width: min(280px, 42vw); max-height: min(230px, 32dvh); border-radius: 9px; }
.preview .tool { position: absolute; top: -10px; right: -10px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); pointer-events: auto; }
.play-loading { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; gap: 14px; text-align: center; background: rgba(8, 16, 40, .7); color: #f8f1dc; justify-items: center; padding: 20px; }
@media (max-width: 599px) and (orientation: portrait) {
  .hud { gap: 8px; } .hud-title { display: none; } .hud-chip { padding: 5px 8px; font-size: .9rem; }
  .tools { top: calc(62px + var(--st)); left: 8px; right: 8px; transform: none; flex-direction: row; justify-content: space-between; overflow-x: auto; }
  .fs .tools { top: calc(6px + var(--st)); left: auto; } .fs .mini { top: auto; bottom: calc(2px + var(--sb)); }
  .preview { top: calc(124px + var(--st)); bottom: auto; }
  .tool { width: 44px; height: 44px; }
}
@media (max-height: 599px) and (orientation: landscape) {
  .tools { right: auto; left: calc(6px + var(--sl)); max-height: calc(100dvh - 70px); top: calc(50% + 28px); padding: 3px; gap: 0; } .fs .tools { top: 50%; }
  .tool { height: 40px; } .tools .tool { width: 42px; height: 38px; } .hud { padding-top: calc(3px + var(--st)); padding-bottom: 3px; } .preview { left: calc(64px + var(--sl)); } .fs .mini { left: calc(64px + var(--sl)); }
  .fine { display: none; }
}
@media (pointer: coarse) { .fine { display: none; } }

.board-gece { background: radial-gradient(ellipse at 72% 18%, rgba(247, 197, 72, .26), transparent 34%), radial-gradient(ellipse at 22% 70%, #1d4a8f, transparent 55%), repeating-radial-gradient(ellipse at 70% 20%, #14306c 0 9px, #17377c 9px 19px, #122a60 19px 27px), #12265a; }
.board-badem { background: radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .5), transparent 22%), radial-gradient(circle at 80% 72%, rgba(251, 227, 220, .5), transparent 26%), repeating-linear-gradient(112deg, #7fc0bd 0 14px, #8ac8c4 14px 30px, #76b7b5 30px 41px); }
.board-aycicegi { background: radial-gradient(ellipse at 50% 120%, #b96b1b, transparent 60%), repeating-linear-gradient(96deg, #dda52f 0 13px, #e6b340 13px 27px, #d39a28 27px 38px); }
.board-kafe { background: radial-gradient(ellipse at 12% 40%, rgba(247, 178, 60, .75), transparent 46%), repeating-linear-gradient(78deg, #1c2f63 0 12px, #223a78 12px 25px, #182955 25px 36px); }
.board-susen { background: radial-gradient(ellipse at 78% 20%, rgba(232, 137, 43, .45), transparent 36%), repeating-linear-gradient(70deg, #3d6b4d 0 13px, #47785a 13px 28px, #355f46 28px 39px); }

/* Bitiş */
.play.done .hud, .play.done .tools, .play.done .preview, .play.done .mini { opacity: 0; pointer-events: none; transition: opacity .4s; }
.finish { position: absolute; inset: 0; z-index: 10; overflow-y: auto; touch-action: auto; display: grid; grid-auto-rows: max-content; align-content: safe center; grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr); opacity: 0; transition: opacity .9s; color: #f8f1dc; background: radial-gradient(ellipse at 34% 34%, #5a2a2f 0, #3a1b27 38%, #1a1022 76%); }
.finish.in { opacity: 1; }
.fin-wall { position: relative; display: grid; place-items: center; padding: clamp(40px, 6dvh, 90px) clamp(16px, 4vw, 70px); min-height: min(62dvh, 620px); align-self: center; }
.lamp { position: absolute; top: 0; left: 50%; width: 120%; height: 100%; transform: translateX(-50%); background: radial-gradient(ellipse 46% 80% at 50% 0, rgba(255, 226, 150, .34), transparent 72%); pointer-events: none; }
.fin-wall .framed { transform: scale(.94); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); } .finish.in .framed { transform: none; }
.fin-wall .framed img { max-width: 100%; max-height: min(66dvh, 780px); width: auto; }
.fin-card { align-self: center; display: grid; gap: 14px; padding: 22px calc(clamp(18px, 3vw, 46px) + var(--sr)) calc(26px + var(--sb)) 8px; }
.fin-stars { display: flex; gap: 8px; } .big-star { color: rgba(255, 255, 255, .16); transform: scale(.8); }
.big-star.on { color: var(--yellow); filter: drop-shadow(0 0 14px rgba(247, 197, 72, .65)); animation: starIn .6s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes starIn { from { transform: scale(0) rotate(-80deg); } to { transform: scale(1); } }
.fin-title p { color: #e6cfae; } .fact { background: rgba(255, 244, 214, .1); border-radius: 16px; padding: 14px 18px; } .fact h3 { color: var(--yellow); margin-bottom: 6px; }
.ribbon { background: var(--orange); color: #201002; font-weight: 850; padding: 5px 14px; border-radius: 12px; opacity: 0; transform: rotate(-4deg) scale(.5); transition: .45s cubic-bezier(.2, 1.7, .4, 1); } .ribbon.on { opacity: 1; transform: rotate(-3deg); }
.fin-extras { display: flex; flex-wrap: wrap; gap: 10px; } .fin-extras:empty { display: none; }
.pop { display: flex; gap: 10px; align-items: center; background: rgba(247, 197, 72, .16); border-radius: 14px; padding: 8px 14px; opacity: 0; transform: translateY(14px); transition: .4s; } .pop.on { opacity: 1; transform: none; }
.pop-ic { font-size: 1.6rem; } .pop span:last-child { display: grid; line-height: 1.2; } .pop small { color: #e6cfae; }
.fin-btns { display: flex; flex-wrap: wrap; gap: 10px; } .fin-btns .ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
@media (max-width: 860px) { .finish { grid-template-columns: 1fr; align-content: start; } .fin-wall { min-height: max-content; padding: calc(34px + var(--st)) 20px 22px; } .fin-wall .framed img { max-height: 44dvh; } .fin-card { padding: 0 18px calc(30px + var(--sb)); align-self: start; } }
@media (max-height: 520px) and (orientation: landscape) { .fin-wall { padding: 18px; } .finish { grid-template-columns: 1fr 1fr; } }

/* Çerçeveler */
.framed { display: block; padding: var(--fw, 18px); background: var(--fr); border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .25), inset 0 0 0 calc(var(--fw, 18px) - 3px) rgba(0, 0, 0, .1), inset 0 0 12px rgba(0, 0, 0, .35); }
.framed img, .framed > span { display: block; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), inset 0 0 8px #000; }
.frame-altin { --fr: linear-gradient(135deg, #f9e29a, #c9952f 22%, #f4cf6a 42%, #a87218 60%, #f1cc67 80%, #b27c1f); }
.frame-ahsap { --fr: repeating-linear-gradient(92deg, #7c4a22 0 5px, #8a5529 5px 11px, #6d3f1c 11px 15px); }
.frame-gumus { --fr: linear-gradient(135deg, #f3f5f8, #9aa5b5 25%, #e4e9ef 48%, #808c9e 70%, #d8dee6); }
.frame-barok { --fr: repeating-conic-gradient(from 0deg at 50% 50%, #b27c1f 0 6deg, #f4d477 6deg 12deg, #8f5d12 12deg 18deg); }
.frame-aycicegi { --fr: repeating-radial-gradient(circle at 50% 50%, #f7c548 0 8px, #e8a02b 8px 15px, #7a4a14 15px 18px); }
.frame-yildizli { --fr: radial-gradient(circle at 12% 8%, #fff3b0 0 3px, transparent 4px), radial-gradient(circle at 82% 4%, #f7c548 0 3px, transparent 4px), radial-gradient(circle at 96% 62%, #fff3b0 0 3px, transparent 4px), radial-gradient(circle at 4% 78%, #f7c548 0 3px, transparent 4px), radial-gradient(circle at 48% 98%, #fff3b0 0 3px, transparent 4px), repeating-linear-gradient(60deg, #12265a 0 7px, #1d4a8f 7px 13px, #17377c 13px 18px); }

/* Müze, rozet, ayar */
.museum-head { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; margin-bottom: 26px; }
.museum { border-radius: 0; background: none; } .count { font-family: var(--head); font-weight: 900; font-variation-settings: 'SOFT' 100; font-size: 1.3rem; color: var(--accent-text); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 44px 34px; align-items: end; }
.work { display: grid; justify-items: center; gap: 16px; } .work .framed img { width: 100%; max-height: 300px; object-fit: cover; } .work:hover .framed { filter: brightness(1.08); }
.plate { display: grid; justify-items: center; gap: 2px; background: var(--surface); padding: 9px 18px; border-radius: 10px; box-shadow: var(--shadow); text-align: center; } .plate small { color: var(--muted); }
.mini-stars { display: flex; color: var(--line); } .mini-stars .on { color: var(--orange); }
.empty { display: grid; justify-items: center; gap: 22px; padding: 30px 0; text-align: center; } .empty-frame span { width: 220px; height: 150px; background: var(--surface2); }
.rank-box { background: var(--surface); border-radius: 20px; padding: 22px; display: grid; gap: 12px; margin-bottom: 24px; } .rank-box h2 { font-size: 1.8rem; color: var(--accent-text); }
.ranks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); } .ranks .on { color: var(--ink); font-weight: 700; } .nums { gap: 8px 24px; } .nums b { font-size: 1.25rem; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 14px; }
.badge { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 12px; border-radius: 18px; background: var(--surface); } .badge:not(.on) { opacity: .68; } .badge.on { box-shadow: inset 0 0 0 3px var(--yellow); }
.badge-ic { font-size: 2.1rem; } .badge small { color: var(--muted); } .badge .p { color: var(--accent-text); font-weight: 700; }
.settings section, .sources section { display: grid; gap: 12px; margin-bottom: 30px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; } .choice { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px; border-radius: 16px; background: var(--surface); } .choice.on { box-shadow: inset 0 0 0 3px var(--yellow); } .choice small { display: inline-flex; gap: 4px; align-items: center; }
.swatch { display: block; width: 100px; height: 66px; border-radius: 8px; } .swatch.framed { --fw: 12px; border-radius: 3px; } .swatch.framed::after { content: ''; display: block; height: 100%; background: #23407f; } .swatch.edge { background: #12265a; display: grid; place-items: center; } .swatch.edge canvas { width: 100%; }
.check { min-height: 44px; } .check input { width: 22px; height: 22px; accent-color: var(--orange); }
.sources ul { padding-left: 20px; display: grid; gap: 5px; } .sources a { color: var(--accent-text); } .sources > p { max-width: 70ch; margin-bottom: 24px; } .sources small { color: var(--muted); }

/* Pencereler */
.dlg { border: 0; border-radius: 22px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); width: min(460px, calc(100vw - 32px)); } .dlg::backdrop { background: rgba(4, 9, 26, .72); }
.dlg-body { display: grid; gap: 16px; padding: 24px; } .dlg.busy { padding: 34px; text-align: center; } .dlg.busy p { margin-top: 14px; }
.editor { width: min(980px, calc(100vw - 20px)); height: min(860px, calc(100dvh - 20px)); max-height: none; padding: 16px; } .editor[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; }
.ed-head p, .ed-note { color: var(--muted); font-size: .92rem; } .ed-stage { position: relative; min-height: 120px; border-radius: 14px; overflow: hidden; background: #060c1e; } .ed-canvas { position: absolute; touch-action: none; }
.ed-tools { display: grid; gap: 8px; } .ed-zoom { max-width: 460px; white-space: nowrap; } .settings section > .chip { justify-self: start; }
#toasts { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(22px + var(--sb)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: #fff3cf; color: #2a1c05; font-weight: 650; padding: 12px 20px; border-radius: 16px; box-shadow: var(--shadow); animation: up .35s both; max-width: 560px; } .toast.out { opacity: 0; transition: opacity .4s; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }

/* Tanıtım */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #12265a; color: #fff6d8; overflow-y: auto; } .intro.out { opacity: 0; transition: opacity .45s; }
.intro-sky { position: fixed; inset: 0; width: 100%; height: 100%; }
.intro-stage { position: relative; width: 100%; padding: 70px calc(18px + var(--sr)) calc(40px + var(--sb)) calc(18px + var(--sl)); display: grid; place-items: center; }
.intro-hello, .intro-step { display: grid; justify-items: center; gap: 18px; text-align: center; background: radial-gradient(closest-side, rgba(7, 14, 40, .86), rgba(7, 14, 40, .7) 70%, transparent); padding: clamp(30px, 6vw, 70px) clamp(20px, 8vw, 110px); animation: up .6s both; }
.intro-hello h1 { font-size: clamp(2.4rem, 8vw, 5rem); color: var(--yellow); } .intro-hello p { font-size: clamp(1.2rem, 3vw, 1.7rem); }
.intro-step { background: rgba(7, 14, 40, .88); border-radius: 30px; padding: clamp(20px, 4vw, 40px); width: min(560px, 100%); } .intro-step h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--yellow); } .intro-step p { font-size: 1.1rem; max-width: 40ch; }
.intro .ghost { background: rgba(7, 14, 40, .8); color: #fff6d8; box-shadow: inset 0 0 0 2px rgba(255, 246, 216, .4); }
.intro-art svg { width: min(400px, 74vw); } .intro-skip { position: fixed; top: calc(16px + var(--st)); right: calc(16px + var(--sr)); }
.intro-dots { display: flex; gap: 8px; } .intro-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 246, 216, .3); } .intro-dots .on { background: var(--yellow); }
.a-float { animation: flo 3.4s ease-in-out infinite; } .a-float.b { animation-delay: -1.1s; } .a-float.c { animation-delay: -2.2s; } @keyframes flo { 50% { transform: translateY(-9px); } }
.a-join { transform: translate(var(--x), var(--y)); animation: join 3.6s ease-in-out infinite; } @keyframes join { 0%, 12% { transform: translate(calc(var(--x) + var(--dx, 34px)), calc(var(--y) + var(--dy, 26px))) rotate(9deg); } 45%, 90% { transform: translate(var(--x), var(--y)); } }
.j0 { --dx: -50px; --dy: -24px; } .j1 { --dx: 6px; --dy: -34px; } .j2 { --dx: 52px; --dy: -18px; } .j3 { --dx: -48px; --dy: 30px; } .j4 { --dx: -8px; --dy: 38px; } .j5 { --dx: 50px; --dy: 26px; }
.a-star { animation: tw 1.6s ease-in-out infinite alternate; } @keyframes tw { to { opacity: .35; } }

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