/* CatRaid, one stylesheet (29/11/2026 sıfırdan yeniden tasarım; user: "ikizi olduk şimdi özgünleştirme zamanı.. yama değil
   sıfırdan tasarım"; "kartlarının rengine şekline arkaplanına.. hiç birşeyine karışmıyorum"). The old cr.css is in
   06-BACKUP\cr-redesign-20261129. Screen map: 05-SCREEN\Tasarım\src\catraid\EKRAN-HARITASI.md.
   Look: the guild window of an anime RPG menu. Night indigo ground; a card is a lacquered window (deep blue glass, a fine gold
   double line, gold diamonds on the corners); a card inside a card is plain dark glass; buttons have cut corners (ruby =
   act, gold = reward, ghost = second). NugDig is rough stone + teal; CatRaid is smooth lacquer + ruby and gold.
   Layer 1 (this file): tokens, the shell and the roles, each role once, its difference a modifier. Layer 2: a page's own
   values in its style attribute, read by the role (style="--cols:3"). No page-named selector here.
   Sizes 6 / 10 / 16 / 26 / 42; type 12/14/15/16/18/20 (hero 28+); one family, Exo 2. */

:root {
    --font: "Exo 2", system-ui, sans-serif;
    /* ground */
    --bg: #171b21;
    --bg-2: #232930;
    /* window: the card */
    --win: linear-gradient(180deg, rgba(62, 70, 82, .97) 0%, rgba(44, 50, 59, .97) 40%, rgba(31, 35, 42, .98) 100%);
    --win-line: rgba(226, 190, 118, .46);
    --win-in: rgba(226, 190, 118, .13);
    /* glass: a card inside a card, tiles, rows */
    --inner: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)), rgba(14, 17, 21, .45);
    --inner-line: rgba(255, 255, 255, .09);
    --panel-2: rgba(255, 255, 255, .07);
    --frame: inset 0 0 0 1px var(--inner-line);
    --well: #111418;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .18);
    /* text: ivory, never pure white */
    --text: #eef0f2;
    --muted: #aeb6c0;
    --faint: #939ca7;
    /* gold (reward, titles, the frame) */
    --gold-1: #ffe2a0;
    --gold-2: #e6b660;
    --gold-3: #b07d2c;
    --gold-lip: #7c5418;
    --gold-txt: #f0c977;
    /* ruby (the action; the CAT gem) */
    --ruby-1: #ff6f85;
    --ruby-2: #e0304f;
    --ruby-3: #9e1434;
    /* state */
    --red-1: #ef5a5a;
    --red-2: #a52a35;
    --green-1: #6fd69a;
    --green-2: #2f8f5c;
    --blue-1: #8ec5ff;
    --ink: #1a1308;
    --s1: 6px;
    --s2: 10px;
    --s3: 16px;
    --s4: 26px;
    --s5: 42px;
    --r1: 10px;
    --r2: 14px;
    --cut: 9px;
    --side: 236px;
    --top: 60px;
    --wrap: 1280px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #4a525e transparent; background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(80% 50% at 50% -10%, rgba(255, 160, 90, .16), transparent 70%),
        radial-gradient(50% 40% at 100% 100%, rgba(224, 48, 79, .07), transparent 70%),
        radial-gradient(40% 35% at 0% 60%, rgba(230, 182, 96, .06), transparent 70%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    background-attachment: fixed;
    color: var(--text);
    font: 400 15px/1.5 var(--font);
}
a { color: var(--gold-txt); text-decoration: none; }
a:hover { color: var(--gold-1); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.grow { flex: 1; min-width: 0; }
.notranslate { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); max-width: var(--wrap); margin: 0 auto; min-height: 100vh; }
@media (min-width: 761px) {
    body::before { content: ""; position: fixed; inset: 0 auto 0 50%; width: min(var(--wrap), 100vw); transform: translateX(-50%); z-index: -1; background: linear-gradient(180deg, rgba(30, 35, 42, .55), rgba(20, 23, 28, .7)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 0 80px rgba(0, 0, 0, .55); }
}

/* side column: logo, Battle, the groups */
.sidenav { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s3) var(--s4); background: linear-gradient(180deg, rgba(40, 46, 54, .94), rgba(26, 30, 36, .97)); border-right: 1px solid var(--line); scrollbar-width: thin; }
/* 01/12/2026 user ("attack butonun hala sorunlu"): on a short screen the column overflowed and flex shrank its children; the
   46px Battle button was squeezed to 20px and its cut corners turned it into a ribbon. The menu scrolls, its parts keep their size */
.sidenav > * { flex-shrink: 0; }
.sidenav-head { display: flex; align-items: center; gap: var(--s2); min-height: 40px; }
.logo { display: flex; align-items: center; gap: var(--s1); color: var(--text); font-weight: 700; font-size: 20px; }
.logo img.wm { height: 34px; width: auto; }
.logo img.mk { display: none; height: 34px; width: auto; }
.side-x { display: none; margin-left: auto; }
/* 01/12/2026 user ("footerda xx player yazıyor.. onu ordan al eski yerine koy.. sayaç son 12 saatin kaydını tutsun"): the live badge counts the browsers of the last 12 hours, players and guests (inc/head_user.php) */
.online { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; font-size: 12px; color: var(--faint); }
.online b { display: flex; align-items: center; gap: 4px; color: var(--green-1); font-size: 14px; }
.online i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-1); box-shadow: 0 0 6px var(--green-1); }
.online + .side-x { margin-left: 0; }
.sidenav nav { display: flex; flex-direction: column; gap: var(--s3); }
.grp { display: flex; flex-direction: column; gap: 2px; }
.grp.phone { display: none; }
.gt { display: flex; align-items: center; gap: var(--s1); margin: 0 0 4px; padding: 0 var(--s2); font-size: 12px; font-weight: 600; color: var(--faint); }
.gt::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.grp a, .grp .soon { position: relative; display: flex; align-items: center; gap: var(--s2); height: 38px; padding: 0 var(--s2); border-radius: var(--r1); color: var(--muted); font-size: 15px; font-weight: 500; }
.grp a i, .grp .soon i { width: 20px; text-align: center; font-size: 15px; color: var(--faint); }
.grp a img, .grp a .ic-img { width: 28px; height: 28px; margin: -2px 0; object-fit: contain; }
.grp a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.grp a:hover i { color: var(--gold-txt); }
.grp a.on { color: var(--gold-1); background: linear-gradient(90deg, rgba(230, 182, 96, .16), rgba(230, 182, 96, .03)); }
.grp a.on::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); }
.grp a.on i { color: var(--gold-2); }
.grp a > b { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--ruby-2); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.grp .soon { opacity: .6; }
.grp .soon em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--faint); }
.side-dim { display: none; }

/* main column: top bar over the page */
.main { min-width: 0; display: flex; flex-direction: column; gap: var(--s3); padding: calc(var(--top) + var(--s3)) var(--s4) var(--s4); }

