/* Gökbahçe interface: wood, leaves and bright buttons (design §21). Art slots are .art boxes (--art); when the generated UI kit
   arrives the "Arayüz takımı" block at the end swaps the drawn frames for the pictures (border-image), nothing else changes. */
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
[hidden] { display: none !important; }
:root {
  --wood: #c98b4a; --wood2: #8f5a2b; --wood3: #f3d9a8; --cream: #fff7e6; --ink: #4a2f17; --muted: #8a6d4f;
  --green: #5cbf3a; --green2: #3c8f22; --orange: #f39a2b; --blue: #3fa9e8; --red: #e5533d; --sky: #8fd3f4; --gold: #ffd34d;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8fd3f4; color: var(--ink); font: 500 15px/1.35 'Barlow', system-ui, sans-serif; user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; padding: 9px 11px; border-radius: 10px; border: 2px solid var(--wood2); background: var(--cream); color: var(--ink); }
.map { position: fixed; inset: 0; touch-action: none; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: linear-gradient(#8fd3f4, #c8f0a8); z-index: 50; font-weight: 700; color: var(--green2); }
.art { display: inline-block; background: var(--art, none) center / contain no-repeat; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.center { text-align: center; }
.ok { color: var(--green2); } .bad { color: var(--red); }

/* ---- buttons ---- */
/* glossy pills like the UI kit's buttons: a light top, a darker raised bottom edge, a dark outline */
.btn { min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 2px solid #1f6fb0; font-weight: 700; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  background: linear-gradient(#8fe6ff 0%, #4fbdf2 45%, #2f97dc 100%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .5), 0 3px 0 rgba(0, 0, 0, .22); }
.btn.green { background: linear-gradient(#b5ef74 0%, #76cc3e 45%, #4ea82a 100%); border-color: #2c6f17; }
.btn.orange { background: linear-gradient(#ffc27a 0%, #ff9533 45%, #f07a18 100%); border-color: #b5560c; }
.btn.red { background: linear-gradient(#ff9a86 0%, #f05a43 45%, #d83d2a 100%); border-color: #9c2a1c; }
.btn.wood { background: linear-gradient(#f0c181 0%, #d9984f 45%, #bf7a35 100%); border-color: #7a4a20; }
.btn.small { min-height: 30px; padding: 3px 12px; font-size: 13px; }
.btn:disabled { filter: grayscale(.8); opacity: .65; cursor: default; }
.btn:not(:disabled):active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2); }

/* ---- top bar ---- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: flex-start; padding: max(8px, env(safe-area-inset-top)) 10px 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.who { display: flex; align-items: center; gap: 0; background: none; border: 0; padding: 0; }
.avatar { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background-color: var(--wood3); background-size: cover; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); z-index: 2; }
.lvl { margin-left: -12px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: linear-gradient(#ffe57a, #f0b400); }
.lvl b { font-size: 13px; margin-top: 4px; }
.xp { position: relative; margin-left: -6px; width: 130px; height: 18px; border-radius: 9px; background: rgba(74, 47, 23, .65); border: 2px solid #fff; overflow: hidden; }
.xp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#a6ec72, var(--green)); }
.xp small { position: relative; display: block; text-align: center; font-size: 11px; color: #fff; font-weight: 700; line-height: 14px; text-shadow: 0 1px 1px #000; }
.res { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cap { padding: 4px 12px; border-radius: 16px; background: var(--cream); border: 2px solid var(--wood2); font-weight: 700; box-shadow: 0 2px 3px rgba(0, 0, 0, .25); white-space: nowrap; }
.cap.kagat { cursor: pointer; } .cap.kagat b { color: var(--green2); }
.cap i { font-style: normal; margin-right: 4px; }

/* ---- side and bottom buttons ---- */
.side { position: fixed; z-index: 9; top: 80px; display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.side.left { left: 0; } .side.right { right: 0; }
.bottom { position: fixed; z-index: 9; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 6px 8px max(8px, env(safe-area-inset-bottom)); pointer-events: none; flex-wrap: wrap; }
.bottom > * { pointer-events: auto; }
.round { position: relative; width: 58px; height: 58px; border-radius: 18px; border: 3px solid #fff; background: linear-gradient(#ffe2ae, var(--wood)); box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 24px; line-height: 1; padding: 2px; }
.round small { font-size: 10px; font-weight: 700; margin-top: 2px; color: var(--ink); }
.round .art { width: 36px; height: 36px; }
.round.on { background: linear-gradient(#b5f08a, var(--green)); }
.dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.banner { position: fixed; z-index: 11; top: 70px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 14px; background: rgba(74, 47, 23, .85); color: #fff; font-weight: 700; display: flex; gap: 10px; align-items: center; }

/* ---- panel (bottom sheet on a phone, centred window on a desktop) ---- */
.panel { position: fixed; inset: 0; z-index: 20; background: rgba(40, 25, 10, .35); display: flex; align-items: flex-end; justify-content: center; }
.panel-in { position: relative; width: min(100%, 720px); max-height: 82vh; overflow-y: auto; background: var(--cream); border: 4px solid var(--wood); border-bottom: 0; border-radius: 22px 22px 0 0;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0, 0, 0, .3); animation: up .18s; }
@media (min-width: 800px) { .panel { align-items: center; } .panel-in { border-radius: 22px; border-bottom: 4px solid var(--wood); } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.panel-in h2 { margin: -16px -16px 12px; padding: 10px 50px 10px 16px; background: linear-gradient(#e2ad6c, var(--wood)); color: #fff; font-size: 20px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); border-radius: 18px 18px 0 0; }
.x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; font-weight: 700; z-index: 2; }
.tabs { display: flex; gap: 4px; margin-bottom: 10px; overflow-x: auto; }
.tabs button { flex: none; padding: 6px 14px; border-radius: 12px 12px 4px 4px; border: 2px solid var(--wood2); background: var(--wood3); font-weight: 700; }
.tabs button.on { background: var(--green); color: #fff; border-color: var(--green2); }
.grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.card { position: relative; border-radius: 14px; background: #fff; border: 2px solid var(--wood3); padding: 8px; text-align: center; }
.card.pick { cursor: pointer; } .card.pick:hover { border-color: var(--green); }
.card.locked { opacity: .5; filter: grayscale(.7); }
.card .art, .it .art { width: 56px; height: 56px; display: grid; place-items: center; font-size: 34px; margin: 0 auto; }
.card b { display: block; font-size: 14px; }
.card small { display: block; color: var(--muted); font-size: 12px; }
.n { position: absolute; right: 6px; top: 4px; font-weight: 700; font-size: 13px; }
.list { display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--wood3); }
.item .grow { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 10px; background: #fff; border: 2px solid var(--wood3); font-size: 13px; font-weight: 700; }
.chip.short { border-color: var(--red); color: var(--red); }
.chip .art { width: 20px; height: 20px; font-size: 15px; display: inline-grid; place-items: center; }
.bar { height: 10px; border-radius: 5px; background: #e8d5b5; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #8bd65c, var(--green)); }
.queue { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.slot { width: 58px; height: 58px; border-radius: 12px; border: 2px dashed var(--wood); display: grid; place-items: center; font-size: 26px; position: relative; background: #fff; }
.slot.done { border: 2px solid var(--green); background: #e8f9dc; }
.slot small { position: absolute; bottom: 1px; font-size: 10px; font-weight: 700; }
.order { position: relative; border-radius: 14px; background: #fff; border: 2px solid var(--wood3); padding: 8px; }
.order.can { border-color: var(--green); box-shadow: 0 0 0 2px #c9f0b0; }
.order.wait { opacity: .55; }
.crates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* ---- toast, floating rewards, notice ---- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: 90vw; padding: 10px 16px; border-radius: 14px; background: rgba(74, 47, 23, .92); color: #fff; font-weight: 700; text-align: center; }
.toast.err { background: rgba(200, 50, 40, .95); }
.float { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.fl { position: absolute; font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 2px 2px #000; animation: rise 1.3s forwards; white-space: nowrap; }
@keyframes rise { to { transform: translateY(-60px); opacity: 0; } }
.notice { position: fixed; z-index: 35; top: 70px; right: 10px; width: min(360px, calc(100vw - 20px)); padding: 12px 14px; border-radius: 16px; background: var(--cream); border: 3px solid var(--wood); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); cursor: pointer; animation: up .25s; }
.notice b { display: block; color: var(--green2); font-size: 16px; }
.levelup { text-align: center; }
.levelup .big { font-size: 64px; }

/* ---- chat ---- */
.chat { position: fixed; z-index: 25; top: 0; bottom: 0; left: 0; width: 340px; max-width: 100vw; display: flex; flex-direction: column; background: var(--cream); border-right: 4px solid var(--wood); }
.chat-h { display: flex; justify-content: space-between; align-items: center; padding: max(10px, env(safe-area-inset-top)) 10px 8px; background: var(--wood); }
.chat-h .x { position: static; }
.tabs2 button { border: 0; padding: 6px 12px; border-radius: 10px; background: var(--wood3); font-weight: 700; margin-right: 4px; }
.tabs2 button.on { background: var(--green); color: #fff; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; user-select: text; }
.msg { background: #fff; border-radius: 12px; padding: 6px 10px; border: 2px solid var(--wood3); }
.msg b { color: var(--green2); margin-right: 6px; }
.chat-f { display: flex; gap: 6px; padding: 8px 8px max(8px, env(safe-area-inset-bottom)); }
.chat-f input { flex: 1; min-width: 0; }
/* private messages (ui-dm.js) */
.tabs2 button { padding: 6px 10px; }
.dm-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 3px solid var(--wood3); background: #fff8e6; }
.dm-h .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-t { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--wood3); border-radius: 12px; padding: 6px 8px; font: inherit; color: inherit; cursor: pointer; position: relative; }
.dm-t .grow { flex: 1; min-width: 0; }
.dm-last { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b5a44; }
.dm-dot { position: static; flex: none; }
.msg.dmsg.me { align-self: flex-end; background: #e4f6d2; border-color: #9fd27a; }
.msg.dmsg { align-self: flex-start; max-width: 88%; overflow-wrap: anywhere; }
.dm-at { display: block; font-size: 11px; margin-top: 2px; }
.dm-at a { color: #b5523b; }
.dm-name { cursor: pointer; text-decoration: underline dotted; }

/* ---- tutorial ---- */
.tut { position: fixed; inset: 0; z-index: 45; }
.tut.free { pointer-events: none; } .tut.free .tut-bubble { pointer-events: auto; }
.tut-ring { position: absolute; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(30, 20, 5, .55), 0 0 0 4px #ffe066, 0 0 20px 8px rgba(255, 224, 102, .8); pointer-events: none; transition: all .2s; }
.tut.free .tut-ring { box-shadow: 0 0 0 4px #ffe066, 0 0 20px 8px rgba(255, 224, 102, .8); }
.tut-bubble { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); width: min(92vw, 440px); background: var(--cream); border: 3px solid var(--wood); border-radius: 18px; padding: 12px 14px 12px 92px; min-height: 86px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.tut-bubble.top { bottom: auto; top: 86px; }
.tut-bubble .findik { position: absolute; left: 4px; bottom: 0; width: 86px; height: 110px; --art: url('/img/kar-findik.webp'); }
.tut-bubble p { margin: 0 0 6px; }

/* ---- fishing ---- */
.fishgame { position: relative; height: 220px; border-radius: 16px; overflow: hidden; background: linear-gradient(#bfe8ff, #3a8fd0); }
.fishgame .bob { position: absolute; left: 50%; top: 40%; font-size: 40px; transform: translate(-50%, -50%); transition: top .15s; }
.fishgame .meter { position: absolute; left: 10%; right: 10%; bottom: 18px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.fishgame .zone { position: absolute; top: 0; bottom: 0; background: rgba(92, 191, 58, .8); }
.fishgame .needle { position: absolute; top: -4px; bottom: -4px; width: 6px; background: var(--red); border-radius: 3px; }

/* ---- phone: the bottom row stays one line ---- */
@media (max-width: 560px) {
  .bottom { gap: 4px; padding-left: 4px; padding-right: 4px; flex-wrap: nowrap; }
  .bottom .round { width: calc((100vw - 8px - 7 * 4px) / 8); max-width: 54px; height: 54px; border-radius: 14px; border-width: 2px; font-size: 20px; }
  .bottom .round .art { width: 28px; height: 28px; font-size: 20px; }
  .bottom .round small { font-size: 8.5px; }
  .tut-bubble { bottom: 84px; }
}
/* a panel is open: Fındık steps aside to the top so the panel stays readable */
body:has(#panel:not([hidden])) .tut-bubble { top: 6px; bottom: auto; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
body:has(#panel:not([hidden])) .tut-bubble .findik { width: 60px; height: 70px; font-size: 44px !important; }

/* ---- Arayüz takımı (UI kit pictures, body.kit when they exist) ---- */
.kit .map { background: url('/img/harita-sahne.webp?v=1') center / cover; }
.kit .panel-in { overflow-x: hidden; border: 34px solid transparent; border-image: url('/img/ui-panel.webp?v=1') 105 fill / 34px stretch; background: none; padding: 2px 6px 6px;
  border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
@media (min-width: 800px) { .kit .panel-in { border-radius: 0; border-bottom: 34px solid transparent; } }
.kit .panel-in h2 { margin: -14px 44px 10px; padding: 2px 12px; border-style: solid; border-width: 24px 30px 12px; border-image: url('/img/ui-baslik.webp?v=1') 125 120 50 fill / 24px 30px 12px stretch;
  background: none; border-radius: 0; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); text-align: center; font-size: 19px; }
.kit .x { position: sticky; float: right; top: 0; margin: -4px -4px 0 0; width: 44px; height: 44px; border: 0; border-radius: 0; background: url('/img/ui-kapat.webp?v=1') center / contain no-repeat; color: transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.kit .chat-h .x { width: 40px; height: 40px; }
.kit .tabs button { border: 11px solid transparent; border-image: url('/img/ui-sekme.webp?v=1') 80 fill / 11px stretch; background: none; border-radius: 0; padding: 0 6px; color: var(--ink); }
.kit .tabs button.on { border-image-source: url('/img/ui-sekme-on.webp?v=1'); color: var(--green2); }
.kit .dot { background: url('/img/ui-nokta.webp?v=1') center / contain no-repeat; border: 0; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.kit .card.locked { opacity: .75; } .kit .card.locked > * { opacity: .55; }
.kit .card.locked::after { content: ''; position: absolute; top: 4px; right: 4px; width: 22px; height: 28px; background: url('/img/ui-kilit.webp?v=1') center / contain no-repeat; }
.kit .cap { position: relative; min-width: 84px; padding: 0 2px; line-height: 24px; text-align: center; border: 0; border-style: solid; border-width: 8px 26px 8px 42px;
  border-image: url('/img/ui-kapsul.webp?v=1') 30 100 30 165 fill / 8px 26px 8px 42px stretch; background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.kit .cap i { position: absolute; left: -38px; top: 50%; transform: translateY(-50%); width: 34px; font-style: normal; font-size: 19px; text-align: center; }
.kit .cap b { display: none; }
.kit .chat { background: url('/img/ui-zemin.webp?v=1') center / cover; }
@media (max-width: 560px) {
  .kit .cap { min-width: 58px; border-width: 6px 20px 6px 34px; border-image-width: 6px 20px 6px 34px; font-size: 13px; line-height: 22px; }
  .kit .cap i { left: -31px; width: 28px; font-size: 16px; }
  .res { flex-wrap: nowrap; gap: 2px; }
  .xp { width: 84px; }
  .side { top: 74px; }
}
.kit .card.locked.own::after { width: 26px; height: 28px; background-image: url('/img/ui-tamam.webp?v=1'); }
#lerr { margin: 0; font-weight: 700; text-align: center; }
.kit #lf, .kit #nf { padding-bottom: 16px; }

/* the gold coin art inside running text and the top bar */
.art.pic.coin { font-size: inherit !important; display: inline-block !important; width: 1.25em !important; height: 1.25em !important; margin: 0 !important; vertical-align: -.28em; }

/* a valley character beside a speech bubble (npc() in gb-core) */
.npc { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 10px; }
.npc .face { width: 96px; height: 96px; flex: none; }
.npc .say { flex: 1; background: #fff; border: 2px solid var(--wood3); border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; font-weight: 600; }
@media (max-width: 700px) { .npc .face { width: 70px; height: 70px; } }
.order p > .art.pic { width: 28px; height: 28px; vertical-align: middle; }
.sell-it > .art { display: inline-grid; width: 40px; height: 40px; font-size: 26px; vertical-align: middle; }

/* the order board: wanted goods big on top, the reward under them, the buttons on one line at the bottom of every card */
.grid.orders { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: stretch; }
.order { display: flex; flex-direction: column; gap: 8px; }
.order .want { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.order .want .w { position: relative; display: flex; flex-direction: column; align-items: center; width: 56px; padding: 4px 2px 2px; border-radius: 10px; background: #fbf4e2; border: 2px solid transparent; cursor: help; }
.order .want .w .art { width: 42px; height: 42px; font-size: 30px; display: grid; place-items: center; }
.order .want .w b { font-size: 13px; color: var(--green2); }
.order .want .w.short { border-color: #f3c2b8; } .order .want .w.short b { color: var(--red); }
.order .gets { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding-top: 6px; border-top: 2px dashed #ecdcbc; }
.order .gets .chips { justify-content: center; }
.order .acts { margin-top: auto; display: flex; gap: 6px; justify-content: center; }
.order .acts [data-del] { flex: 1; }
.order.wait { display: grid; place-items: center; min-height: 150px; }
/* name balloon on hover (a tap shows it as a toast: gb-core) */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 20; pointer-events: none;
  padding: 4px 9px; border-radius: 8px; background: #4a3220; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
@media (max-width: 700px) {
  .grid.orders { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .order { padding: 6px; gap: 6px; }
  .order .want .w { width: 48px; } .order .want .w .art { width: 36px; height: 36px; }
  .order .acts .btn.small { padding-left: 6px; padding-right: 6px; }
}
/* section J art: level ribbon, badges, the derby board, ship crates */
.levelup .ribbon { width: min(100%, 380px); aspect-ratio: 3.2; margin: 0 auto 4px; background: var(--art) center / contain no-repeat; display: grid; place-items: center; }
.levelup .ribbon b { font-size: 26px; color: #fff; text-shadow: 0 2px 0 #2f6b1f, 0 0 6px #2f6b1f; margin-top: -8%; }
.art.badge { width: 1.5em; height: 1.5em; vertical-align: middle; display: inline-grid; place-items: center; }
.art.badge.big { width: 40px; height: 40px; flex: none; font-size: 28px; }
.list .item > .art.badge.crown { width: 30px; height: 30px; flex: none; }
.derby-head { display: flex; gap: 12px; align-items: center; }
.derby-head .art.board { width: 110px; height: 96px; flex: none; }
.derby-head p { margin: 0; }
.crates .crate { width: 76px; height: 64px; margin: 0 auto; background: var(--art) center / contain no-repeat; display: grid; place-items: center; }
.crates .crate .art { width: 34px; height: 34px; font-size: 24px; margin: -6px 0 0; }
/* buttons in the UI kit's flowered wooden frame, label on a little plaque under it; help rows with the same pictures */
.kit .round { width: 64px; height: 64px; border: 9px solid transparent; border-image: url('/img/ui-sekme.webp?v=1') 80 fill / 9px stretch; background: none;
  border-radius: 0; box-shadow: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); padding: 0; margin-bottom: 12px; justify-content: center; }
.kit .round:active { transform: translateY(1px) scale(.97); }
.kit .round.on { border-image-source: url('/img/ui-sekme-on.webp?v=1'); }
.kit .round .art { width: 42px; height: 42px; font-size: 28px; }
.kit .round small { position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%); white-space: nowrap; padding: 1px 7px; border-radius: 9px;
  background: #fff6df; border: 2px solid #9a6a33; color: #5a3815; font-size: 10.5px; line-height: 13px; margin: 0; }
.kit .round.zoom { width: 48px; height: 48px; margin-bottom: 0; }
.kit .round.zoom .art { font-size: 30px; font-weight: 800; color: #6b4319; width: auto; height: auto; line-height: 1; }
.kit .bottom { gap: 8px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.kit .bottom::before { content: ''; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: min(100%, 720px); height: 58px; z-index: -1; border-radius: 16px;
  background: linear-gradient(#b9783d, #8a5426); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), 0 3px 6px rgba(0, 0, 0, .3); }
.kit .side .round { margin-bottom: 14px; }
.list .item > .art.hicon { width: 40px; height: 40px; flex: none; font-size: 26px; display: inline-grid; place-items: center; }
@media (max-width: 560px) {
  .kit .bottom { gap: 3px; }
  .kit .bottom .round { width: calc((100vw - 8px - 7 * 3px) / 8); max-width: 56px; height: auto; aspect-ratio: 1; border-width: 6px; border-image-width: 6px; }
  .kit .bottom .round .art { width: 30px; height: 30px; font-size: 20px; }
  .kit .bottom .round small { font-size: 8.5px; padding: 0 3px; bottom: -17px; line-height: 11px; }
  .kit .bottom::before { height: 46px; border-radius: 12px; }
}
/* quests: a points track with chests, quest cards with pictures; login week; the season road */
.qhead { margin-bottom: 8px; }
.qhead > p { margin: 0 0 4px; }
.qtrack { position: relative; margin: 6px 26px 30px 6px; }
.qtrack .bar { height: 14px; }
.qchest { position: absolute; top: 50%; transform: translate(-50%, -55%); width: 52px; height: 52px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
.qchest .art { width: 46px; height: 46px; font-size: 32px; }
.qchest small { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 11px; padding: 0 6px; border-radius: 8px; background: #fff6df; border: 2px solid #9a6a33; color: #5a3815; }
.qchest.locked .art { filter: grayscale(.7) brightness(.9); opacity: .8; }
.qchest.ready { animation: qglow 1.2s ease-in-out infinite; }
.qchest.ready small { background: #6cc24a; border-color: #3c7d22; color: #fff; }
.qchest.done .art { opacity: .55; }
.qchest.done small { background: #e8f6dc; border-color: #6cc24a; color: #3c7d22; }
@keyframes qglow { 0%, 100% { filter: drop-shadow(0 0 2px #ffd34d); transform: translate(-50%, -55%) scale(1); } 50% { filter: drop-shadow(0 0 10px #ffd34d); transform: translate(-50%, -58%) scale(1.08); } }
.qlist { display: grid; gap: 8px; }
.qcard { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fffaf0; border: 2px solid #e2c592; box-shadow: 0 2px 0 rgba(120, 80, 30, .15); }
.qcard .grow { min-width: 0; }
.qcard .grow b { display: block; }
.qcard .bar { height: 9px; margin: 4px 0 2px; }
.qcard.ok { background: #f0fae6; border-color: #9dd57a; }
.qcard .art.qicon { width: 44px; height: 44px; flex: none; font-size: 28px; display: inline-grid; place-items: center; }
.qpts { flex: none; min-width: 44px; text-align: center; font-weight: 800; color: #8a5a1f; background: #ffe7a8; border: 2px solid #d9a441; border-radius: 12px; padding: 2px 6px; }
.qcard.ok .qpts { background: #6cc24a; border-color: #3c7d22; color: #fff; }
.rmini { display: inline-flex; flex-wrap: wrap; gap: 2px 6px; justify-content: center; align-items: center; }
.rmini .rc, .rmini .ri { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; }
.rmini .art { width: 24px; height: 24px; font-size: 18px; display: inline-grid; place-items: center; }
.lweek { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.lday { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 8px; border-radius: 12px; background: #fffaf0; border: 2px solid #e2c592; min-height: 96px; }
.lday > small { font-weight: 800; color: #8a5a1f; }
.lday.today { border-color: #6cc24a; background: #f0fae6; box-shadow: 0 0 0 3px rgba(108, 194, 74, .35); }
.lday.next { opacity: .7; }
.lday.big { background: linear-gradient(#fff3c4, #ffe08a); border-color: #d9a441; }
.lday .btn { margin-top: auto; }
.tick { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #6cc24a; color: #fff; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; font-size: 13px; }
.proad { position: relative; display: flex; gap: 0; overflow-x: auto; padding: 6px 4px 10px; scroll-snap-type: x proximity; }
.plabels { position: sticky; left: 0; z-index: 2; flex: none; display: grid; grid-template-rows: 1fr 30px 1fr; width: 46px; margin-right: 4px; font-size: 10.5px; font-weight: 800; color: #8a5a1f; text-align: center; align-items: center;
  background: linear-gradient(90deg, #fbf1dc 85%, rgba(251, 241, 220, 0)); }
.pstep { position: relative; flex: none; width: 82px; display: grid; grid-template-rows: 1fr 30px 1fr; gap: 0; scroll-snap-align: start; }
.pstep::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 8px; transform: translateY(-50%); background: #d8c3a0; }
.pstep.on::before { background: #6cc24a; }
.pnum { position: relative; z-index: 1; justify-self: center; align-self: center; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: #fff6df; border: 2px solid #9a6a33; color: #5a3815; }
.pstep.on .pnum { background: #6cc24a; border-color: #3c7d22; color: #fff; }
.pcard { position: relative; margin: 3px; min-height: 70px; border-radius: 12px; border: 2px solid #e2c592; background: #fffaf0; display: grid; place-items: center; padding: 4px; cursor: pointer; }
.pcard.gold { background: linear-gradient(#fff3c4, #ffd76a); border-color: #c99528; }
.pcard.ready { border-color: #6cc24a; box-shadow: 0 0 0 3px rgba(108, 194, 74, .4); animation: qpulse 1.4s ease-in-out infinite; }
.pcard.locked, .pcard.shut { filter: grayscale(.35); opacity: .75; cursor: default; }
.pcard.done { opacity: .6; cursor: default; }
.pcard .lock { position: absolute; top: -8px; right: -6px; }
.pcard .lock .art { width: 20px; height: 24px; font-size: 16px; }
@keyframes qpulse { 50% { transform: scale(1.04); } }
@media (max-width: 560px) {
  .lweek { grid-template-columns: repeat(4, 1fr); }
  .pstep { width: 70px; }
}
.qcard .grow { flex: 1; }
.qrewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin-top: 4px; }
.qreward { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: #fffaf0; border: 2px dashed #e2c592; }
.qreward > small { font-weight: 800; color: #8a5a1f; }
.qreward.ready { border: 2px solid #6cc24a; background: #f0fae6; }
.qreward.done { opacity: .55; }
.plegend { display: flex; gap: 12px; font-size: 11px; font-weight: 800; color: #8a5a1f; margin: 0 0 2px; }
.plegend .gold { color: #a87414; }

/* ---- the Kagat shop window (Mağaza → Özel) and the daily offer ---- */
.tabs button.gold { background: linear-gradient(#fff3b0, #ffd34d 55%, #f0b22a); border-color: #b5800c; color: #6b3f00; }
.tabs button.gold.on { background: linear-gradient(#ffe07a, #f5a623 60%, #e08a12); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); border-color: #9c5d06; }
.afis { position: relative; display: flex; align-items: flex-end; gap: 10px; min-height: 120px; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; overflow: hidden;
  border: 3px solid #b5800c; background: radial-gradient(circle at 80% 20%, #fff6c8 0, transparent 55%), linear-gradient(135deg, #7b4bd6, #c04fd0 55%, #ff9a5c); color: #fff; }
.afis.pic { min-height: 170px; background: var(--art) center / cover no-repeat; }
.afis-text { display: grid; gap: 4px; text-shadow: 0 2px 3px rgba(0, 0, 0, .45); }
.afis.pic .afis-text { background: rgba(60, 30, 10, .45); padding: 8px 12px; border-radius: 12px; }
.afis-text > b { font-size: 22px; } .afis-text small { font-size: 14px; }
.afis-text .cap { color: var(--ink); text-shadow: none; }
.afis-findik { width: 96px; height: 110px; flex: none; font-size: 64px; display: grid; place-items: end center; }
.wares { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ware { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 10px; border-radius: 16px; text-align: center;
  background: linear-gradient(#fffdf5, #fff1cf); border: 3px solid #e2b04a; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.ware.big { grid-column: 1 / -1; flex-direction: row; text-align: left; gap: 12px; padding: 20px 14px 14px; border-color: #f0a020;
  background: radial-gradient(circle at 12% 50%, #fff7c2 0, transparent 45%), linear-gradient(#fff8e0, #ffe2a0); animation: wareGlow 2.4s ease-in-out infinite; }
.ware.done { opacity: .7; filter: saturate(.6); }
.ware .wart { width: 84px; height: 84px; font-size: 54px; display: grid; place-items: center; flex: none; }
.ware.big .wart { width: 120px; height: 120px; font-size: 76px; }
.wtext { display: grid; gap: 3px; flex: 1; } .wtext b { font-size: 15px; } .wtext small { color: var(--muted); font-size: 12px; }
.ware.big .wtext b { font-size: 19px; }
.ribbon { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 0 0 10px 10px; white-space: nowrap;
  background: linear-gradient(#ff7a5c, #e5533d); color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.ware.big .ribbon { left: 14px; transform: none; }
.gets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.gets > span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; border-radius: 12px; background: #fff; border: 2px solid var(--wood3); font-size: 13px; }
.gets .art { width: 24px; height: 24px; font-size: 18px; }
.btn.buy { background: linear-gradient(#fff3a0 0%, #ffd34d 45%, #f0a91a 100%); border-color: #a5650a; color: #5a3200; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.ware .btn.buy { min-width: 96px; }
@keyframes wareGlow { 50% { box-shadow: 0 0 0 4px rgba(255, 211, 77, .55), 0 3px 0 rgba(0, 0, 0, .12); } }
.offer { display: flex; gap: 12px; align-items: flex-end; }
.offer > div { position: relative; flex: 1; }
.offer .ribbon { position: static; display: inline-block; transform: none; border-radius: 10px; margin-bottom: 4px; }
.offer .wart { width: 110px; height: 110px; font-size: 70px; display: grid; place-items: center; }
.offer-findik { width: 150px; height: 180px; flex: none; font-size: 90px; display: grid; place-items: end center; }
@media (max-width: 560px) {
  .ware.big { flex-direction: column; text-align: center; } .ware.big .ribbon { left: 50%; transform: translateX(-50%); }
  .offer { flex-direction: column; align-items: center; text-align: center; } .offer-findik { width: 110px; height: 130px; }
  .afis-findik { width: 70px; height: 84px; font-size: 48px; }
}
#bottom [data-open="shop"] .dot { animation: shopPing 1.6s ease-in-out infinite; }
@keyframes shopPing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .ware.big, #bottom [data-open="shop"] .dot { animation: none; } }
.shelf { margin: 14px 2px 6px; font-size: 16px; color: var(--wood2); display: flex; align-items: center; gap: 8px; }
.shelf::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--wood3), transparent); }

/* ---- Bereket Yolu (Görevler → Bereket Yolu): banner, star counter, gold offer, the stepping-stone road ---- */
.yafis { position: relative; display: flex; align-items: flex-end; min-height: 120px; padding: 12px 14px; margin-bottom: 8px; border-radius: 16px; overflow: hidden;
  border: 3px solid #b5800c; background: radial-gradient(circle at 85% 20%, #fff6c8 0, transparent 50%), linear-gradient(135deg, #4fae4a, #8fd35a 55%, #f5c84a); color: #fff; }
.yafis.pic { min-height: 190px; align-items: flex-start; background: var(--art) center 65% / cover no-repeat; }
.yafis-text { display: grid; gap: 4px; text-shadow: 0 2px 3px rgba(0, 0, 0, .45); }
.yafis.pic .yafis-text { background: rgba(60, 30, 10, .45); padding: 8px 12px; border-radius: 12px; max-width: 46%; }
.yafis.pic .ystars { flex-wrap: wrap; } .yafis.pic .ystars .ycount { flex-basis: 100%; margin: 2px 0 0; }
.yafis-text > b { font-size: 22px; } .yafis-text small { font-size: 13px; }
.ystars { display: flex; align-items: center; gap: 2px; } .ystars .ycount { margin-left: 8px; font-weight: 800; font-size: 14px; }
.ystar { width: 26px; height: 26px; font-size: 20px; display: inline-grid; place-items: center; vertical-align: middle; }
.ystar.off { filter: grayscale(1) brightness(1.4); opacity: .55; }
.yhow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 13px; }
.yhow > span:not(.muted) { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px 2px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--wood3); }
.yhow .ystar { width: 20px; height: 20px; font-size: 15px; }
.ygold { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 8px; border-radius: 14px; border: 3px solid #c99528;
  background: linear-gradient(90deg, #fff3c4, #ffd76a); animation: wareGlow 2.4s ease-in-out infinite; }
.ygold .grow { display: grid; } .ygold small { color: #7a5410; font-size: 12px; }
.ytac { width: 56px; height: 56px; font-size: 40px; display: grid; place-items: center; flex: none; }
.yroad { display: flex; overflow-x: auto; padding: 8px 6px 12px; border-radius: 14px; scroll-behavior: smooth;
  background: linear-gradient(#cfe9a8, #a8d878); border: 2px solid #8fbf5a; }
.ystep { position: relative; flex: none; width: 92px; display: grid; grid-template-rows: auto 54px auto; }
/* the road: a cobbled band behind the stones, golden where it has been walked */
.ystep::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 16px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #e8d7b4 0 12px, #d9c39a 12px 14px); border-top: 2px solid #b89a6a; border-bottom: 2px solid #b89a6a; }
.ystep.on::before { background: repeating-linear-gradient(90deg, #ffe08a 0 12px, #f5c64a 12px 14px); border-color: #c99528; }
.ystone { position: relative; z-index: 1; justify-self: center; align-self: center; width: 50px; height: 50px; display: grid; place-items: center; }
.ystone .ytas { position: absolute; inset: 0; width: 50px; height: 50px; }
.ystone .ytas:not(.pic) { border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f2efe6, #c9c3b4); border: 3px solid #9c9686; }
.ystone b { position: relative; font-weight: 800; font-size: 16px; color: #5a4a2a; }
.ystep.on .ystone b { color: #2c6f17; } .ystep.next .ystone { animation: qpulse 1.4s ease-in-out infinite; border-radius: 50%; }
.ycard { position: relative; margin: 3px; min-height: 92px; border-radius: 14px; border: 2px solid #e2c592; background: #fffaf0; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 4px; cursor: pointer; }
.ycard.gold { background: linear-gradient(#fff3c4, #ffd76a); border-color: #c99528; }
.ycard .ychest { width: 44px; height: 44px; font-size: 30px; display: grid; place-items: center; }
.ycard.ready { border-color: #6cc24a; box-shadow: 0 0 0 3px rgba(108, 194, 74, .45); animation: qpulse 1.4s ease-in-out infinite; }
.ycard.locked, .ycard.shut { filter: grayscale(.35); opacity: .75; cursor: default; }
.ycard.done { opacity: .55; cursor: default; }
.ycard .lock { position: absolute; top: -8px; right: -6px; } .ycard .lock .art { width: 20px; height: 24px; font-size: 16px; }
.ycard .tick { position: absolute; top: 2px; right: 6px; color: var(--green2); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .ygold, .ystep.next .ystone, .ycard.ready { animation: none; } }

/* ---- text size (Ayarlar → Yazı boyutu): --tz on <html>; the HUD and the farm stay as they are ---- */
.panel-in > :not(h2):not(.x), .chat-list, .chat-f, .dm-h, .toast, .notice, .tut-bubble p { zoom: var(--tz, 1); }
.panel-in > h2 { font-size: calc(20px * var(--tz, 1)); }
