/* Limon — arayüz stilleri. Ölçüler --u (oyun ölçeği) ile çarpılır; 720p'de --u = 1. */
@font-face { font-family: 'Pixelify Sans'; font-weight: 400; font-display: swap; src: url(../assets/fonts/pixelify-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pixelify Sans'; font-weight: 400; font-display: swap; src: url(../assets/fonts/pixelify-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url(../assets/fonts/pixelify-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url(../assets/fonts/pixelify-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Limon v2 — arayüz. --u: oyun alanı ölçeği (HUD), --s: menü ekranları ölçeği. 720p'de ikisi de ≈ 1. */
:root {
  --ink: #3b2224;
  --ink-soft: #7a4f3f;
  --cream: #fff4dc;
  --gold: #ffd36b;
  --bg: #231a2b;
  --u: 1; --s: 1; --pad: 1;
  --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body {
  font-family: 'Pixelify Sans', ui-monospace, monospace;
  color: var(--ink);
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: none;
  overscroll-behavior: none;
  position: fixed; inset: 0;
}
button { touch-action: manipulation; font: inherit; color: inherit; }
img { image-rendering: pixelated; -webkit-user-drag: none; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; display: grid; place-items: center; }
#app.portrait { background: linear-gradient(#5b3a2e, #3a2630); display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: var(--sat); }
#stage { position: relative; flex: none; }
#view { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; background: #2b2233; }
#overlay { position: absolute; inset: 0; font-size: calc(24px * var(--u)); pointer-events: none; }
#overlay button { pointer-events: auto; }

/* ------------------------------------------------------------ ekranlar (tüm uygulamayı kaplar) */
#screens { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-size: calc(24px * var(--s)); }
.screen {
  position: absolute; inset: 0; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(12px + var(--sat)) calc(12px + var(--sar)) calc(12px + var(--sab)) calc(12px + var(--sal));
  background: radial-gradient(ellipse at center, rgba(35, 20, 30, .30), rgba(35, 20, 30, .62));
  animation: fade .18s ease-out;
  overflow: auto;
}
#screen-title { background: linear-gradient(180deg, rgba(35,20,30,.05) 30%, rgba(35,20,30,.5)); }
#screen-loading { background: var(--bg); }
@keyframes fade { from { opacity: 0; } }

.panel {
  min-width: min(calc(480px * var(--s)), 94vw);
  max-width: 94vw;
  max-height: 100%;
  overflow: auto;
  padding: calc(18px * var(--s)) calc(30px * var(--s)) calc(22px * var(--s));
  display: flex; flex-direction: column; align-items: center; gap: calc(10px * var(--s));
  border-style: solid;
  border-width: calc(30px * var(--s)) calc(34px * var(--s));
  border-image: url(../assets/ui/panel_vine_light.png) 30 34 fill stretch;
  text-align: center;
  scrollbar-width: none;
}
.panel::-webkit-scrollbar { display: none; }
.panel-small { min-width: min(calc(380px * var(--s)), 90vw); }
.panel h2 { margin: 0 0 calc(2px * var(--s)); font-size: 1.45em; font-weight: 700; color: var(--ink); }
.muted { margin: 0; font-size: .72em; color: var(--ink-soft); min-height: 1em; }
.muted.light { color: var(--cream); }

/* başlık */
.title { display: flex; align-items: center; justify-content: center; gap: calc(10px * var(--s)); max-width: 100%; }
.title-bird { height: calc(360px * var(--s)); width: auto; filter: drop-shadow(0 calc(8px * var(--s)) 0 rgba(35,20,30,.35)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(calc(-8px * var(--s))); } }
.title-main { display: flex; flex-direction: column; align-items: center; gap: calc(10px * var(--s)); }
.logo { margin: 0; line-height: 0; }
.logo img { width: calc(520px * var(--s)); max-width: 70vw; height: auto; filter: drop-shadow(0 calc(6px * var(--s)) 0 rgba(35,20,30,.45)); }
.tagline, .best, .keys { margin: 0; color: var(--cream); text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); }
.tagline { font-size: .95em; margin-bottom: calc(4px * var(--s)); }
.best { font-size: .8em; min-height: 1em; }
.keys { font-size: .56em; opacity: .95; }
.rotate { display: none; margin: 0; font-size: .7em; color: var(--cream); background: rgba(59,34,36,.8); padding: .3em .8em; border-radius: .4em; }
#app.portrait .rotate { display: block; }
#app.portrait .title { flex-direction: column; }
#app.portrait .title-bird { height: calc(200px * var(--s)); }
#app.touch .keys { display: none; }

/* ------------------------------------------------------------ butonlar */
.btn {
  font-weight: 700; color: var(--ink);
  min-width: calc(210px * var(--s)); height: calc(60px * var(--s));
  padding: 0 calc(10px * var(--s));
  border-style: solid;
  border-width: calc(18px * var(--s)) calc(20px * var(--s));
  border-image: url(../assets/ui2/btn_normal.png) 40 44 fill stretch;
  background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  transition: transform .06s;
}
.btn > span { margin-top: calc(-3px * var(--s)); white-space: nowrap; font-size: .9em; }
.btn > img { height: 1.05em; width: auto; margin-top: calc(-3px * var(--s)); }
.btn:hover, .btn:focus-visible { border-image-source: url(../assets/ui2/btn_hover.png); outline: none; }
.btn:focus-visible { filter: drop-shadow(0 0 calc(5px * var(--s)) #fff6c9); }
.btn:active { transform: translateY(calc(2px * var(--s))); border-image-source: url(../assets/ui2/btn_off.png); color: var(--cream); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { border-image-source: url(../assets/ui2/btn_blank_orange.png); border-image-slice: 40 44 fill; }
.btn-primary:hover, .btn-primary:focus-visible { border-image-source: url(../assets/ui2/btn_hover.png); }
.btn-small { min-width: 0; }
.btn-row { display: flex; gap: calc(10px * var(--s)); flex-wrap: wrap; justify-content: center; align-items: center; }
.btn-row .btn { min-width: calc(170px * var(--s)); }

.btn-img { border: 0; padding: 0; background: none; cursor: pointer; line-height: 0; transition: transform .08s, filter .08s; }
.btn-img img { width: calc(300px * var(--s)); height: auto; }
.btn-img:hover, .btn-img:focus-visible { filter: brightness(1.08) drop-shadow(0 0 calc(6px * var(--s)) #fff2a8); outline: none; transform: scale(1.03); }
.btn-img:active { transform: scale(.97) translateY(2px); filter: brightness(.9); }

/* ikon butonlar (normal / hover / kapalı durum görselleri) */
.ibtn {
  width: calc(56px * var(--k, var(--s))); height: calc(56px * var(--k, var(--s)));
  padding: 0; border: 0; cursor: pointer; background: center / contain no-repeat;
  display: inline-grid; place-items: center; transition: transform .06s; position: relative;
}
#overlay .ibtn { --k: var(--u); }
.ibtn:active { transform: scale(.93); }
.ibtn:focus-visible { outline: 3px solid #fff6c9; outline-offset: 2px; border-radius: 20%; }
.ibtn-sound { background-image: url(../assets/ui2/ico2_sound_normal.png); }
.ibtn-sound:hover { background-image: url(../assets/ui2/ico2_sound_hover.png); }
.ibtn-sound.off { background-image: url(../assets/ui2/ico2_sound_off.png); }
.ibtn-music { background-image: url(../assets/ui2/ico2_music_normal.png); }
.ibtn-music:hover { background-image: url(../assets/ui2/ico2_music_hover.png); }
.ibtn-music.off { background-image: url(../assets/ui2/ico2_music_off.png); }
.ibtn-home { background-image: url(../assets/ui2/ico2_home_normal.png); }
.ibtn-home:hover { background-image: url(../assets/ui2/ico2_home_hover.png); }
.ibtn.off::after {
  content: ''; position: absolute; left: 20%; right: 20%; top: 50%; height: 9%;
  background: #b33a3a; border: 2px solid var(--ink); transform: rotate(-40deg); border-radius: 2px;
}
.ibtn-glyph { background-image: url(../assets/ui2/btn_normal.png); background-size: 100% 100%; border-radius: 22%; }
.ibtn-glyph:hover { background-image: url(../assets/ui2/btn_hover.png); }
.g-pause { width: 34%; height: 38%; border-left: calc(7px * var(--k, 1)) solid var(--ink); border-right: calc(7px * var(--k, 1)) solid var(--ink); }
.g-fs { width: 44%; height: 44%; background:
  linear-gradient(var(--ink),var(--ink)) 0 0/40% 18%, linear-gradient(var(--ink),var(--ink)) 0 0/18% 40%,
  linear-gradient(var(--ink),var(--ink)) 100% 0/40% 18%, linear-gradient(var(--ink),var(--ink)) 100% 0/18% 40%,
  linear-gradient(var(--ink),var(--ink)) 0 100%/40% 18%, linear-gradient(var(--ink),var(--ink)) 0 100%/18% 40%,
  linear-gradient(var(--ink),var(--ink)) 100% 100%/40% 18%, linear-gradient(var(--ink),var(--ink)) 100% 100%/18% 40%;
  background-repeat: no-repeat; }
.icon-row { display: flex; gap: calc(12px * var(--s)); }

/* ------------------------------------------------------------ HUD */
#hud {
  position: absolute; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: calc(12px * var(--u)) calc(16px * var(--u));
}
#app:not(.portrait) #hud { padding-left: max(calc(16px * var(--u)), var(--sal)); padding-right: max(calc(16px * var(--u)), var(--sar)); padding-top: max(calc(12px * var(--u)), var(--sat)); }
.hud-left { display: flex; flex-direction: column; gap: calc(6px * var(--u)); }
.hud-right { justify-self: end; display: flex; gap: calc(8px * var(--u)); }
.lives { display: flex; gap: calc(4px * var(--u)); }
.lives img { width: calc(44px * var(--u)); height: auto; filter: drop-shadow(0 calc(2px * var(--u)) 0 rgba(59,34,36,.5)); }
.lives img.lost { animation: lost .5s steps(4); }
.lives img.gain { animation: pop .4s ease-out; }
@keyframes lost { 0%, 50% { transform: scale(1.4); } 25%, 75% { transform: scale(.8); } }
.stamina { position: relative; width: calc(150px * var(--u)); height: calc(29px * var(--u)); background: url(../assets/ui2/bar_frame.png) center / 100% 100% no-repeat; transition: opacity .3s; opacity: 0; }
.stamina.show { opacity: 1; }
.stamina i { position: absolute; left: 20.8%; top: 29%; height: 42%; width: 76%; transform-origin: left center; border-radius: 99px;
  background: linear-gradient(#fff3a0, #ffd23d 55%, #e9a91f); box-shadow: inset 0 -1px 0 rgba(0,0,0,.2); }
.stamina.low i { background: linear-gradient(#ffc2a8, #ff7b52); }
.hud-center { display: flex; flex-direction: column; align-items: center; gap: calc(2px * var(--u)); }
.feather-count {
  display: flex; align-items: center; gap: calc(8px * var(--u));
  height: calc(56px * var(--u)); min-width: calc(150px * var(--u));
  padding: 0 calc(18px * var(--u)) 0 calc(10px * var(--u));
  border-style: solid; border-width: calc(14px * var(--u)) calc(20px * var(--u));
  border-image: url(../assets/ui/panel_wood.png) 14 20 fill stretch;
  font-weight: 700; font-size: 1.15em; color: var(--cream);
  text-shadow: 0 2px 0 var(--ink);
}
.feather-count img { height: calc(34px * var(--u)); margin: calc(-8px * var(--u)) 0; transform: rotate(-12deg); }
#score { display: inline-block; min-width: 2ch; text-align: left; }
#score.pop { animation: pop .18s ease-out; }
@keyframes pop { 50% { transform: scale(1.3); color: #fff; } }
.dist, .combo { font-size: .7em; color: var(--cream); text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); }
.combo { font-size: .8em; color: #ffe27a; }
.combo #combo-x { color: #ffb347; font-weight: 700; }
.combo.bump { animation: pop .2s ease-out; }
.combo.hot #combo-x { color: #ff7f50; animation: pulse .5s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.hint {
  position: absolute; left: 50%; bottom: calc(22px * var(--u)); transform: translateX(-50%);
  margin: 0; padding: .45em .9em; font-size: .72em; white-space: nowrap; max-width: 96%; overflow: hidden; text-overflow: ellipsis;
  background: rgba(59, 34, 36, .8); color: var(--cream); border-radius: .5em;
  transition: opacity .8s;
}
.hint.fade { opacity: 0; }

/* ------------------------------------------------------------ tabelalar */
#banners { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.place {
  margin-top: calc(118px * var(--u));
  display: flex; align-items: center; gap: .5em;
  padding: 0 calc(20px * var(--u));
  height: calc(56px * var(--u));
  border-style: solid; border-width: calc(14px * var(--u)) calc(22px * var(--u));
  border-image: url(../assets/ui2/btn_blank_brown.png) 40 50 fill stretch;
  color: var(--cream); font-weight: 700; font-size: 1em; text-shadow: 0 2px 0 var(--ink);
  animation: place 2.8s ease-in-out forwards;
}
.place #place-n { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--gold); color: var(--ink); text-shadow: none; font-size: .8em; }
@keyframes place { 0% { opacity: 0; transform: translateY(-30px); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
.big-banner { position: absolute; top: 26%; left: 50%; transform: translateX(-50%); animation: bigb 2s ease-out forwards; line-height: 0; }
.big-banner img.full { width: calc(560px * var(--u)); max-width: 92vw; height: auto; }
.big-banner.fall img.full { width: calc(400px * var(--u)); }
.big-banner .composed { display: flex; align-items: center; }
.big-banner .composed img { height: calc(150px * var(--u)); width: auto; }
.big-banner .composed .plate {
  margin: 0 calc(-26px * var(--u)); z-index: 1; position: relative;
  height: calc(92px * var(--u)); padding: 0 calc(26px * var(--u));
  border-style: solid; border-width: calc(20px * var(--u)) calc(26px * var(--u));
  border-image: url(../assets/ui2/btn_blank_orange.png) 40 44 fill stretch;
  display: grid; place-items: center; line-height: 1;
  font-weight: 700; font-size: calc(46px * var(--u)); color: #ffe45c; white-space: nowrap;
  text-shadow: 0 4px 0 #c46a15, 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 0 7px 0 var(--ink);
}
@keyframes bigb { 0% { opacity: 0; transform: translateX(-50%) scale(.4); } 12% { opacity: 1; transform: translateX(-50%) scale(1.1); } 20%, 80% { transform: translateX(-50%) scale(1); opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

/* ------------------------------------------------------------ dokunmatik */
#touch { position: absolute; z-index: 2; pointer-events: none; }
#touch button {
  pointer-events: auto; position: absolute;
  width: calc(118px * var(--u) * var(--pad)); height: calc(118px * var(--u) * var(--pad));
  border: calc(4px * var(--u)) solid rgba(59,34,36,.6); border-radius: 50%;
  background: rgba(255, 244, 220, .30); color: rgba(59,34,36,.85);
  touch-action: none; display: grid; place-items: center; padding: 0;
  -webkit-user-select: none; user-select: none;
}
#touch button.is-down { background: rgba(255, 211, 107, .6); transform: scale(.95); }
.arrow { width: 0; height: 0; border-top: calc(22px * var(--u) * var(--pad)) solid transparent; border-bottom: calc(22px * var(--u) * var(--pad)) solid transparent; }
.arrow.l { border-right: calc(30px * var(--u) * var(--pad)) solid currentColor; margin-right: 12%; }
.arrow.r { border-left: calc(30px * var(--u) * var(--pad)) solid currentColor; margin-left: 12%; }
.pad-jump { flex-direction: column; }
.pad-jump img { width: 38%; height: auto; transform: rotate(-20deg); }
.pad-jump span { font-weight: 700; font-size: calc(17px * var(--u) * var(--pad)); margin-top: -4%; }
#app:not(.portrait) #touch { inset: 0; }
#app:not(.portrait) .pad-left button { bottom: calc(18px * var(--u) + var(--sab)); }
#app:not(.portrait) .pad-left button[data-t="left"] { left: calc(22px * var(--u) + var(--sal)); }
#app:not(.portrait) .pad-left button[data-t="right"] { left: calc(22px * var(--u) + var(--sal) + 136px * var(--u) * var(--pad)); }
#app:not(.portrait) .pad-jump { right: calc(26px * var(--u) + var(--sar)); bottom: calc(18px * var(--u) + var(--sab)); width: calc(148px * var(--u) * var(--pad)) !important; height: calc(148px * var(--u) * var(--pad)) !important; }
/* dikey: kontroller oyunun altındaki ahşap panelde */
#app.portrait #touch {
  position: relative; flex: 1; width: 100%;
  background: linear-gradient(#5b3a2e, #3a2630); border-top: 4px solid var(--ink);
  padding-bottom: var(--sab);
}
#app.portrait #touch button { --u: var(--s); background: rgba(255, 228, 170, .22); border-color: rgba(255,228,170,.45); color: #ffe4aa; }
#app.portrait #touch button.is-down { background: rgba(255, 211, 107, .55); color: var(--ink); }
#app.portrait #touch button { width: calc(21vw * var(--pad)); height: calc(21vw * var(--pad)); border-width: 3px; }
#app.portrait .arrow { border-top-width: calc(4.2vw * var(--pad)); border-bottom-width: calc(4.2vw * var(--pad)); }
#app.portrait .arrow.l { border-right-width: calc(5.6vw * var(--pad)); }
#app.portrait .arrow.r { border-left-width: calc(5.6vw * var(--pad)); }
#app.portrait .pad-jump span { font-size: calc(3.4vw * var(--pad)); }
#app.portrait .pad-left button { top: 50%; transform: translateY(-50%); }
#app.portrait .pad-left button[data-t="left"] { left: 5vw; }
#app.portrait .pad-left button[data-t="right"] { left: calc(8vw + 21vw * var(--pad)); }
#app.portrait .pad-jump { right: 6vw; top: 50%; transform: translateY(-50%); width: calc(27vw * var(--pad)) !important; height: calc(27vw * var(--pad)) !important; }
#app.portrait #touch button.is-down { transform: translateY(-50%) scale(.95); }

/* ------------------------------------------------------------ oyun sonu */
.over-newbest { width: calc(460px * var(--s)); max-width: 86vw; height: auto; margin-bottom: calc(-26px * var(--s)); z-index: 1; animation: bigpop .6s ease-out; }
@keyframes bigpop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.08); } }
.stat-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(6px * var(--s)); width: min(calc(400px * var(--s)), 80vw); }
.stat-rows li { display: grid; grid-template-columns: calc(40px * var(--s)) 1fr auto; align-items: center; gap: .5em; padding: .15em .6em; background: rgba(122, 79, 63, .14); border-radius: .4em; }
.stat-rows img { height: calc(32px * var(--s)); width: auto; justify-self: center; }
.stat-rows span { text-align: left; font-size: .85em; }
.stat-rows b { font-size: 1.25em; }
#name-form { display: flex; flex-direction: column; align-items: center; gap: calc(4px * var(--s)); }
#name-form label { font-size: .7em; color: var(--ink-soft); }
.name-row { display: flex; gap: calc(8px * var(--s)); align-items: center; }
#name-input {
  font: inherit; font-size: max(16px, .9em); width: calc(240px * var(--s)); height: calc(52px * var(--s));
  padding: 0 .6em; color: var(--ink); background: #fff8e8;
  border: 3px solid var(--ink); border-radius: calc(8px * var(--s));
  -webkit-user-select: text; user-select: text; touch-action: manipulation;
}
#name-input:focus { outline: 3px solid var(--gold); }

/* ------------------------------------------------------------ skor tablosu */
.tabs { display: flex; gap: calc(6px * var(--s)); flex-wrap: wrap; justify-content: center; }
.tabs button {
  font-size: .64em; cursor: pointer;
  padding: .3em .8em; border: 2px solid var(--ink); border-radius: calc(8px * var(--s)); background: #fde3b0;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.board, .board-head { width: min(calc(560px * var(--s)), 84vw); }
.board { max-height: calc(300px * var(--s)); overflow: auto; }
.board-compact { max-height: calc(150px * var(--s)); }
.board:empty { display: none; }
.board ol { list-style: none; margin: 0; padding: 0; font-size: .7em; }
.board li, .board-head { display: grid; grid-template-columns: 2.2em 1fr 3.4em 4.2em 3.8em; gap: .5em; align-items: center; padding: .22em .5em; border-radius: .35em; }
.board-head { font-size: .55em; color: var(--ink-soft); padding-bottom: 0; }
.board li:nth-child(odd) { background: rgba(122, 79, 63, .12); }
.board li.me { background: var(--gold); }
.board li:nth-child(1) .rk { color: #b7791f; }
.board .rk { font-weight: 700; text-align: right; }
.board .nm { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-user-select: text; user-select: text; }
.board .cb, .board .ds { color: var(--ink-soft); font-size: .85em; text-align: right; }
.board .sc { font-weight: 700; text-align: right; }
.board .empty { margin: .6em 0; font-size: .75em; color: var(--ink-soft); }

/* ------------------------------------------------------------ ayarlar & hakkında */
.settings { width: min(calc(560px * var(--s)), 94vw); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; width: 100%; font-size: .8em; padding: .25em .4em; border-bottom: 2px dashed rgba(122,79,63,.25); }
.toggle { width: 3.2em; height: 1.6em; border-radius: 99px; border: 3px solid var(--ink); background: #b89a86; position: relative; cursor: pointer; flex: none; }
.toggle::after { content: ''; position: absolute; top: 50%; left: .12em; width: 1.15em; height: 1.15em; margin-top: -.575em; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); transition: left .12s; }
.toggle[aria-pressed="true"] { background: #f0a53a; }
.toggle[aria-pressed="true"]::after { left: calc(100% - 1.3em); }
.seg { display: flex; border: 3px solid var(--ink); border-radius: .5em; overflow: hidden; flex: none; }
.seg button { border: 0; background: #fde3b0; padding: .25em .6em; cursor: pointer; font-size: .85em; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
input[type="range"] { width: 45%; accent-color: #e08a2c; touch-action: manipulation; }
.credits dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: .3em 1em; font-size: .75em; text-align: left; }
.credits dt { color: var(--ink-soft); }
.credits dd { margin: 0; font-weight: 700; }
.credits-logo { width: calc(260px * var(--s)); height: auto; }

/* ------------------------------------------------------------ yükleme */
.loading { display: flex; flex-direction: column; align-items: center; gap: calc(14px * var(--s)); }
.load-bird { height: calc(220px * var(--s)); width: auto; animation: bob 1.6s ease-in-out infinite; }
.bar { width: calc(300px * var(--s)); height: calc(22px * var(--s)); border: 3px solid var(--cream); border-radius: calc(11px * var(--s)); background: #5b3a2e; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }
.noscript { color: #fff; font-family: sans-serif; text-align: center; margin-top: 40vh; }

/* ------------------------------------------------------------ v3: duyuru, rumuz, duraklatma, hata bildirimi */
.announce {
  margin: 0; max-width: calc(560px * var(--s)); padding: .35em .9em; font-size: .72em; font-weight: 700;
  color: var(--ink); background: var(--gold); border: 3px solid var(--ink); border-radius: .5em;
  box-shadow: 0 calc(4px * var(--s)) 0 rgba(35,20,30,.35); text-align: center;
}
.link-btn {
  border: 0; background: none; padding: .3em .6em; cursor: pointer; font-size: .62em;
  color: var(--cream); text-decoration: underline; text-underline-offset: .2em; opacity: .9;
  text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink);
}
.link-btn:hover, .link-btn:focus-visible { opacity: 1; color: var(--gold); outline: none; }
.panel .link-btn { color: var(--ink-soft); text-shadow: none; font-size: .66em; }
.panel .link-btn:hover { color: var(--ink); }
.lead { margin: 0; font-size: .78em; max-width: calc(440px * var(--s)); }

.nick-panel { width: min(calc(560px * var(--s)), 94vw); }
.nick-bird { height: calc(110px * var(--s)); width: auto; margin: calc(-6px * var(--s)) 0 calc(-4px * var(--s)); animation: bob 2.4s ease-in-out infinite; }
#nick-input {
  font: inherit; font-size: max(16px, .95em); width: calc(260px * var(--s)); height: calc(54px * var(--s));
  padding: 0 .6em; color: var(--ink); background: #fff8e8;
  border: 3px solid var(--ink); border-radius: calc(8px * var(--s));
  -webkit-user-select: text; user-select: text; touch-action: manipulation;
}
#nick-input:focus { outline: 3px solid var(--gold); }
.privacy {
  margin: calc(4px * var(--s)) 0 0; max-width: calc(470px * var(--s)); font-size: .62em; line-height: 1.45; text-align: left;
  color: var(--ink-soft); background: rgba(122, 79, 63, .12); border-radius: .6em; padding: .6em .8em;
}
.privacy b { color: var(--ink); }

.pause .btn { min-width: calc(250px * var(--s)); }
.pause-stats { display: flex; gap: 1.2em; margin: 0 0 calc(4px * var(--s)); font-size: .85em; }
.pause-stats span { display: inline-flex; align-items: center; gap: .3em; }
.pause-stats img { height: 1.1em; width: auto; }

.bug-panel { width: min(calc(600px * var(--s)), 96vw); }
.chips { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s)); justify-content: center; }
.chips button {
  font-size: .62em; cursor: pointer; padding: .3em .8em;
  border: 2px solid var(--ink); border-radius: 99px; background: #fde3b0;
}
.chips button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
#bug-text {
  width: 100%; min-height: 5.2em; resize: vertical; font: inherit; font-size: max(16px, .72em); line-height: 1.35;
  padding: .5em .65em; color: var(--ink); background: #fff8e8; border: 3px solid var(--ink); border-radius: calc(8px * var(--s));
  -webkit-user-select: text; user-select: text; touch-action: manipulation;
}
#bug-text:focus { outline: 3px solid var(--gold); }
.check { display: flex; align-items: center; gap: .5em; font-size: .68em; cursor: pointer; align-self: flex-start; }
.check input { width: 1.2em; height: 1.2em; accent-color: #e08a2c; }
#bug-thumb { height: calc(54px * var(--s)); width: auto; border: 2px solid var(--ink); border-radius: 4px; image-rendering: auto; }
#bug-thumb[src=""] { display: none; }
.tech { width: 100%; font-size: .56em; text-align: left; color: var(--ink-soft); }
.tech summary { cursor: pointer; }
.tech pre {
  margin: .4em 0 0; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, monospace; font-size: .95em;
  background: rgba(122, 79, 63, .12); padding: .6em; border-radius: .4em; max-height: 9em; overflow: auto;
  -webkit-user-select: text; user-select: text;
}

.board-me { max-height: none; margin-top: calc(-4px * var(--s)); border-top: 2px dashed rgba(122,79,63,.35); padding-top: calc(4px * var(--s)); }
.nick-row { display: inline-flex; align-items: center; gap: .6em; }
.mini-btn { font-size: .78em; cursor: pointer; padding: .15em .7em; border: 2px solid var(--ink); border-radius: .4em; background: #fde3b0; }
.mini-btn:hover { background: var(--gold); }

.credits { width: min(calc(600px * var(--s)), 94vw); }
.credits .about { font-size: .74em; line-height: 1.5; max-width: calc(500px * var(--s)); text-align: center; }
.credits .about p { margin: 0 0 .7em; }
.credits .about p:last-child { margin-bottom: 0; }
.credits-photo {
  width: calc(170px * var(--s)); height: calc(170px * var(--s)); object-fit: cover; image-rendering: auto;
  border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 calc(4px * var(--s)) 0 rgba(35,20,30,.3);
}
.about-foot { font-size: .58em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