/* top bar: sits over the main column */
.top { position: fixed; z-index: 40; top: 0; left: max(0px, calc(50vw - var(--wrap) / 2)); right: max(0px, calc(50vw - var(--wrap) / 2)); height: var(--top); margin-left: var(--side); display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s4); background: linear-gradient(180deg, rgb(36, 41, 49), rgb(28, 32, 38)); border-bottom: 1px solid var(--line); } /* 01/12/2026 speed: the fixed bar re-blurred the page under it on every scrolled frame (backdrop-filter); at 92-95% cover the blur did not show, the bar is solid */
.top::after { content: ""; position: absolute; left: var(--s4); right: var(--s4); bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--win-line), transparent); }
.top .logo, .menu-btn { display: none; }
.bal { display: inline-flex; align-items: center; gap: var(--s1); height: 36px; padding: 0 4px 0 var(--s2); border: 1px solid var(--line-2); border-radius: var(--r1); background: rgba(16, 19, 23, .6); color: var(--text); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
button.bal { cursor: pointer; padding-right: var(--s2); }
button.bal:hover { border-color: var(--win-line); }
.bal .plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(180deg, var(--ruby-1), var(--ruby-2) 60%, var(--ruby-3)); color: #fff; font-size: 12px; }
.bal .plus:first-child { margin-left: -6px; }
.bal .plus.minus { background: linear-gradient(180deg, #6b7482, #444b56); }
.bal .plus:hover { filter: brightness(1.12); color: #fff; }
.ico { display: inline-block; width: 22px; height: 22px; flex: none; background: center / contain no-repeat; vertical-align: middle; }
.ico.coin { background-image: url(/img/cat/cat-coin.webp); } /* 29/11/2026 paket 27 CAT resmi (gem.webp yerine) */
.ico.xp { background-image: url(/img/cat/ui-xp.webp); } /* 01/12/2026 XP vial picture (cr_xp_icon) */
.ico.lv { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-1), var(--gold-2) 60%, var(--gold-3)); color: var(--ink); font-size: 11px; }
.ico.lv:has(> img) { width: 26px; height: 26px; background: none; }
.ico.lv > img { width: 100%; height: 100%; object-fit: contain; }
.ic-row { display: flex; align-items: center; gap: 2px; padding-left: var(--s2); margin-left: var(--s1); border-left: 1px solid var(--line); }
.ic { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r1); color: var(--faint); font-size: 16px; }
.ic img, .ic .ic-img { width: 28px; height: 28px; object-fit: contain; }
.ic:hover { color: var(--gold-txt); background: rgba(255, 255, 255, .05); }
.ic.on { color: var(--gold-1); background: rgba(230, 182, 96, .12); }
.ic > b { position: absolute; top: 2px; right: 2px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--ruby-2); color: #fff; font-size: 11px; line-height: 16px; }
.lang { position: relative; }
.lang summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r1); color: var(--muted); font-size: 12px; font-weight: 700; list-style: none; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--gold-txt); background: rgba(255, 255, 255, .05); }
.lang nav { position: absolute; right: 0; top: 42px; z-index: 50; display: grid; min-width: 150px; padding: var(--s1); border: 1px solid var(--win-line); border-radius: var(--r1); background: #262c34; box-shadow: var(--shadow); }
.lang nav a { padding: var(--s1) var(--s2); border-radius: 7px; color: var(--muted); font-size: 14px; }
.lang nav a:hover, .lang nav a[aria-current] { color: var(--gold-1); background: rgba(255, 255, 255, .05); }
.me { display: block; margin-left: var(--s1); }
.ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #4a525e, #1c2026); box-shadow: 0 0 0 2px #6b7482; color: var(--gold-txt); font-weight: 700; }
.ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.ava.r1 { box-shadow: 0 0 0 2px #b77a43; }
.ava.r2 { box-shadow: 0 0 0 2px #c9d3e6; }
.ava.r3 { box-shadow: 0 0 0 2px var(--gold-2), 0 0 10px rgba(230, 182, 96, .5); }
.ava.r4 { box-shadow: 0 0 0 2px var(--ruby-1), 0 0 14px rgba(255, 111, 133, .6); }
.me.on .ava, .me:hover .ava { filter: brightness(1.1); }
.ava.xl { width: 76px; height: 76px; box-shadow: 0 0 0 3px #6b7482, 0 6px 14px rgba(0, 0, 0, .45); }
.ava.xl.r1 { box-shadow: 0 0 0 3px #b77a43; } .ava.xl.r2 { box-shadow: 0 0 0 3px #c9d3e6; } .ava.xl.r3 { box-shadow: 0 0 0 3px var(--gold-2), 0 0 14px rgba(230, 182, 96, .5); } .ava.xl.r4 { box-shadow: 0 0 0 3px var(--ruby-1), 0 0 16px rgba(255, 111, 133, .6); }
.top .tools { display: flex; gap: var(--s1); }
.top .tut-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* the public shell (inc/head.php): no side column, the bar spans the frame with the brand, the pages and Log in / Sign up */
.pg-public .shell { display: block; }
.pg-public .top { margin-left: 0; }
.pg-public .top .logo { display: flex; }
.pg-public .main { max-width: 1100px; margin: 0 auto; }
.pub-nav { display: flex; gap: 2px; }
.pub-nav a { padding: 0 var(--s2); height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.pub-nav a:hover { color: var(--gold-1); background: rgba(255, 255, 255, .05); }
@media (max-width: 760px) { .pub-nav { display: none; } .pg-public .top .tools .hide-sm { display: none; } }
/* page head: one slim line, the page's picture small at the right (cr_banner) */
.ph { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding: var(--s2) var(--s3); border-radius: var(--r2); background: linear-gradient(90deg, rgba(230, 182, 96, .12), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .015)); border: 1px solid var(--line); overflow: hidden; }
.ph::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gold-1), var(--gold-3)); }
.ph > i, .ph > .ic-img { flex: none; display: grid; place-items: center; width: 42px; height: 42px; font-size: 18px; color: var(--gold-1); }
.ph > i { border: 1px solid var(--win-line); border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(230, 182, 96, .25), rgba(16, 19, 23, .6)); }
.ph > div { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.ph h1 { font-size: 20px; font-weight: 700; color: var(--text); white-space: nowrap; }
.ph p { font-size: 14px; color: var(--muted); }
.ph > img:not(.ic-img) { flex: none; height: 62px; width: auto; margin: -6px 0 -6px auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }

/* the three project totals and the footer */
.totals { display: flex; justify-content: center; gap: var(--s4); margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); }
.totals span { display: flex; align-items: baseline; gap: var(--s1); }
.totals b { font-size: 16px; color: var(--text); }
.totals small { font-size: 12px; color: var(--faint); }
.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: 14px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold-txt); }

/* ---------- card: the window ---------- */
.card {
    position: relative;
    padding: var(--s3) var(--s3) var(--s3);
    border-radius: var(--r2);
    background: var(--win);
    border: 1px solid var(--win-line);
    box-shadow: inset 0 0 0 3px rgba(20, 23, 28, .8), inset 0 0 0 4px var(--win-in), var(--shadow);
}
/* the top sheen (29/11 user: the corner diamonds came off) */
.card::after { content: ""; position: absolute; inset: 4px 4px auto; height: 40%; border-radius: 11px 11px 0 0; pointer-events: none; background: radial-gradient(90% 100% at 20% 0%, rgba(255, 190, 120, .08), transparent 70%); }
.card.flush { padding: 0; overflow: hidden; }
/* a card inside a card is glass, not a second window */
.card .card, .cell { position: relative; padding: var(--s3); border-radius: var(--r1); background: var(--inner); border: 1px solid var(--inner-line); box-shadow: none; }
.card .card::after { content: none; }
.card.lit, .cell.lit { border-color: var(--gold-2); box-shadow: 0 0 0 1px rgba(230, 182, 96, .35), 0 0 18px rgba(230, 182, 96, .12); }
.card > * { position: relative; }

/* card title: gold diamond, ivory words, a gold line fading out; a link, tabs or a figure may sit at its right end */
.card > h2, .card > header > h2, .hd {
    display: flex;
    align-items: center;
    gap: var(--s2);
    margin: 0 0 var(--s3);
    padding-bottom: var(--s2);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(90deg, var(--win-line), rgba(226, 190, 118, .12) 60%, transparent) bottom left / 100% 1px no-repeat;
}
.card > h2 > i:first-child, .hd > i:first-child { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: rgba(230, 182, 96, .12); color: var(--gold-txt); font-size: 14px; }
.card > h2 > .ic-img:first-child, .hd > .ic-img:first-child { width: 30px; height: 30px; }
.card > h2 > .r, .hd > .r { margin-left: auto; display: flex; align-items: center; gap: var(--s1); font-size: 14px; font-weight: 400; color: var(--muted); white-space: nowrap; flex: none; } /* 01/12/2026 a side note never breaks into two lines next to scrolling tabs */
.card .card > h2, .cell > h2 { font-size: 15px; margin-bottom: var(--s2); padding-bottom: 0; background: none; }
.card .card > h2 > i:first-child { width: auto; height: auto; background: none; }
.card > p + p { margin-top: var(--s2); }

/* ---------- button: cut corners ---------- */
.btn {
    --c1: var(--ruby-1); --c2: var(--ruby-2); --c3: var(--ruby-3);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s1);
    height: 38px;
    padding: 0 var(--s3);
    border: 0;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
    background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 48%) top / 100% 100% no-repeat, linear-gradient(180deg, var(--c1), var(--c2) 55%, var(--c3));
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
    color: #fff;
    font: 600 15px/1 var(--font);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); color: #fff; }
.btn:active { transform: translateY(1px); }
/* 01/12/2026 user ("textlerin neredeyse hiç biri okunmuyor"): a closed button was the ruby dimmed twice (grayscale + 70% light, then 55% opacity
   on the army cards), its label sank into the card; now a flat slate well with a readable muted label */
.btn.btn[disabled], .btn.btn.off { --c1: #3d434c; --c2: #30353d; --c3: #262a31; color: #c3cad3; text-shadow: none; box-shadow: inset 0 0 0 1px var(--line-2); filter: none; cursor: default; }
.btn.gold { --c1: var(--gold-1); --c2: var(--gold-2); --c3: var(--gold-3); color: var(--ink); text-shadow: 0 1px 0 rgba(255, 245, 210, .5); }
.btn.gold:hover { color: var(--ink); }
.btn.ghost { background: linear-gradient(180deg, rgba(230, 182, 96, .16), rgba(230, 182, 96, .06)); box-shadow: none; color: var(--gold-txt); text-shadow: none; }
.btn.ghost:hover { background: linear-gradient(180deg, rgba(230, 182, 96, .26), rgba(230, 182, 96, .1)); color: var(--gold-1); }
.btn.ghost[disabled] { filter: none; }
/* XP has one sign, the vial of the potion family (cr_xp_icon) */
.fa-vial { color: var(--blue-1); }
.btn.blue { --c1: #7d9cff; --c2: #4864d6; --c3: #2a3a8f; }
.btn.red { --c1: var(--ruby-1); --c2: var(--ruby-2); --c3: var(--ruby-3); }
.btn.sm { --cut: 6px; height: 30px; padding: 0 var(--s2); font-size: 14px; }
.btn.lg { --cut: 11px; height: 46px; padding: 0 var(--s4); font-size: 17px; }
.btn.wide { width: 100%; }
.btn img, .btn .ic-img { width: 20px; height: 20px; }
.btn.play .ic-img { width: 26px; height: 26px; margin: -3px 0; filter: drop-shadow(0 1px 2px rgba(60, 0, 15, .6)); }
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }

/* ---------- pill, tag, bar ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 var(--s2); border-radius: 13px; background: rgba(16, 19, 23, .55); border: 1px solid var(--line); color: var(--muted); font-size: 14px; white-space: nowrap; }
.pill.gold { color: var(--gold-txt); border-color: rgba(230, 182, 96, .35); }
.pill.good { color: var(--green-1); border-color: rgba(111, 214, 154, .3); }
.pill .ico { width: 16px; height: 16px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; background: rgba(230, 182, 96, .14); color: var(--gold-txt); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.good { background: rgba(111, 214, 154, .14); color: var(--green-1); }
.tag.bad { background: rgba(239, 90, 90, .14); color: #ff9a9a; }
.tag.dim { background: rgba(255, 255, 255, .06); color: var(--muted); }
.bar { position: relative; height: 10px; border-radius: 5px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 5px; background: linear-gradient(180deg, #9ff0c0, var(--green-1) 50%, var(--green-2)); transition: width .6s; }
.bar.red > i { background: linear-gradient(180deg, #ff9b8f, var(--red-1) 50%, var(--red-2)); }
.bar.gold > i { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); }
/* 01/12/2026 the ad ladder's wait stops while the player is back on this page (assets/js/ad-ladder.js) */
.bar.is-paused > i { background: linear-gradient(180deg, #ff9b8f, var(--red-1) 50%, var(--red-2)); }
/* 01/12/2026 an ad step of a ladder (Bonus): one banner, centred; one wider than its card is drawn smaller by ad-ladder.js */
.adstep { overflow: hidden; min-width: 0; }
.adstep iframe { display: block; margin: 0 auto; border: 0; border-radius: var(--r1); }
/* 01/12/2026 a banner wall (Bonus): several ad sizes open on the page at once, a click on any of them counts */
.adstep.multi { display: grid; gap: var(--s2); }
/* 01/12/2026 user ("yan yana 3 tane 468/728/300 yaparsan oturur", "responsive"): three equal tiles side by side, each banner drawn
   to its tile's width by ad-ladder.js; one tile under the other on a phone */
.adstep.multi .adcell { display: grid; place-items: center; min-width: 0; overflow: hidden; padding: 8px; border: 1px solid var(--line); border-radius: var(--r1); background: rgba(0, 0, 0, .2); }
.adstep.multi .adcell iframe { margin: 0; }
@media (min-width: 761px) { .adstep.multi { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
@media (max-width: 760px) { .adstep.multi.sz300 { grid-template-columns: 1fr 1fr; } .adstep.multi.sz300 .adcell:nth-child(3) { display: none; } }
/* 01/12/2026 user ("Click a banner to get your bonus texti çok pasif kalıyor"): the wall's call to action reads as the card's main line */
/* 01/12/2026 user ("bunu kendi kutusuna al.. 4 tarafını kenarlık içine al"): an ad gate stands in its own inner box */
.gatebox { padding: var(--s3); border-radius: var(--r1); background: var(--inner); border: 1px solid var(--inner-line); }
.gate-cta { margin: 0; font-size: clamp(16px, 1vw + 12px, 18px); font-weight: 700; color: var(--gold-txt); }
.gate-cta::before { content: "\f25a"; font-weight: 900; font-family: "Font Awesome 6 Free"; margin-right: 8px; }

/* ---------- layout ---------- */
.cols { display: grid; gap: var(--s3); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); align-items: start; }
.cols > * { min-width: 0; } /* 29/11/2026 a long link line does not widen the column past the screen (Affiliate 398 px at 390) */
.cols.gold { grid-template-columns: 1.618fr 1fr; }
.cols.gold-r { grid-template-columns: 1fr 1.618fr; }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.line { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.line.end { justify-content: flex-end; }
.line.between { justify-content: space-between; }
.center { text-align: center; }

/* ---------- tiles: a grid of glass cells (stats, ways, items) ---------- */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, auto-fit), minmax(var(--min, 150px), 1fr)); gap: var(--s2); }
.tile { position: relative; display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r1); background: var(--inner); border: 1px solid var(--inner-line); color: var(--text); }
a.tile:hover, button.tile:hover { border-color: var(--win-line); color: var(--text); }
button.tile { font: inherit; text-align: left; cursor: pointer; }
.tile b { display: block; font-size: 18px; line-height: 1.25; }
.tile small { display: block; color: var(--muted); font-size: 14px; }
.tile.col { flex-direction: column; justify-content: center; text-align: center; gap: var(--s1); padding: var(--s3) var(--s2); }
.tile.on { border-color: var(--gold-2); box-shadow: 0 0 0 1px rgba(230, 182, 96, .3) inset; }
.tile.lock { opacity: .6; }
.tile .pic { width: var(--pic, 56px); height: var(--pic, 56px); flex: none; display: grid; place-items: center; }
.tile .pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
/* a booster bottle (cr_booster_icon) fills its picture box */
.pic > .bst { width: 100%; height: 100%; font-size: calc(var(--pic, 44px) * .42); background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .08), rgba(7, 11, 23, .7)); box-shadow: inset 0 0 0 1px var(--line-2); }
.pic > .bst em { bottom: -4px; }

/* a payment way: its logo, its name, one small line */
.tile.pay { min-height: 58px; }
.tile.pay > img, .tile.pay > .ico-box, .tile.pay > svg { width: 34px; height: 34px; flex: none; object-fit: contain; border-radius: 8px; }
.tile.pay > .ico-box { display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--gold-txt); }
.tile.pay > span { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; line-height: 1.25; }
.tile.pay > span small { font-weight: 400; font-size: 12px; }

/* ---------- the payment window (Deposit, Withdraw): the sum to send, address + QR, facts, links ---------- */
.pop-box .h2-ic, .card > h2 > .h2-ic { width: 28px; height: 28px; object-fit: contain; }
.sum { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r1); background: var(--inner); border: 1px solid var(--inner-line); }
.sum > span { display: flex; flex-direction: column; gap: 2px; }
.sum small { color: var(--muted); font-size: 12px; }
.sum b { display: flex; align-items: center; gap: 6px; font-size: 18px; color: var(--gold-1); }
.sum .left { align-items: flex-end; }
.sum .left b { color: var(--text); font-size: 16px; }
.copy { cursor: pointer; }
.copy i { font-size: 14px; color: var(--faint); }
.copy.done, .copy.done i { color: var(--green-1); }
.opt { display: flex; flex-direction: column; gap: var(--s2); }
.opt.addr { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.opt.addr > .hint, .opt.addr > .addr-in.memo { grid-column: 1 / -1; }
.qr { padding: 6px; border-radius: var(--r1); background: #fff; }
.qr img { width: 138px; height: 138px; }
.addr-in { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.addr-in label { font-size: 12px; color: var(--muted); }
.addr-in label em { font-style: normal; color: var(--red-1); }
.addr-in code { display: block; padding: var(--s2); border-radius: 8px; background: var(--well); border: 1px solid var(--line-2); color: var(--text); font: 600 14px/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.addr-in .btn { align-self: flex-start; }
.hint { display: flex; align-items: center; gap: var(--s1); font-size: 14px; color: var(--muted); }
.hint i { color: var(--faint); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); font-size: 14px; }
.links:empty { display: none; }
.lead { font-size: 16px; text-align: center; }
.lead b { color: var(--gold-1); }
.facts { display: flex; flex-direction: column; }
.facts li { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 36px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts li > span { color: var(--muted); }
.facts li > b { display: flex; align-items: center; gap: 4px; color: var(--text); }
.methods.nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s2); }
.methods.nets a { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r1); background: var(--inner); border: 1px solid var(--inner-line); color: var(--text); font-weight: 600; }
.methods.nets a:hover { border-color: var(--win-line); }
.methods.nets img { width: 28px; height: 28px; object-fit: contain; }
.chips .btn.on { background: linear-gradient(180deg, rgba(230, 182, 96, .32), rgba(230, 182, 96, .14)); color: var(--gold-1); }
.msg { font-size: 14px; color: var(--muted); }
.is-hidden { display: none !important; }
.pop-box .side { display: flex; flex-direction: column; gap: var(--s3); text-align: left; }
.in .addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px ui-monospace, Consolas, monospace; color: var(--text); }
.cell > h3 { display: flex; justify-content: space-between; gap: var(--s2); font-size: 15px; font-weight: 600; }
.cell > h3 > span { color: var(--gold-txt); font-variant-numeric: tabular-nums; }
.cell > p { font-size: 14px; color: var(--muted); }
.cell > .btn { align-self: flex-start; }
form > a.links { display: block; text-align: center; }
@media (max-width: 760px) {
    .opt.addr { grid-template-columns: 1fr; justify-items: center; }
    .addr-in { width: 100%; }
}
/* ---------- hero: the front page stage (the art fills it, the words on a dark fade at the left) ---------- */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; border-radius: var(--r2); overflow: hidden; border: 1px solid var(--win-line); box-shadow: var(--shadow); }
.hero { background: linear-gradient(180deg, #2b3139, #1b1f25); }
.hero > .bg { position: absolute; z-index: 0; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 36%; width: 14%; background: linear-gradient(90deg, #262b33, rgba(38, 43, 51, 0)); }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); width: 40%; min-width: 380px; padding: var(--s5) var(--s4) var(--s5) var(--s5); }
.hero-in h1 { font-size: 44px; line-height: 1.05; font-weight: 800; }
.hero-in h1 b { color: var(--gold-1); font-weight: 800; }
.hero-in > p { font-size: 17px; color: #d9dde3; }
.hero-facts { display: flex; gap: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line-2); }
.hero-facts span { display: flex; flex-direction: column; }
.hero-facts b { font-size: 22px; color: var(--text); }
.hero-facts small { font-size: 12px; color: var(--muted); }
/* a sideways strip of equal cells (the heroes) */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.strip > * { scroll-snap-align: start; }
@media (max-width: 760px) {
    .hero { min-height: 0; align-items: flex-end; }
    .hero > .bg { position: relative; width: 100%; height: 220px; }
    .hero { flex-direction: column; }
    .hero::before { left: 0; width: 100%; top: 150px; bottom: auto; height: 70px; background: linear-gradient(180deg, rgba(38, 43, 51, 0), #262b33); }
    .hero-in { padding: var(--s3); margin-top: -60px; }
    .hero-in h1 { font-size: 30px; }
    .hero-in > p { font-size: 15px; }
    .strip { grid-auto-columns: 150px; }
}
/* ---------- key figures ---------- */
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; align-items: center; gap: var(--s2); min-height: 38px; padding: var(--s1) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv > div:last-child { border-bottom: 0; }
.kv > div > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s2); color: var(--muted); }
.kv > div > span > i { width: 18px; text-align: center; color: var(--faint); }
.kv > div > b { display: flex; align-items: center; gap: 4px; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- rows: a list of glass lines ---------- */
.rows { display: flex; flex-direction: column; gap: var(--s1); }
.row { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r1); background: var(--inner); border: 1px solid var(--inner-line); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .grow > b { font-size: 15px; }
.row small { color: var(--muted); font-size: 14px; }
.row.on { border-color: var(--gold-2); }
.row.done { opacity: .62; }
.row > .pic { width: var(--pic, 44px); height: var(--pic, 44px); flex: none; display: grid; place-items: center; }
.row > .pic img { width: 100%; height: 100%; object-fit: contain; }
.row form { margin: 0; }
/* 01/12/2026 a row of written text (News): the date stone at the top left, the words take the rest */
.row.txt { align-items: flex-start; padding: var(--s3); }
.row .post { max-width: none; gap: 0; }
.dbox { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: var(--r1); background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 12px; line-height: 1.2; }
.dbox b { color: var(--gold-txt); font-size: 18px; }
.row.new .dbox { background: rgba(230, 182, 96, .16); box-shadow: inset 0 0 0 1px rgba(230, 182, 96, .4); } /* unread: the stone glows, the row stays glass */

/* a row as a form (Settings): an icon box, the fields, the action */
.ico-box { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--r1); background: rgba(255, 255, 255, .05); color: var(--gold-txt); font-size: 16px; }
.ico-box img { width: 26px; height: 26px; object-fit: contain; }
.row > .in { flex: 1; min-width: 0; height: 38px; }
.row > .btn.sm, .row > form > .btn.sm { height: 36px; }
.row > .in.pw, .row > .in.memo { flex: 0 1 170px; }
.row > label.grow { flex-direction: row; align-items: center; gap: var(--s2); font-size: 15px; }
.row.set { border-color: rgba(111, 214, 154, .3); }
.rows.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.fold { margin-top: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s2); }
.fold summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.fold summary:hover { color: var(--red-1); }
.fold[open] > *:not(summary) { margin-top: var(--s2); }
.fold form { display: flex; flex-direction: column; gap: var(--s2); max-width: 420px; }
.qlogin { display: flex; flex-wrap: wrap; gap: var(--s1); }
.qlogin .btn img { width: 20px; height: 20px; }
.qlogin .is-on { color: var(--green-1); }
@media (max-width: 760px) {
    .rows.two { grid-template-columns: 1fr; }
    .row { flex-wrap: wrap; }
    .row > .in { flex: 1 1 120px; } /* 29/11/2026 the field and its Save stay on one line; a row of two fields wraps */
    .row > .in.pw, .row > .in.memo { flex: 1 1 140px; }
}
/* ---------- table ---------- */
.tb-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--s1)); padding: 0 var(--s1); }
.tb { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.tb th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; padding: var(--s1) var(--s2); border-bottom: 1px solid var(--line-2); cursor: pointer; user-select: none; }
.tb th:hover { color: var(--gold-txt); }
.tb td { padding: var(--s2); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tb tr:last-child td { border-bottom: 0; }
.tb tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.tb .r, .tb td.num, .tb th.num { text-align: right; }
.tb tr.on td, .tb tr.me td { color: var(--gold-txt); font-weight: 600; }
.tb td .ico { width: 16px; height: 16px; margin-right: 3px; vertical-align: -3px; }
.tb td.up { color: var(--green-1); }
.tb td.down { color: var(--red-1); }
.empty { padding: var(--s4) var(--s3); text-align: center; color: var(--faint); font-size: 14px; }

/* ---------- tabs: inside a card, a segmented track ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r1); background: var(--well); border: 1px solid var(--line); }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: var(--s1); height: 32px; padding: 0 var(--s3); border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { background: linear-gradient(180deg, rgba(230, 182, 96, .26), rgba(230, 182, 96, .12)); color: var(--gold-1); box-shadow: inset 0 0 0 1px rgba(230, 182, 96, .35); }
.tabs-row { display: flex; justify-content: center; margin-bottom: var(--s3); overflow-x: auto; }
.card > h2 > .tabs { font-size: 14px; }
/* tabs of a way list (Earn): the partner's mark, a tick when done today, a pulsing dot on the next rung */
.tabs img { width: 20px; height: 20px; border-radius: 5px; }
.tabs .done::after { content: "\f00c"; font: 900 11px "Font Awesome 6 Free"; color: var(--green-1); }
.tabs .next::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ruby-1); box-shadow: 0 0 8px var(--ruby-1); animation: dot-pulse 1.4s ease-in-out infinite; }
@keyframes dot-pulse { 50% { opacity: .35; } }
.earn-hd { flex-wrap: wrap; }

/* ---------- wall: a partner's page inside the Earn card (01/12/2026); Full screen lays it over the screen with its own bar ---------- */
.wall { border-radius: var(--r1); overflow: hidden; background: var(--well); box-shadow: var(--frame); }
.wall-in iframe { display: block; width: 100%; height: 680px; border: 0; background: #fff; }
.wall > #aviso-widget { padding: var(--s2); }
.wall-bar { display: none; }
.wall.is-full { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; border-radius: 0; }
.wall.is-full .wall-in { flex: 1; min-height: 0; }
.wall.is-full .wall-in iframe { height: 100% !important; }
.wall.is-full .wall-bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); background: var(--bg-2); border-top: 1px solid var(--line); }
.wall.is-full .wall-bar b { margin-right: auto; }
html.wall-open { overflow: hidden; }
@media (max-width: 760px) { .earn-hd .r .btn span { display: none; } .wall-in iframe { height: 560px; } }
.card > h2 > form.r .in { height: 34px; }
.tb th a { color: inherit; } .tb th.on a { color: var(--gold-txt); }
.tb tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: 600; color: var(--muted); }

/* ---------- steps: a numbered how-to ---------- */
.steps { display: flex; flex-direction: column; gap: var(--s2); counter-reset: st; text-align: left; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 40px; min-height: 28px; justify-content: center; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(230, 182, 96, .14); border: 1px solid rgba(230, 182, 96, .4); color: var(--gold-1); font-size: 14px; font-weight: 700; }
.steps li b { font-size: 15px; font-weight: 600; }
.steps li span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- chips: a pick among a few (radio or link) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span, a.chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 var(--s3); border-radius: 16px; background: var(--inner); border: 1px solid var(--inner-line); color: var(--muted); font-size: 14px; }
.chip small { color: var(--faint); font-size: 12px; }
.chip input:checked + span, a.chip.on { border-color: var(--gold-2); color: var(--gold-1); background: rgba(230, 182, 96, .12); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-2); }

/* ---------- feed: a short ranked list (name left, amount right) ---------- */
.feed { display: flex; flex-direction: column; }
.feed li { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 40px; padding: var(--s1) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.feed li:last-child { border-bottom: 0; }
.feed li b { display: flex; align-items: center; gap: 4px; color: var(--gold-txt); font-variant-numeric: tabular-nums; }
.feed li .ico { width: 18px; height: 18px; }
/* ---------- post: written text (about, guides, terms, news) ---------- */
.card > h1 { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); padding-bottom: var(--s2); font-size: 20px; font-weight: 700; background: linear-gradient(90deg, var(--win-line), rgba(226, 190, 118, .12) 60%, transparent) bottom left / 100% 1px no-repeat; }
.card > h1 > i:first-child { color: var(--gold-txt); }
.post { max-width: 760px; font-size: 15px; line-height: 1.65; color: #d9dde3; }
.post > * + * { margin-top: var(--s2); }
.post h2, .post h3 { margin-top: var(--s4); font-size: 17px; font-weight: 600; color: var(--gold-1); }
.post h2:first-child, .post h3:first-child { margin-top: 0; }
.post ul, .post ol { padding-left: 22px; }
.post ul { list-style: none; padding-left: 18px; }
.post ul li { position: relative; }
.post ul li::before { content: ""; position: absolute; left: -14px; top: .7em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2); }
.post ol { list-style: decimal; }
.post li + li { margin-top: 4px; }
.post a { text-decoration: underline; text-underline-offset: 3px; }
.post table { width: 100%; border-collapse: collapse; font-size: 14px; }
.post td, .post th { padding: var(--s1) var(--s2); border-bottom: 1px solid var(--line); text-align: left; }
/* ---------- note ---------- */
.note { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r1); background: rgba(142, 197, 255, .07); border: 1px solid rgba(142, 197, 255, .15); color: var(--muted); font-size: 14px; }
.note > i { color: var(--blue-1); }
.note.bad { background: rgba(239, 90, 90, .08); border-color: rgba(239, 90, 90, .25); color: #ffb3b3; }
.note.bad > i { color: var(--red-1); }
.note.good { background: rgba(111, 214, 154, .08); border-color: rgba(111, 214, 154, .25); color: #b9f0cf; }
.note.good > i { color: var(--green-1); }
.note.gold { background: rgba(230, 182, 96, .08); border-color: rgba(230, 182, 96, .25); color: var(--gold-txt); }

/* ---------- form ---------- */
.form { display: flex; flex-direction: column; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: var(--s1); text-align: left; }
.field > label, .field > span { font-size: 14px; color: var(--muted); }
.field > small { font-size: 12px; color: var(--faint); }
.in { display: flex; align-items: center; gap: var(--s2); height: 42px; padding: 0 var(--s3); border-radius: var(--r1); background: var(--well); border: 1px solid var(--line-2); }
.in:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(230, 182, 96, .12); }
.in > i { color: var(--faint); }
.in input, .in select, .in textarea { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
/* 01/12/2026 user ("şifre dolu geldiği zaman tasarım bozuluyor"): the browser paints a saved login light blue; the well's colour covers it */
.in input:-webkit-autofill, .in input:-webkit-autofill:hover, .in input:-webkit-autofill:focus, .in input:-webkit-autofill:active { -webkit-text-fill-color: var(--text); caret-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--well) inset; box-shadow: 0 0 0 1000px var(--well) inset; transition: background-color 99999s ease-out; }
.in select option { background: #262c34; }
.in.area { height: auto; padding: var(--s2) var(--s3); }
.in.area textarea { min-height: 96px; resize: vertical; }
.in .btn { margin-right: -10px; }
.agree { display: flex; align-items: flex-start; gap: var(--s1); font-size: 14px; color: var(--muted); text-align: left; }
.agree input { accent-color: var(--gold-2); margin-top: 3px; }
.agree.need { color: var(--red-1); }
.check { display: flex; align-items: center; gap: var(--s2); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-2); }

/* ---------- pop: a centred window ---------- */
.pop { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: var(--s3); background: rgba(8, 10, 12, .78); backdrop-filter: blur(3px); }
.pop.on { display: grid; animation: pop-in .2s ease-out; }
@keyframes pop-in { from { opacity: 0; } }
.pop-box { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s3); text-align: center; padding: var(--s4) var(--s3) var(--s3); }
.pop-box.wide { width: min(640px, 100%); text-align: left; }
.pop-box > h2 { justify-content: center; }
.pop-box.wide > h2 { justify-content: flex-start; }
.pop-box .art { width: 140px; margin: 0 auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.pop-box .amt { display: flex; align-items: center; justify-content: center; gap: var(--s1); font-size: 22px; font-weight: 700; color: var(--gold-1); }
.pop-box .amt .ico { width: 26px; height: 26px; }
.pop-x { position: absolute; z-index: 2; top: var(--s2); right: var(--s2); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--muted); cursor: pointer; }
.pop-x:hover { color: var(--text); background: rgba(255, 255, 255, .12); }

/* sign up: the game's picture and welcome left, the form right */
.pop-box.split { width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; text-align: left; overflow: hidden; }
.split-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s1); min-height: 420px; padding: var(--s4); background: radial-gradient(80% 60% at 50% 30%, rgba(255, 160, 90, .22), transparent 70%), linear-gradient(180deg, #3a414b, #1c2026); }
.split-art img { position: absolute; left: 50%; top: 4%; height: 70%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.split-art h2 { position: relative; font-size: 26px; line-height: 1.15; }
.split-art h2 b { color: var(--gold-1); }
.split-art p { position: relative; color: var(--muted); font-size: 14px; }
.split-form { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s4) var(--s3); }
.split-form > h2 { margin: 0; }
.split-form form { display: flex; flex-direction: column; gap: var(--s2); }

/* prelude pages and the level windows */
.intro-page { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.intro-page img { height: 180px; width: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.intro-page h2 { justify-content: center; font-size: 20px; }
/* 29/11/2026 paket 29: the badge is the drawn hexagon (gold frame, empty slate face); the number sits on the face */
.lvl-badge { position: relative; display: inline-grid; place-items: center; align-content: center; width: 84px; height: 84px; flex: none; margin: 0 auto; padding-bottom: 4px; background: url(/img/cat/lvl-badge.webp) center / contain no-repeat; color: var(--gold-1); line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.lvl-badge small { font-size: 11px; font-weight: 700; color: #fff; opacity: .85; }
.lvl-badge b { font-size: 26px; font-weight: 800; }
.lvl-got { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.lvl-gift { display: flex; flex-direction: column; align-items: center; gap: var(--s1); width: 96px; padding: var(--s2); border-radius: var(--r1); background: var(--inner); border: 1px solid var(--inner-line); color: var(--text); font-size: 12px; }
.lvl-gift > i { font-size: 22px; color: var(--gold-txt); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 55; right: var(--s3); bottom: var(--s3); max-width: 320px; display: flex; flex-direction: column; gap: 2px; padding: var(--s2) var(--s3); border: 1px solid var(--win-line); border-radius: var(--r1); background: #262c34; box-shadow: var(--shadow); color: var(--text); }
.toast span { color: var(--muted); font-size: 14px; }

/* ---------- hover bubble (usd-tip.js), (i) ---------- */
.qi { margin-left: 2px; color: var(--faint); font-size: 12px; cursor: help; }
.qi:hover { color: var(--gold-txt); }
/* 01/12/2026 user (tooltip text dark on the dark bubble): usd-tip.js paints the bubble with --ink, which is CatRaid's dark button ink; body raises this rule over the script's */
body .usd-float, .tip { position: fixed; z-index: 120; max-width: 280px; padding: var(--s1) var(--s2); border: 1px solid var(--win-line); border-radius: 8px; background: #20252c; box-shadow: var(--shadow); color: var(--text); font-size: 13px; line-height: 1.4; pointer-events: none; }

/* ---------- small icons (cr_ic, the ui-* picture family) ---------- */
.ic-img { width: 1.35em; height: 1.35em; flex: none; object-fit: contain; vertical-align: -0.3em; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }

/* ---------- phone ---------- */
.tabbar { display: none; }
@media (max-width: 1100px) and (min-width: 761px) {
    :root { --side: 210px; }
    .main { padding-left: var(--s3); padding-right: var(--s3); }
    .top { padding: 0 var(--s3); }
    .ic-row .ic:nth-child(n+3) { display: none; }
}
@media (max-width: 760px) {
    :root { --top: 56px; }
    .shell { display: block; }
    .top { left: 0; right: 0; margin-left: 0; gap: var(--s1); padding: 0 var(--s2); }
    .top::after { left: 0; right: 0; }
    .top .logo { display: flex; }
    .top .logo img.wm { display: none; }
    .top .logo img.mk { display: block; height: 32px; }
    .menu-btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line-2); border-radius: var(--r1); background: rgba(16, 19, 23, .6); color: var(--gold-txt); font-size: 16px; }
    .top .ic-row, .top .ic.out, .top .bal.lvl, .top .lang { display: none; }
    .bal { height: 34px; font-size: 15px; }
    .me { margin-left: 0; }
    .ava { width: 34px; height: 34px; }
    .sidenav { position: fixed; z-index: 90; top: 0; left: 0; bottom: 0; height: auto; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s; box-shadow: var(--shadow); }
    .sidenav-head .logo img.wm { display: none; }
    .sidenav-head .logo img.mk { display: block; }
    .side-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--muted); }
    .grp.phone { display: flex; }
    .grp a.on::before { left: -16px; }
    .side-on .sidenav { transform: none; }
    .side-on .side-dim { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(8, 10, 12, .65); }
    .main { padding: calc(var(--top) + var(--s2)) var(--s2) 84px; gap: var(--s2); }
    .card { padding: var(--s3) var(--s2); }
    .card.flush { padding: 0; }
    .ph { min-height: 0; padding: var(--s2) var(--s2) var(--s2) var(--s3); gap: var(--s2); }
    .ph > i, .ph > .ic-img { width: 34px; height: 34px; font-size: 15px; }
    .ph > div { display: block; }
    .ph h1 { font-size: 18px; }
    .ph p { font-size: 12px; }
    .ph > img:not(.ic-img) { height: 56px; margin: -8px 0 -8px auto; }
    .cols, .cols.gold, .cols.gold-r { grid-template-columns: 1fr; }
    .cols.lead-r > :last-child { order: -1; } /* 29/11/2026 the right card opens the page on a phone (Withdraw: what you can withdraw before the 15 coins) */
    .tiles { grid-template-columns: repeat(var(--mcols, 2), minmax(0, 1fr)); }
    .totals { gap: var(--s3); }
    .pop-box.split { grid-template-columns: 1fr; }
    .split-art { min-height: 0; padding: 150px var(--s3) var(--s3); }
    .split-art img { height: 140px; top: var(--s2); }
    .split-form { padding: var(--s3); }
    .tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: var(--s1) var(--s1) calc(var(--s1) + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(40, 46, 54, .97), rgba(24, 27, 32, .99)); border-top: 1px solid var(--win-line); }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: var(--r1); color: var(--muted); font-size: 12px; font-weight: 600; }
    .tabbar a i { font-size: 19px; color: var(--faint); }
    .tabbar a img, .tabbar a .ic-img { width: 26px; height: 26px; object-fit: contain; }
    .tabbar a.on { color: var(--gold-1); background: rgba(230, 182, 96, .12); }
    .tabbar a.on i { color: var(--gold-2); }
    .tabs { max-width: 100%; overflow-x: auto; }
    .tabs a, .tabs button { padding: 0 var(--s2); }
}

/* =====================================================================================================
   BATTLE (kept as it is; user 29/11/2026: "/user/battle burayı koru kart dizilimi game sahnesi"): the scene, the strip, the
   warrior strips, training and the level window pieces, taken over from the old file with the new tokens
   ===================================================================================================== */
/* ---------- scene (battle stage) ---------- */
.scene { position: relative; height: clamp(300px, 50vh, 560px); border-radius: var(--r2); overflow: hidden; background: #1e2228 center / cover no-repeat; }
.scene > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .hud { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: var(--s1); }
.scene .hud.tl { top: var(--s3); left: var(--s3); }
.scene .hud.tc { top: var(--s3); left: 50%; transform: translateX(-50%); width: min(44%, 420px); align-items: center; }
.scene .hud.tr { top: var(--s3); right: var(--s3); }
.scene .hud .tag {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s1) var(--s2);
    border-radius: var(--r1);
    background: rgba(17, 19, 22, .82);
    box-shadow: var(--frame);
    font-size: 14px;
    color: var(--muted);
}
.scene .hud .tag b { display: block; color: var(--text); font-size: 16px; line-height: 1.2; }
.scene .hud.tc .name { font-size: 18px; font-weight: 600; color: var(--text); text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.scene .hud.tc .bar { width: 100%; height: 14px; }
.scene .army { position: absolute; z-index: 2; left: 4%; bottom: 4%; width: 52%; height: 64%; }
.scene .army .w { position: absolute; bottom: var(--y, 0); left: var(--x, 0); height: var(--h, 50%); width: auto; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; z-index: var(--z, 1); transform-origin: 50% 100%; animation: hit 1.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.scene .boss { position: absolute; z-index: 1; right: 9%; bottom: 6%; height: 68%; width: auto; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; } /* 29/11 the anime set is trimmed to the figure: smaller box, the figure is not stretched */
/* 28/11/2026 user ("battle sahnesinde sadece biz saldırıyoruz.. boss hiç atack yada defansif hareket sergilemiyor öylece bekliyor
   ölmeyi saçma"): the boss breathes, strikes back at the army (wind-up, lunge, claw sweep; the warriors brace and block) and
   now and then raises its guard. Show only: the army takes no damage, the Loot runs as before. */
.scene .boss { animation: boss-idle 3.4s ease-in-out infinite; }
.scene .boss.hurt { animation: hurt .35s, boss-idle 3.4s .35s ease-in-out infinite; }
.scene .boss.atk { animation: boss-atk 1.1s ease-in-out; }
.scene .boss.guard { animation: boss-guard 2.4s ease-in-out; }
@keyframes boss-idle { 50% { transform: scale(1.012, 1.025); } }
@keyframes boss-atk { 0% { transform: none; } 30% { transform: translateX(5%) rotate(3deg) scale(1.03); filter: brightness(1.1); } 52% { transform: translateX(-26%) rotate(-7deg) scale(1.07); filter: brightness(1.25) saturate(1.2); } 70% { transform: translateX(-20%) rotate(-3deg); } 100% { transform: none; } }
@keyframes boss-guard { 0%, 100% { transform: none; filter: none; } 18%, 82% { transform: translateX(4%) scale(.97); filter: drop-shadow(0 0 14px rgba(120, 190, 255, .85)) brightness(.95); } }
.scene .claw { position: absolute; z-index: 4; width: 26%; aspect-ratio: 1; pointer-events: none; transform: translate(-50%, -50%) rotate(25deg); border-radius: 50%;
    border-left: 6px solid rgba(255, 120, 70, .95); box-shadow: -6px 0 18px rgba(255, 90, 40, .6); animation: claw .45s ease-out forwards; }
.scene .claw::before, .scene .claw::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; border-left: 4px solid rgba(255, 170, 110, .85); }
.scene .claw::after { inset: 22%; }
@keyframes claw { from { opacity: 0; transform: translate(-50%, -50%) rotate(70deg) scale(.6); } 30% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(1.05); } }
.scene .army.brace .w { animation: brace .55s ease-out; }
@keyframes brace { 30% { transform: translateX(-6%) rotate(-5deg); filter: brightness(1.35) drop-shadow(0 0 8px rgba(140, 200, 255, .9)); } }
.scene .say { position: absolute; z-index: 4; padding: 2px 8px; border-radius: 999px; background: rgba(16, 18, 21, .85); box-shadow: var(--frame); color: #9fd3ff; font-size: 13px; font-weight: 700; pointer-events: none; animation: rise 1.3s ease-out forwards; }
.scene .say.foe { color: #ffb08a; }
.scene .boss.fall { animation: fall 1.2s forwards; }
.scene .boss.enter { animation: enter .9s; }
.scene .dmg { position: absolute; z-index: 4; color: var(--gold-1); font-weight: 700; font-size: 18px; text-shadow: 0 2px 3px rgba(0, 0, 0, .9); pointer-events: none; animation: rise 1.4s ease-out forwards; }
.scene .army .add { animation: none; }
.scene .army .w.flip { scale: -1 1; }
.scene .slot { display: grid; place-items: center; border: 2px dashed var(--line-2); border-radius: var(--r1); color: var(--faint); background: rgba(22, 26, 30, .6); }
/* scene modifier: the Quest Map (the road joins ten places; on = passed, here = the player) */
.scene.map { height: auto; aspect-ratio: 1568 / 1003; margin-bottom: var(--s2); background-color: #1d2228; background-image: radial-gradient(ellipse at 30% 70%, #323943, transparent 60%), radial-gradient(ellipse at 80% 20%, #2b313a, transparent 55%); }
.scene .road { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .road polyline { fill: none; stroke: rgba(240, 200, 120, .55); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.scene .node { position: absolute; z-index: 2; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--faint); background: #14171b; border: 2px solid var(--line-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.scene .node.on { color: var(--gold-txt); border-color: var(--gold-2); background: #242930; }
.scene .node.here { width: 46px; height: 46px; font-size: 20px; color: #2a1a08; border-color: var(--gold-1); background: radial-gradient(circle at 35% 30%, #ffe9a6, var(--gold-1) 55%, var(--gold-2)); box-shadow: 0 0 0 5px rgba(240, 190, 90, .22), 0 4px 10px rgba(0, 0, 0, .6); }
@keyframes hit { 0%, 70%, 100% { transform: translateX(0) rotate(0); } 80% { transform: translateX(8%) rotate(4deg); } }
@keyframes hurt { 30% { transform: translateX(3%); filter: brightness(1.5); } }
@keyframes fall { to { transform: translateY(12%) rotate(8deg); opacity: 0; } }
@keyframes enter { from { transform: translateX(30%); opacity: 0; } }
@keyframes rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }

/* ---------- the game card (27/11/2026: the genre's shared frame, Nuggmi mining + Gemly raid, in the CatRaid theme) ---------- */
/* 28/11/2026 KARAR Gemly ikizi: the battle card. Enemy plate on top (portrait, name + place, life bar with the life left, time to fall) */
.card.flush > .scene { border-radius: 0; }
.scene .hud.foe { flex-direction: row; align-items: center; gap: var(--s2); width: min(52%, 460px); padding: 6px var(--s2) 6px 6px; border-radius: var(--r2); background: rgba(16, 18, 21, .82); box-shadow: var(--frame); }
.scene .foe .face { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: #0d0f11; box-shadow: 0 0 0 2px var(--red-2); color: var(--faint); }
.scene .foe .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.scene .foe .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.scene .foe .name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none; }
.scene .foe .name small { color: var(--muted); font-size: 12px; font-weight: 400; }
.scene .foe .bar { height: 16px; }
.scene .foe .bar b { position: relative; display: block; text-align: center; font-size: 12px; line-height: 16px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); font-variant-numeric: tabular-nums; }
.scene .foe .eta { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; color: var(--muted); font-size: 12px; }
.scene .foe .eta b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
/* the loot list, top right: the place boss drops a Key (dim until the third wave); three wave marks */
.scene .loot-list { align-items: center; gap: 4px; padding: 6px var(--s2); border-radius: var(--r2); background: rgba(16, 18, 21, .82); box-shadow: var(--frame); }
.scene .loot-list small { color: var(--muted); font-size: 12px; }
.scene .drop { display: flex; align-items: center; gap: 4px; color: var(--gold-txt); font-size: 14px; font-weight: 700; }
.scene .drop img { width: 34px; height: 34px; object-fit: contain; }
.scene .drop.off { opacity: .45; filter: grayscale(.7); }
.scene .waves { display: flex; gap: 4px; }
.scene .waves i { width: 10px; height: 10px; border-radius: 50%; background: #0d0f11; box-shadow: inset 0 0 0 1px var(--line-2); }
.scene .waves i.done { background: var(--faint); }
.scene .waves i.on { background: var(--red-1); box-shadow: 0 0 6px var(--red-1); }
/* Collect with the War Chest, right side of the scene */
.scene .cashout { position: absolute; z-index: 5; right: var(--s3); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; }
.scene .cashout > b { display: flex; align-items: center; gap: 4px; padding: 2px var(--s2) 2px 4px; border-radius: 999px; background: rgba(16, 18, 21, .82); color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; box-shadow: var(--frame); }
.scene .cashout .ico { width: 22px; height: 22px; }
/* tools, bottom left: army, calculator, elixirs, animations */
.scene .tools { position: absolute; z-index: 5; left: var(--s2); bottom: var(--s2); display: flex; gap: 4px; }
.scene .tools button, .scene .tools a { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: var(--r1); background: rgba(16, 18, 21, .82); color: var(--gold-txt); font-size: 16px; cursor: pointer; box-shadow: var(--frame); }
.scene .tools button:hover, .scene .tools a:hover { color: var(--gold-1); background: rgba(33, 38, 45, .92); }
.scene .tools .off { color: var(--faint); }
/* the weapon strike: effect art when on disk, a blade arc until then */
.scene .fx { position: absolute; z-index: 4; width: 18%; aspect-ratio: 1; pointer-events: none; transform: translate(-50%, -50%) rotate(-20deg); border-radius: 50%; border-top: 4px solid rgba(255, 236, 180, .95); filter: drop-shadow(0 0 6px var(--gold-1)); animation: strike .45s ease-out forwards; }
.scene .fx.art { border: 0; border-radius: 0; background: center / contain no-repeat; filter: none; }
.scene .fx.fly { width: 16%; aspect-ratio: 2 / 1; transform: translate(-50%, -50%); animation: fly .5s ease-in forwards; }
@keyframes fly { from { opacity: 0; transform: translate(-50%, -50%); } 15% { opacity: 1; } 85% { opacity: 1; } to { opacity: 0; transform: translate(220%, -50%); } }
.scene.still .army .w, .scene.still .boss, .scene.still .army.brace .w { animation: none; }
@keyframes strike { from { opacity: 0; transform: translate(-50%, -50%) rotate(-50deg) scale(.6); } 30% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) rotate(20deg) scale(1.1); } }
/* the stats strip under the scene: kpi cells in one row, the damage in the middle bigger with its / sec / min / hour / day switch */
.kpis.row { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); align-items: stretch; padding: var(--s3) var(--s3) var(--s2); }
.kpis.row .kpi { align-content: center; }
.kpis.row .kpi b { white-space: nowrap; }
.kpi b span:not(.ico) { font-size: inherit; color: inherit; }
.kpi b .ico { width: 20px; height: 20px; vertical-align: -3px; margin-right: 4px; }
.kpi.main { place-items: center; align-content: center; gap: 4px; background: linear-gradient(#272e35, #1d2127); }
.kpi.main b { font-size: 24px; color: var(--gold-txt); font-variant-numeric: tabular-nums; }
.kpi b { font-variant-numeric: tabular-nums; }
.modes { display: flex; gap: 2px; padding: 2px; border-radius: var(--r1); background: var(--inner); box-shadow: var(--frame); }
.modes button { white-space: nowrap; height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 600 12px var(--font); cursor: pointer; }
.modes button.on { background: linear-gradient(var(--gold-1), var(--gold-2)); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold-lip); }
/* the War Chest meter under the output */
.meter { padding: 0 var(--s3) var(--s3); }
.meter-info { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s1); font-size: 14px; color: var(--muted); }
.meter-info b { color: var(--gold-txt); }
/* a strip of item slots with counts (elixirs) */
.card.slots-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); }
.card.slots-row > h2 { margin: 0; }
.card.slots-row > .r { margin-left: auto; color: var(--muted); font-size: 14px; }
.card.slots-row > .r b { color: var(--gold-txt); }
.slots { display: flex; gap: var(--s2); }
.slots form { margin: 0; }
.slots button { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--r1); background: var(--inner); box-shadow: var(--frame); cursor: pointer; }
.slots button:disabled { cursor: default; }
.slots button:not(:disabled):hover { background: var(--panel-2); }
.slots img { width: 38px; height: 38px; object-fit: contain; }
.slots b { position: absolute; right: -5px; bottom: -5px; min-width: 18px; padding: 0 4px; border-radius: 9px; background: linear-gradient(var(--gold-1), var(--gold-2)); color: var(--ink); font-size: 12px; line-height: 18px; }
/* unit cards: a buyable thing with its count, rate, info, − count + and the price (warriors) */
/* 28/11/2026 KARAR Gemly ikizi: warrior strips. Hire column left (name, x1/x10/x100/Max, Recruit, price), the troop on its
   place's ground right (one copy per owned warrior, up to ten, the count on top), the facts under the troop */
.units { display: flex; flex-direction: column; gap: var(--s2); }
.card.unit { display: grid; grid-template-columns: 210px 1fr; grid-template-areas: "hire troop" "hire chips"; column-gap: var(--s3); row-gap: var(--s2); align-items: stretch; }
.unit .hire { grid-area: hire; display: flex; flex-direction: column; justify-content: center; gap: var(--s2); }
.unit .nm { font-size: 18px; color: var(--gold-txt); line-height: 1.2; }
.unit .qty { display: flex; gap: 4px; }
.unit .qty button { flex: 1; height: 26px; padding: 0; border: 0; border-radius: 6px; background: var(--inner); box-shadow: var(--frame); color: var(--muted); font: 600 12px var(--font); cursor: pointer; }
.unit .qty button.on { background: linear-gradient(var(--gold-1), var(--gold-2)); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold-lip); }
.unit .price { display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; color: var(--text); }
.unit .btn:disabled { cursor: default; }
.unit .troop { grid-area: troop; position: relative; height: 140px; display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--s3) 6px; border-radius: var(--r1); overflow: hidden; background: #1e2228 center 65% / cover no-repeat; box-shadow: var(--frame); }
.unit .troop > img { height: 80%; width: auto; aspect-ratio: 1; object-fit: contain; margin: 0 -2.2%; flex: 0 1 auto; min-width: 0; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
.unit .troop > img.flip { scale: -1 1; }
.unit .troop > i { font-size: 48px; color: var(--line-2); margin-bottom: var(--s3); }
.unit .troop .ghost { filter: brightness(0); opacity: .35; }
.unit .troop .own { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 1px var(--s2); border-radius: 999px; background: rgba(16, 18, 21, .82); color: var(--text); font-size: 12px; font-weight: 600; box-shadow: var(--frame); }
.unit .troop .own i { color: var(--gold-txt); }
.unit .chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: var(--s1); }
.unit .chips .pill { gap: 4px; }
.unit .chips button.pill { border: 0; cursor: pointer; font: inherit; }
.unit .chips .tip-i { cursor: help; }
/* the player's own row in a ranking table */
.tb tr.on td { color: var(--gold-txt); font-weight: 700; }
/* a choice inside a row's title (the level calculator) */
.row b select { height: 26px; padding: 0 4px; border: 0; border-radius: 6px; background: var(--inner); box-shadow: var(--frame); color: var(--gold-txt); font: inherit; cursor: pointer; }
/* a count typed in a table cell (the Loot calculator) */
.tb td input[type=number] { width: 72px; height: 28px; border: 0; border-radius: 7px; background: #0f1114; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); color: var(--text); font: 600 14px var(--font); text-align: center; }
.tb td input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.pop-box.wide { width: min(640px, 100%); }
@media (max-width: 760px) {
    .kpis.row { grid-template-columns: repeat(var(--mcols, 2), minmax(0, 1fr)); padding: var(--s2); } /* --mcols: a page row of three short numbers stays one row */
    .kpi.main { grid-column: 1 / -1; order: -1; }
    .card.slots-row { flex-wrap: wrap; }
    .card.unit { grid-template-columns: 1fr; grid-template-areas: "troop" "hire" "chips"; }
    .unit .troop { height: 104px; }
    .unit .hire { display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .unit .nm, .unit .qty { grid-column: 1 / -1; }
    .unit .chips .pill { flex: none; }
}

@media (max-width: 760px) {
    .scene { height: auto; aspect-ratio: 4 / 3; }
    .scene .hud.tl { top: var(--s2); left: var(--s2); }
    .scene .hud.tc { top: var(--s2); width: 56%; }
    .scene .hud.foe { left: var(--s2); transform: none; width: calc(100% - 124px); } /* 29/11 the loot list carries CAT + XP values now */
    .scene .foe .eta b { font-size: 12px; }
    .scene .loot-list { padding: 4px; }
    .scene .loot-list small { display: none; }
    .scene .foe .face { width: 36px; height: 36px; }
    .scene .cashout { right: var(--s2); }
    .scene .hud.tc .name { font-size: 15px; }
    .scene .hud .tag { font-size: 12px; }
    .scene .hud .tag b { font-size: 14px; }
    .scene .army { left: 2%; width: 54%; height: 58%; }
    .scene .boss { right: 1%; height: 56%; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--kmin, 170px), 1fr)); gap: var(--s2); } /* --kmin: a page sets the card width so its count fills whole rows */
/* 28/11/2026 road map: one card a step (season tag, title, line); a done step is quieter */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s2); }
.step { display: grid; align-content: start; gap: 6px; padding: var(--s3); }
.step p { margin: 0; color: color-mix(in srgb, var(--muted) 55%, var(--text)); } /* 28/11/2026 QA: a step is a card on a card, --muted read 4.0:1 there */
.step .tag { color: color-mix(in srgb, var(--muted) 55%, var(--text)); }
/* 28/11/2026 QA: opacity .8 dropped done text to 3.8-4.0:1; done reads from its green tag */
.kpi { display: grid; gap: 2px; padding: var(--s2) var(--s3); border-radius: var(--r1); background: var(--inner); box-shadow: var(--frame); }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { font-size: 20px; font-weight: 700; color: var(--text); }
.kpi small { font-size: 12px; color: var(--faint); }
.kpi b.up, .tb td.up { color: var(--green-1); }
.kpi b.down, .tb td.down { color: var(--red-1); }
/* 28/11/2026 training strip (core/tutorial.php): one line above the battle; the stage, its hint, the reward and Skip */
.card.tut { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); }
.card.tut > i { font-size: 22px; color: var(--gold-txt); }
.card.tut .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card.tut b { font-size: 15px; }
.card.tut small { color: var(--muted); font-size: 14px; }
.pop-box .amt { display: flex; align-items: center; justify-content: center; gap: var(--s1); font-size: 20px; font-weight: 700; color: var(--gold-1); }
/* 29/11/2026 user ("eğitim modunda olduğumu fark edemedim bile"): training is a mode. The card stays on top with a gold rim, the
   stage's target is lit and everything else dims; the shell locks the menu (body.training) and shows the stage in the top bar */
.tut-dim .card.tut { position: sticky; top: var(--s2); z-index: 61; box-shadow: 0 0 0 2px var(--gold-1), 0 10px 30px rgba(0, 0, 0, .5); }
.tut-focus { position: relative; z-index: 60; border-radius: var(--r, 12px); box-shadow: 0 0 0 3px var(--gold-1), 0 0 0 200vmax rgba(8, 10, 14, .62); }
.tut-pulse { animation: tut-pulse 1.4s ease-in-out infinite; }
@keyframes tut-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 64, .75); } 50% { box-shadow: 0 0 0 8px rgba(255, 196, 64, 0); } }
.top .tut-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #2a1a05; font-size: 14px; font-weight: 700; white-space: nowrap; }
.training .sidenav nav a, .training .tabbar a:not(.on), .training .top .ic-row a { opacity: .4; pointer-events: none; }
.training .sidenav nav::before { content: "Finish the training to open the menu"; display: block; margin: 0 0 var(--s2); padding: var(--s2); border-radius: 10px; background: rgba(255, 196, 64, .12); color: var(--gold-txt); font-size: 14px; font-weight: 600; }
/* 28/11/2026 locked warrior (Gemly "To unlock, perform the following condition"): the troop dims, the condition sits on it */
.unit.locked .troop img, .unit.locked .troop > i { filter: grayscale(.85) brightness(.55); }
.unit .lock { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s2); background: rgba(14, 17, 22, .55); color: var(--text); font-size: 15px; font-weight: 600; text-align: center; }
.unit .lock > i { font-size: 22px; color: var(--gold-txt); }
@media (max-width: 760px) {
    .card.tut { flex-wrap: wrap; gap: var(--s2); }
    .card.tut > i { display: none; }
    .card.tut .grow { flex-basis: 100%; }
    .unit .lock { flex-wrap: wrap; font-size: 14px; }
}
.bst { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--inner); box-shadow: var(--frame); font-size: 18px; }
.bst em { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 0 4px; border-radius: 6px; background: #14171c; box-shadow: 0 0 0 1px var(--line-2); color: var(--gold-txt); font: 600 12px var(--font); white-space: nowrap; }
/* 29/11/2026 the potion picture (paket 28): no round well, the bottle stands in its box, the tier under it */
.bst.pic, .pic > .bst.pic { border-radius: 0; background: none; box-shadow: none; }
.bst.pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.bst-b10 { color: #7fb7e8; } .bst-b20 { color: #e86b5a; } .bst-b25 { color: #6fd0c4; }
.bst-b50 { color: #e889c8; } .bst-b75 { color: #8fd36a; } .bst-b100 { color: var(--gold-1); }
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile .pic .bst { width: 52px; height: 52px; font-size: 24px; }
.tile .pic .bst.pic { width: 100%; height: 100%; }
.meter-info.mod { align-items: center; padding: 0 var(--s3) var(--s3); }
.loot-list .drop { display: inline-flex; align-items: center; gap: 4px; }
.qty .qty-n { flex: 1.3; min-width: 0; height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: var(--inner); box-shadow: var(--frame); color: var(--text); font: 600 12px var(--font); }
.qty .qty-n::placeholder { color: var(--faint); }
.promo-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s2); border-radius: var(--r1); background: linear-gradient(90deg, rgba(212, 160, 60, .18), transparent); color: var(--muted); font-size: 14px; }
.promo-bar > i, .promo-bar b { color: var(--gold-txt); }
.promo-bar .r { margin-left: auto; }
.card.unit.promo { box-shadow: var(--frame), 0 0 0 1px var(--gold-2); }
.lvl-pop h3 { margin: var(--s3) 0 var(--s1); font-size: 15px; color: var(--gold-txt); }
.lvl-now { display: flex; align-items: center; gap: var(--s3); }
.lvl-now .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lvl-now .grow small { color: var(--muted); font-size: 14px; }
.lvl-ways { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.lvl-ways li { display: flex; align-items: center; gap: var(--s1); }
.lvl-ways li b { min-width: 42px; color: var(--gold-txt); }
.lvl-ways li.got { color: var(--text); }
.lvl-bst { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); max-width: 420px; }
.lvl-bst > span { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lvl-bst small { color: var(--muted); font-size: 12px; }
.lvl-calc { display: flex; align-items: center; gap: var(--s2); }
.lvl-calc input { width: 90px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--inner); box-shadow: var(--frame); color: var(--text); font: inherit; }
.lvl-calc output { color: var(--gold-txt); font-size: 14px; }
/* 29/11/2026 the chest grows when an enemy falls: its number pops once */
[data-cr="stored"].pop-up { display: inline-block; animation: cr-chest-pop .6s ease-out; }
@keyframes cr-chest-pop { 0% { transform: scale(1); } 35% { transform: scale(1.25); color: var(--gold-1); } 100% { transform: scale(1); } }

/* 29/11/2026 user ("gemly de nasıldı.. sahnesinde farklı birşeyler var eksik yada fazla"): Gemly's battle card: the place picture top
   left and the stats strip as one flat row of seven figures with the damage per second in the middle; our army scene stays. */
.scene .place-thumb { width: 72px; height: 48px; padding: 0; overflow: hidden; border-radius: var(--r1); box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 4px 10px rgba(0, 0, 0, .5); }
.scene .place-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kpis.flat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 0; padding: var(--s2) var(--s3); }
.kpis.flat .kpi { background: none; box-shadow: none; border-radius: 0; padding: var(--s1) var(--s2); text-align: center; place-items: center; align-content: center; }
.kpis.flat .kpi + .kpi { border-left: 1px solid rgba(255, 255, 255, .07); }
.kpis.flat .kpi > span { font-size: 12px; color: var(--muted); }
.kpis.flat .kpi > b { font-size: 18px; white-space: nowrap; }
.kpis.flat .kpi.main { border-radius: var(--r1); background: radial-gradient(ellipse at 50% 120%, rgba(255, 196, 64, .22), transparent 70%), linear-gradient(#272e35, #1d2127); }
.kpis.flat .kpi.main > b { font-size: 26px; }
@media (max-width: 760px) {
    .scene .place-thumb { display: none; }
    .kpis.flat { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s2); padding: var(--s2); }
    .kpis.flat .kpi.main { grid-column: 1 / -1; order: -1; }
    .kpis.flat .kpi:nth-child(5) { border-left: 0; }
}
/* 29/11/2026 user ("sahne üzerindeki kartlarda sorun var"): the scene's cards as one set. Loot list = Gemly's titled plate with one
   square tile (coin over the amount); the War Chest pill is as wide as Collect, its number centred */
.scene .loot-list { display: grid; grid-template-columns: repeat(2, auto); justify-items: center; align-items: center; gap: 6px; padding: 6px 8px 8px; } .scene .loot-list small { grid-column: 1 / -1; }  /* 29/11/2026 Gemly: CAT and XP side by side */
.scene .loot-list small { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--gold-txt); }
.scene .loot-list .drop { flex-direction: column; justify-content: center; gap: 2px; width: 72px; height: 64px; border-radius: var(--r1); background: radial-gradient(circle at 50% 35%, rgba(255, 196, 64, .28), transparent 65%), #14171b; box-shadow: inset 0 0 0 2px rgba(255, 196, 64, .55); }
.scene .loot-list .drop .ico { width: 28px; height: 28px; }
.scene .loot-list .drop b { font-size: 13px; }
.scene .cashout { align-items: stretch; }
.scene .cashout > b { justify-content: center; }
@media (max-width: 760px) {
    .scene .loot-list .drop { width: 56px; height: 50px; }
    .scene .loot-list .drop .ico { width: 22px; height: 22px; }
}



/* ---------- 29/11/2026 sıfırdan tasarım: countdown ---------- */
.timer { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- 29/11/2026 sıfırdan tasarım: admin (pages/adminmusta) ----------
   The admin is the same lonca window: one top bar with the logo, the page tabs and the tools, the pages' cards under it.
   Only the admin's own roles live here: its bar, its bulk and filter lines, its settings grid, status pills. */
.adm .shell { display: block; max-width: var(--wrap); min-height: 0; }
.adm .top { position: sticky; left: auto; right: auto; margin: 0 auto; max-width: var(--wrap); height: auto; min-height: var(--top); flex-wrap: wrap; gap: var(--s2) var(--s3); padding: var(--s2) var(--s4); background: linear-gradient(180deg, rgba(40, 46, 54, .96), rgba(26, 30, 36, .97)); border-bottom: 1px solid var(--line); }
.adm .top .logo { display: flex; font-size: 18px; color: var(--gold-txt); }
.adm .top .logo img { height: 32px; width: auto; }
.adm .nav { display: flex; flex-wrap: wrap; gap: 4px; }
.adm .nav a { position: relative; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r1); color: var(--muted); font-size: 14px; font-weight: 600; }
.adm .nav a > i { color: var(--faint); font-size: 14px; }
.adm .nav a:hover, .adm .nav a.on { background: rgba(230, 182, 96, .12); color: var(--gold-1); }
.adm .nav a.on > i, .adm .nav a:hover > i { color: var(--gold-txt); }
.adm .nav a > b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-1); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.adm .top .tools { margin-left: auto; display: flex; gap: var(--s1); }
.adm .top .tools a, .adm .top .tools button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r1); background: none; color: var(--faint); cursor: pointer; }
.adm .top .tools a:hover, .adm .top .tools button:hover { background: rgba(255, 255, 255, .05); color: var(--gold-txt); }
.adm .top::after { display: none; }
.adm .main { padding: var(--s4); }
.adm-login .top .nav, .adm-login .top .tools { display: none; }
.pill.st-good, .pill.st-success { color: var(--green-1); border-color: rgba(111, 214, 154, .3); }
.pill.st-bad { color: #f3a593; border-color: rgba(224, 48, 79, .35); }
.pill.st-secondary, .pill.st-info { color: var(--faint); }
.card > h2 .more { margin-left: auto; font-size: 14px; font-weight: 400; }
.tb td.when { color: var(--faint); font-size: 12px; }
.tb td.ev a { color: var(--text); font-weight: 600; }
.tb td.ev img.adm-ic { display: inline-block; width: 22px; height: 22px; margin-right: var(--s2); border-radius: 6px; vertical-align: middle; object-fit: contain; }
.adm-line { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s3); }
.adm-line .in { height: 38px; }
.adm-line .in.grow { flex: 1 1 260px; }
.adm-line.tight { margin: 0; flex-wrap: nowrap; justify-content: flex-end; }
.adm-line.tight .in { width: 110px; height: 32px; }
.adm-facts { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin: var(--s3) 0; font-size: 14px; color: var(--muted); }
.adm-facts b { color: var(--text); font-weight: 600; }
.adm-bulk { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-top: var(--s3); }
.adm-bulk.lead { margin: 0 0 var(--s2); }
.adm-bulk .tabs { margin: 0 0 0 auto; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 var(--s3); align-items: start; }
.adm-grp + .adm-grp, .tb-wrap + .adm-grp { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.adm-grp h3 { display: flex; align-items: center; gap: var(--s1); margin: 0 0 var(--s2); font-size: 14px; font-weight: 600; color: var(--gold-txt); }
.adm-set { margin-bottom: var(--s3); }
.adm-set .in { height: 38px; }
.adm-set small { font-size: 12px; color: var(--faint); }
.adm-num { width: 100px; height: 32px; padding: 0 var(--s2); border: 1px solid var(--line-2); border-radius: 8px; background: var(--well); color: var(--text); font: 600 14px var(--font); }
.adm-check { display: inline-flex; align-items: center; gap: var(--s1); font-size: 14px; color: var(--muted); cursor: pointer; }
.adm-check input { width: auto; flex: none; margin: 0; accent-color: var(--gold-2); }
.adm-config > h2 { flex-wrap: wrap; row-gap: var(--s1); }
.adm-config > h2 .tabs { flex-wrap: wrap; }
.adm-signin { width: min(380px, 100%); margin: var(--s5) auto; }
.adm-signin form { display: grid; gap: var(--s2); }
@media (max-width: 760px) {
    .adm .top { padding: var(--s2); }
    .adm .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .adm .nav a { flex: none; }
    .adm .main { padding: var(--s2); }
}
/* 29/11/2026 QA: a field holding a textarea grows with it (admin Warriors and Road map lists ran over their labels) */
.in:has(> textarea), .adm-set .in:has(> textarea) { height: auto; align-items: stretch; padding: var(--s2) var(--s3); }
.in > textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
@media (max-width: 760px) { .adm .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* 29/11/2026 admin numbers two a row on a phone (eight tall cards before) */

/* 01/12/2026 ad blocker gate (inc/adblock_gate.php): the page under it does not scroll */
html.ab-locked { overflow: hidden; }
