@charset "UTF-8";

:root {
  --ink: #17231f;
  --muted: #425149;
  --paper: #f2efe5;
  --card: #fffdf7;
  --line: #d9d8cb;
  --forest: #13352e;
  --forest-2: #1c4b40;
  --orange: #e9652d;
  --lime: #bad66f;
  --gain-blue: #1769aa;
  --danger: #bb3f32;
  --shadow: 0 18px 48px rgba(28, 46, 39, .12);
  --font-ui: Bahnschrift, "Segoe UI", Tahoma, sans-serif;
  --font-display: Bahnschrift, "Segoe UI Semibold", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; background: var(--paper); overflow-x: hidden; }
body { width: 100%; margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); font-family: var(--font-ui); font-synthesis: none; background: var(--paper); overflow-x: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .22; z-index: 99; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }

.login-view { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, 1.1fr) minmax(360px, .9fr); background: #75cce4 url("/assets/ui/avatar-world-banner.png") center center / cover no-repeat; overflow: hidden; }
.login-view::before { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(8,38,33,.1) 0%, rgba(8,38,33,.18) 48%, rgba(8,31,27,.72) 100%); }
.login-art { --radar-size: min(38vw, 390px); position: relative; z-index: 1; min-height: 620px; }
.login-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(13,53,43,.24), transparent 48%); }
.radar { position: absolute; width: var(--radar-size); aspect-ratio: 1; border: 1px solid rgba(214,239,150,.48); border-radius: 50%; left: 44%; top: 47%; translate: -50% -50%; background: rgba(8,38,33,.2); box-shadow: 0 20px 60px rgba(8,32,27,.18); backdrop-filter: blur(1px); }
.radar i { position: absolute; inset: 16%; border: 1px solid rgba(186,214,111,.25); border-radius: inherit; }
.radar i:nth-child(2) { inset: 32%; }.radar i:nth-child(3) { inset: 48%; }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(186,214,111,.25); }
.radar::before { width: 1px; height: 100%; left: 50%; }.radar::after { height: 1px; width: 100%; top: 50%; }
.radar b { position: absolute; inset: 50% 50% 0 50%; transform-origin: top left; background: conic-gradient(from 266deg, transparent, rgba(186,214,111,.4)); animation: sweep 5s linear infinite; }
.radar-logo { position: absolute; z-index: 3; width: 70px; height: 70px; left: 50%; top: 50%; translate: -50% -50%; object-fit: cover; border-radius: 22%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.material-orbit { position: absolute; z-index: 2; width: var(--radar-size); aspect-ratio: 1; left: 44%; top: 47%; translate: -50% -50%; }
.material-orbit img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.login-card { position: relative; z-index: 2; width: min(410px, calc(100% - 34px)); align-self: center; justify-self: center; padding: 27px; overflow: hidden; border: 1px solid rgba(216,239,207,.22); border-radius: 22px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(186,214,111,.11), transparent 34%), linear-gradient(145deg, rgba(9,46,39,.92), rgba(7,31,27,.88)); box-shadow: 0 30px 80px rgba(4,25,21,.38), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(16px) saturate(1.15); animation: login-card-in .55s cubic-bezier(.2,.8,.2,1) both; }
.login-card::before { content: ""; position: absolute; inset: 0 20% auto; height: 2px; background: linear-gradient(90deg, transparent, var(--lime), transparent); opacity: .9; }
.auth-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; }
.auth-logo { width: 47px; height: 47px; flex: 0 0 47px; display: grid; place-items: center; padding: 5px; border: 1px solid rgba(186,214,111,.32); border-radius: 14px 7px 14px 7px; background: linear-gradient(145deg, rgba(186,214,111,.22), rgba(233,101,45,.2)); box-shadow: 0 9px 24px rgba(0,0,0,.2); transform: rotate(-3deg); }
.auth-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px 5px 10px 5px; filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.auth-kicker { display: block; margin-bottom: 4px; color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.auth-heading h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: 27px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.eyebrow { display: block; letter-spacing: .18em; font-size: 11px; font-weight: 800; color: var(--orange); }
.login-card h1 { margin: 20px 0 22px; font-family: var(--font-display); font-weight: 750; font-size: clamp(44px, 5vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.login-card h1 em { color: var(--lime); font-style: normal; }
.login-card > p { max-width: 520px; color: #bdd0c8; line-height: 1.65; }
.auth-form { display: grid; gap: 15px; max-width: 390px; margin-top: 0; }
.auth-form label { position: relative; color: #d4e1dc; text-align: left; font-size: 13px; font-weight: 850; letter-spacing: .025em; }
.auth-form input { height: 50px; margin-top: 8px; padding: 0 14px 0 45px; border-color: rgba(218,235,228,.2); border-radius: 12px; color: #fff; background-color: rgba(255,255,255,.075); background-position: 15px center; background-repeat: no-repeat; background-size: 18px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); font-size: 15px; font-weight: 650; letter-spacing: 0; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.auth-email input { background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6.5h16v11H4z' stroke='%23bad66f' stroke-width='1.7'/%3E%3Cpath d='m5 7.5 7 5 7-5' stroke='%23bad66f' stroke-width='1.7'/%3E%3C/svg%3E"); }
.auth-password input { background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='10' width='14' height='10' rx='2' stroke='%23bad66f' stroke-width='1.7'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' stroke='%23bad66f' stroke-width='1.7'/%3E%3C/svg%3E"); }
.auth-form input::placeholder { color: #8ba39a; opacity: 1; font-size: 14px; font-weight: 600; }
.auth-form input:hover { border-color: rgba(218,235,228,.34); background-color: rgba(255,255,255,.1); }
.auth-form input:focus { border-color: var(--lime); background-color: rgba(255,255,255,.11); box-shadow: 0 0 0 3px rgba(186,214,111,.12), 0 9px 24px rgba(0,0,0,.12); }
.auth-form .button { width: 100%; min-height: 50px; margin-top: 2px; border-radius: 12px; font-size: 16px; letter-spacing: .01em; background: linear-gradient(135deg, #e9652d, #f17c43); box-shadow: 0 12px 26px rgba(233,101,45,.3), inset 0 1px 0 rgba(255,255,255,.2); }
.auth-form .button:hover { box-shadow: 0 15px 30px rgba(233,101,45,.38), inset 0 1px 0 rgba(255,255,255,.22); }
.auth-form .button:active { transform: translateY(1px); box-shadow: 0 7px 16px rgba(233,101,45,.25); }
.auth-form .button:disabled { cursor: wait; opacity: .72; transform: none; }
.forgot-password { display: block; margin: 10px 0 0 auto; padding: 4px 1px; border: 0; color: #c9dc8f; background: transparent; font-size: 12px; font-weight: 800; }.forgot-password:hover { color: #e0f4a4; text-decoration: underline; text-underline-offset: 3px; }
.auth-secondary { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 17px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); color: #b3c5be; font-size: 14px; }
.auth-switch { margin: 0; padding: 4px 2px; border: 0; color: var(--lime); background: none; font-size: 14px; font-weight: 850; }
.auth-switch:hover { color: #d5ef90; text-decoration: underline; text-underline-offset: 3px; }
.login-hint { position: relative; margin: 13px 0 0; padding-left: 17px; color: #a3b8b0 !important; font-size: 12px; line-height: 1.5 !important; text-align: center; }
.login-hint::before { content: ""; position: absolute; width: 6px; height: 6px; top: .42em; margin-left: -14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(186,214,111,.09); }

.app-shell { min-height: 100vh; min-height: 100dvh; display: block; background: linear-gradient(rgba(238,246,235,.72),rgba(238,246,235,.82)), url("/assets/ui/avatar-world-banner.png") center center / cover fixed no-repeat; }


.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; padding: 4px; background: var(--orange); transform: rotate(-4deg); border-radius: 10px 4px 10px 4px; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }


main { width: 70%; max-width: 1440px; min-width: 0; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 34px clamp(16px,2vw,30px) 70px; background: radial-gradient(circle at 95% 4%,rgba(233,101,45,.1),transparent 25%),var(--paper); box-shadow: 0 0 55px rgba(19,53,46,.08); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }.topbar-brand, .topbar-actions { display: flex; align-items: center; gap: 12px; }.topbar h2 { margin: 5px 0 0; font-family: var(--font-display); letter-spacing: -.035em; font-size: 32px; font-weight: 750; }.user-menu-wrap { position: relative; min-width: 0; }.user-chip { min-height: 52px; display: flex; align-items: center; gap: 11px; color: var(--ink); background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px 6px 6px; text-align: left; }.user-chip:hover, .user-chip[aria-expanded="true"] { border-color: #b9bdae; background: rgba(255,255,255,.78); }.user-chip img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; background: #d9dfd5; }.user-chip b, .user-chip small { display: block; }.user-chip b { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.user-chip small { color: var(--muted); font-size: 10px; }.menu-chevron { color: var(--muted); font-size: 16px; font-style: normal; transition: transform .2s; }.user-chip[aria-expanded="true"] .menu-chevron { transform: rotate(180deg); }.user-menu { position: absolute; z-index: 35; top: calc(100% + 8px); right: 0; width: 275px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: 0 18px 48px rgba(20,42,34,.2); }.user-menu button { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 9px; padding: 8px 10px; color: var(--ink); background: transparent; text-align: left; }.user-menu button:hover { background: #efede4; }.user-menu button > span { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 8px; color: var(--forest); background: #e8ecdf; font-size: 11px; }.user-menu b, .user-menu small { display: block; }.user-menu b { font-size: 12px; }.user-menu small { margin-top: 2px; color: var(--muted); font-size: 9px; }.user-menu .menu-danger { color: var(--danger); }.user-menu .menu-danger > span { color: var(--danger); background: #f7dfd8; }

.pricing-card { position: relative; min-height: 138px; display: grid; grid-template-columns: 78px minmax(0,1fr) minmax(185px,.52fr); align-items: center; gap: 20px; margin: 28px 0 38px; padding: 22px 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: radial-gradient(circle at 92% 20%, rgba(186,214,111,.22), transparent 28%), linear-gradient(135deg, #fffdf7, #f2f0e6); box-shadow: 0 10px 30px rgba(31,52,44,.07); }.pricing-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--orange), var(--lime)); }.pricing-mark { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 18px 8px 18px 8px; background: #fff0e5; transform: rotate(-3deg); }.pricing-mark img { width: 44px; height: 44px; image-rendering: pixelated; filter: drop-shadow(0 7px 8px rgba(0,0,0,.2)); }.pricing-copy { min-width: 0; }.pricing-copy h3 { margin: 0 0 12px; font-size: 28px; line-height: 1.15; }.pricing-copy h3 small { color: var(--muted); font-size: 12px; font-weight: 750; }.pricing-table { max-width: 590px; overflow: hidden; border: 1px solid #d8d6ca; border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.76); }.pricing-table > div:first-child, .pricing-table > div > div { display: grid; grid-template-columns: 1.4fr .8fr .8fr; }.pricing-table > div:first-child { padding: 8px 11px; color: var(--muted); background: #e9e7de; font-size: 11px; font-weight: 850; }.pricing-table > div:last-child > div { padding: 9px 11px; border-top: 1px solid #dedbd0; font-size: 13px; font-weight: 650; }.pricing-table strong { color: var(--orange); }
.contact-card { min-width: 0; padding: 14px 0 14px 20px; border-left: 1px solid rgba(61,84,67,.15); }.contact-card strong { display: block; margin: 4px 0 11px; color: var(--ink); font-size: 17px; }.contact-links { display: flex; flex-wrap: wrap; gap: 8px; }.contact-link { min-height: 35px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.68); font-size: 11px; font-weight: 850; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }.contact-link:hover { transform: translateY(-2px); border-color: #c5c8bb; box-shadow: 0 7px 16px rgba(31,52,44,.1); }.contact-link img { width: 21px; height: 21px; flex: 0 0 21px; object-fit: contain; }.contact-facebook { color: #2d63b8; }.contact-zalo { color: #087fda; }
.user-notice { margin: 9px 0 0; padding: 7px 9px; border-left: 3px solid #c89235; border-radius: 5px; color: #514429; background: #fff5d8; font-size: 11px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.user-notice strong { font-weight: 900; }.user-notice em { font-style: italic; }.user-notice u { text-underline-offset: 2px; }.user-notice a { color: #176aa3; font-weight: 850; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }


.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 17px; }.section-head h3 { margin: 0; font-size: 22px; }.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }.section-actions { display: flex; align-items: center; gap: 8px; }.grid-layout-button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 850; }.grid-layout-button:hover { background: #ebe9df; }.grid-layout-button i { width: 13px; height: 13px; display: grid; grid-template-columns: repeat(3,3px); grid-auto-rows: 3px; gap: 2px; }.grid-layout-button i::before { content: ""; width: 3px; height: 3px; border-radius: 1px; background: var(--forest); box-shadow: 5px 0 var(--forest),10px 0 var(--forest),0 5px var(--forest),5px 5px var(--forest),10px 5px var(--forest),0 10px var(--forest),5px 10px var(--forest),10px 10px var(--forest); }.grid-layout-button span { min-width: 11px; font-variant-numeric: tabular-nums; }
.section-head h3 small { color: var(--muted); font-size: 12px; font-weight: 700; }
.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.section-title-group #accountCount {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #52645b;
  background: #e9eee7;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.button { min-height: 42px; border-radius: 10px; border: 1px solid transparent; padding: 0 17px; font-weight: 800; transition: transform .18s, box-shadow .18s, background .18s; }.button:hover { transform: translateY(-1px); }.button-primary { color: #fff; background: var(--orange); box-shadow: 0 8px 18px rgba(233,101,45,.22); }.button-subtle { background: #ece9de; color: var(--ink); }
.button-admin { color: #fff; background: var(--forest); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 15px; }
@media (min-width: 761px) { .slot-grid[data-columns="3"] { grid-template-columns: repeat(3,minmax(0,1fr)); }.slot-grid[data-columns="4"] { grid-template-columns: repeat(4,minmax(0,1fr)); }.slot-grid[data-columns="5"] { grid-template-columns: repeat(5,minmax(0,1fr)); }.slot-grid[data-columns="6"] { grid-template-columns: repeat(6,minmax(0,1fr)); } }
.empty-slots { grid-column: 1 / -1; min-height: 150px; display: grid; place-content: center; gap: 7px; padding: 28px; border: 1px dashed #c7c9bc; border-radius: 15px; color: var(--muted); background: rgba(255,253,247,.65); text-align: center; }.empty-slots b { color: var(--ink); font-size: 18px; }.empty-slots span { max-width: 460px; font-size: 13px; line-height: 1.55; }
.slot-card { position: relative; min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: 0 7px 20px rgba(34,49,43,.045); overflow: hidden; }
.slot-card::before { content: ""; position: absolute; height: 4px; inset: 0 100% auto 0; background: var(--orange); transition: .25s; }.slot-card.running::before { right: 0; background: var(--lime); }.slot-card:hover { border-color: #bfc2b4; box-shadow: var(--shadow); }
.slot-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }.slot-expiry { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 7px; border: 1px solid #e2e6d5; border-radius: 999px; color: #56752d; background: #f0f5df; font-size: 9px; font-weight: 800; }.slot-expiry.expired { color: var(--danger); border-color: #efd2ca; background: #f9e8e3; }.slot-state { flex: 0 0 auto; margin-left: auto; display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; background: #eee9df; color: #796e61; font-size: 10px; font-weight: 800; padding: 6px 8px; }.slot-state i { width: 6px; height: 6px; border-radius: 50%; background: #a49788; }.running .slot-state { color: #2f5d3f; background: #e8f0d0; }.running .slot-state i { background: #7a9e34; box-shadow: 0 0 0 3px rgba(122,158,52,.15); }
.slot-account-row { min-width: 0; display: grid; grid-template-columns: minmax(75px,1fr) auto; align-items: center; gap: 10px; margin: 16px 0 14px; }.slot-coins { display: flex !important; align-items: center; gap: 4px; color: #8a6518 !important; font-weight: 800; font-variant-numeric: tabular-nums; }.slot-coins img { width: 16px; height: 16px; flex: 0 0 16px; image-rendering: pixelated; }.slot-coins span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }.slot-runtime { min-width: 128px; padding: 7px 9px; border: 1px solid #e5e2d7; border-radius: 10px; background: #f4f2ea; }

.slot-actions { display: flex; gap: 8px; margin-top: 15px; }.slot-actions button { flex: 1; min-height: 37px; border: 0; border-radius: 8px; font-weight: 800; }.configure { background: #e9e7de; color: var(--ink); }.run { background: var(--forest); color: #fff; }.stop { background: #f7dfd8; color: var(--danger); }

.backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(12,28,23,.42); backdrop-filter: blur(3px); }.detail-panel { position: fixed; z-index: 40; top: 0; right: 0; width: min(600px, 100%); height: 100vh; padding: 26px; background: var(--card); box-shadow: -20px 0 55px rgba(10,30,24,.24); translate: 105% 0; transition: translate .3s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }.detail-panel.open { translate: 0 0; }.detail-panel > header { display: flex; justify-content: space-between; align-items: start; }.detail-panel h3 { font-family: var(--font-display); font-weight: 750; font-size: 31px; letter-spacing: -.035em; margin: 5px 0 0; }.icon-button { border: 1px solid var(--line); background: transparent; width: 38px; height: 38px; border-radius: 10px; font-size: 22px; }.detail-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin: 22px 0 18px; padding: 4px; border-radius: 10px; background: #ebe9df; }.tab { border: 0; border-radius: 7px; padding: 9px; background: transparent; color: var(--muted); font-weight: 750; }.tab.active { color: var(--forest); background: var(--card); box-shadow: 0 2px 9px rgba(0,0,0,.07); }.tab-pane { display: none; }.tab-pane.active { display: block; }.account-fields { display: grid; gap: 8px; }.account-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.account-row label:first-child::before { content: attr(data-index); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 6px; background: var(--forest); color: #fff; font-size: 10px; }
.inventory-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 13px; }.inventory-head h4 { margin: 0; font-size: 18px; }.inventory-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.inventory-head > b { padding: 6px 9px; border-radius: 999px; color: #56752d; background: #e8f0d0; font-size: 10px; }.inventory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.inventory-item { min-width: 0; min-height: 72px; display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #f4f2ea; }.inventory-item > div { min-width: 0; }.inventory-item b, .inventory-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.inventory-item b { font-size: 10px; }.inventory-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }.inventory-empty { grid-column: 1/-1; margin: 0; padding: 36px 15px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; }

label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; } input, select { width: 100%; height: 43px; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fffefb; padding: 0 11px; color: var(--ink); outline: none; }.account-row label:first-child input { margin-top: 6px; } input:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233,101,45,.1); }.switch { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; }.switch input { display: none; }.switch i { position: relative; width: 40px; height: 23px; border-radius: 999px; background: #d1d0c7; }.switch i::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }.switch input:checked + i { background: var(--forest-2); }.switch input:checked + i::after { translate: 17px 0; }.slot-log { min-height: 430px; max-height: 62vh; overflow: auto; margin: 0; border-radius: 12px; padding: 16px; color: #bce4c3; background: #10251f; font: 12px/1.6 Consolas, monospace; white-space: pre-wrap; }

.access-notice { margin: 0 0 14px; padding: 11px 13px; border-radius: 9px; color: #8d3028; background: #f8ded8; font-size: 12px; font-weight: 750; }
.slot-card.expired { opacity: .72; }.slot-card.expired::before { right: 0; background: var(--danger); }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; translate: -50% 25px; opacity: 0; padding: 12px 17px; border-radius: 9px; color: #fff; background: var(--forest); box-shadow: var(--shadow); transition: .25s; pointer-events: none; }.toast.show { opacity: 1; translate: -50% 0; }.toast.error { background: var(--danger); }
.offline-bar { position: fixed; z-index: 101; left: 50%; bottom: 22px; translate: -50% 0; display: flex; align-items: center; gap: 14px; min-width: min(440px, calc(100% - 28px)); padding: 11px 12px 11px 17px; border-radius: 11px; color: #fff; background: var(--danger); box-shadow: var(--shadow); }
.offline-bar span { flex: 1; }.offline-bar button { min-height: 34px; border: 0; border-radius: 7px; padding: 0 12px; color: var(--danger); background: #fff; font-weight: 800; }
.password-backdrop { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8,28,23,.58); backdrop-filter: blur(5px); }.password-modal { width: min(430px,100%); overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 17px; background: var(--card); box-shadow: 0 30px 85px rgba(5,25,19,.36); }.password-modal > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 19px 20px; color: #fff; background: var(--forest); }.password-modal h3 { margin: 5px 0 0; font-size: 23px; }.password-modal .icon-button { color: #fff; border-color: rgba(255,255,255,.2); }.password-modal form { display: grid; gap: 13px; padding: 20px; }.password-modal label { font-size: 11px; }.password-modal input { height: 46px; font-size: 14px; }.password-modal footer { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; margin-top: 5px; }.password-modal footer .button { width: 100%; padding-inline: 10px; }
.forgot-backdrop { position: fixed; z-index: 111; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8,28,23,.62); backdrop-filter: blur(5px); }.forgot-modal { width: min(470px,100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid rgba(255,255,255,.25); border-radius: 17px; background: var(--card); box-shadow: 0 30px 85px rgba(5,25,19,.38); }.forgot-modal > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 19px 20px; color: #fff; background: var(--forest); }.forgot-modal h3 { margin: 5px 0 0; font-size: 23px; }.forgot-modal .icon-button { color: #fff; border-color: rgba(255,255,255,.2); }.forgot-modal form { display: grid; gap: 12px; padding: 20px; }.forgot-modal label { font-size: 11px; }.forgot-modal input { height: 45px; font-size: 14px; }.reset-email-row { display: grid; grid-template-columns: minmax(0,1fr) 105px; align-items: end; gap: 8px; }.reset-email-row .button { height: 45px; margin-top: 6px; padding-inline: 9px; font-size: 11px; }.reset-note { margin: -3px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.45; }.forgot-modal footer { display: grid; grid-template-columns: 1fr 1.45fr; gap: 9px; margin-top: 5px; }.forgot-modal footer .button { width: 100%; padding-inline: 9px; }

@keyframes sweep { to { rotate: 360deg; } } @keyframes float { 50% { transform: translateY(-8px) rotate(4deg); } } @keyframes login-card-in { from { opacity: 0; translate: 22px 0; scale: .98; } }


@media (max-width: 760px) { .login-view { grid-template-columns: 1fr; }.login-art { position: absolute; inset: 0; min-height: 100%; opacity: .72; }.login-card { position: relative; padding: 34px 25px; align-self: end; background: linear-gradient(transparent, rgba(8,30,24,.94) 22%); }.login-card h1 { font-size: 46px; }.app-shell { display: block; }.topbar { align-items: flex-start; }.topbar h2 { font-size: 25px; }.topbar-actions { gap: 7px; }.user-chip { padding-right: 6px; }.user-chip span { display: none; } main { width: auto; margin: 0; padding: 24px 15px 55px; }.slot-grid { grid-template-columns: 1fr; }.detail-panel { padding: 20px 16px; } }
@media (max-width: 760px) { .pricing-card { grid-template-columns: 54px minmax(0,1fr); gap: 13px; margin: 22px 0 32px; padding: 17px 16px; }.pricing-mark { width: 52px; height: 52px; border-radius: 13px 6px 13px 6px; }.pricing-mark img { width: 34px; height: 34px; }.pricing-copy h3 { font-size: 22px; }.pricing-copy pre { font-size: 12px; }.pricing-table > div:first-child { font-size: 9px; }.pricing-table > div:last-child > div { font-size: 12px; }.contact-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 2px; padding: 12px 0 0; border-top: 1px solid rgba(61,84,67,.15); border-left: 0; }.contact-card strong { margin: 2px 0 0; font-size: 14px; }.contact-links { margin-left: auto; } }
@media (max-width: 760px) { .contact-card { flex-wrap: wrap; }.user-notice { flex: 0 0 100%; width: 100%; margin-top: 2px; } }
@media (max-width: 430px) { .account-row { grid-template-columns: 1fr; }.section-head p { display: none; }.slot-card { padding: 16px; } }
@media (max-width: 760px) { .login-art { --radar-size: min(78vw, 340px); }.radar-logo { width: 58px; height: 58px; } }
@media (max-width: 760px) { .inventory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.slot-actions { gap: 6px; }.slot-actions button { padding-inline: 5px; font-size: 11px; } }
@media (max-width: 390px) { .inventory-grid { grid-template-columns: 1fr; } }

@media (min-width: 761px) {
  .backdrop { background: rgba(12,28,23,.08); backdrop-filter: none; }
  .detail-panel { top: 76px; right: 22px; width: min(470px,calc(100% - 44px)); height: auto; max-height: calc(100vh - 98px); max-height: calc(100dvh - 98px); padding: 20px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 65px rgba(10,30,24,.2); translate: calc(100% + 35px) 0; }
  .detail-panel h3 { font-size: 25px; }
  .detail-tabs { margin: 16px 0 14px; }
  .inventory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inventory-item { min-height: 64px; }
  .slot-log { min-height: 330px; max-height: 56vh; }
  
}

@media (max-width: 760px) {
  .backdrop { background: rgba(12,28,23,.18); backdrop-filter: none; }
  .detail-panel { top: auto; right: 0; bottom: 0; width: 100%; height: min(86vh,760px); height: min(86dvh,760px); padding: 18px 16px; border: 1px solid var(--line); border-radius: 20px 20px 0 0; translate: 0 105%; }
  .detail-panel h3 { font-size: 24px; }
  .detail-tabs { margin: 15px 0 13px; }
  
}
.slot-log { font-family: var(--font-ui) !important; }

/* Keep card typography on a compact, high-contrast scale. */
.slot-card { padding: 18px; background: linear-gradient(145deg, #fffefb, #faf9f2); }
.slot-card-head { align-items: center; }

.slot-expiry { color: #48652c; background: #edf4d9; font-size: 10px; font-weight: 850; }
.slot-state { color: #47564f; background: #e9eee7; font-size: 10px; font-weight: 850; }
.slot-account-row { margin: 17px 0 15px; }

.slot-coins { color: #765713 !important; font-size: 12px !important; font-weight: 850 !important; }
.slot-runtime { border-color: #d8ddd3; background: #f0f3ed; }


.slot-actions { gap: 8px; margin-top: 16px; }
.slot-actions button { min-height: 40px; color: var(--ink); font-size: 12px; font-weight: 850; letter-spacing: -.01em; }
.slot-actions .configure { background: #e8e9e2; }

@media (max-width: 760px) { .login-view { background-position: 42% center; }.login-view::before { background: linear-gradient(180deg, rgba(8,38,33,.04) 0%, rgba(8,38,33,.12) 44%, rgba(8,31,27,.7) 100%); }.login-art { --radar-size: min(66vw, 280px); opacity: .82; }.radar, .material-orbit { left: 50%; top: 28%; }.login-card { width: min(410px, calc(100% - 28px)); margin: 0 auto 16px; padding: 24px 22px; border-radius: 20px; background: radial-gradient(circle at 100% 0, rgba(186,214,111,.11), transparent 34%), linear-gradient(145deg, rgba(9,46,39,.94), rgba(7,31,27,.91)); backdrop-filter: blur(14px) saturate(1.1); } }

/* Responsive hardening for phones, tablets and short landscape screens. */
@media (min-width: 761px) and (max-width: 1199px) {
  main { width: calc(100% - 48px); }
  
  
}


@media (max-width: 760px) {
  .login-view { min-height: 100svh; overflow-x: hidden; overflow-y: auto; }
  .login-card { margin-bottom: max(12px, env(safe-area-inset-bottom)); }
  main {
    width: 100%;
    padding: max(20px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) calc(55px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }
  .topbar { flex-wrap: wrap; gap: 14px; }
  .topbar-brand { min-width: 0; }
  .topbar-brand > div { min-width: 0; }
  .topbar h2 { overflow-wrap: anywhere; }
  .topbar-actions { max-width: 100%; margin-left: auto; }
  .button, .icon-button, .slot-actions button { min-height: 44px; }
  
  
  
  
  .detail-panel {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }
  .detail-panel > header { gap: 12px; }
  .detail-panel h3 { font-size: 27px; }
  
  .slot-log { min-height: 300px; max-height: calc(100dvh - 210px); }
  .toast { max-width: calc(100% - 24px); bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center; }
  .offline-bar { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .auth-heading { margin-bottom: 19px; }
  .auth-logo { width: 43px; height: 43px; flex-basis: 43px; }
  .auth-heading h2 { font-size: 25px; }
  .auth-form { gap: 13px; }
  .auth-form input, .auth-form .button { min-height: 48px; height: 48px; }
  .topbar-actions { width: 100%; margin-left: 0; }
  .topbar-actions .user-chip { flex: 1; min-width: 48px; }
  .topbar-actions .user-menu-wrap { flex: 1; min-width: 48px; }
  .user-menu { width: min(285px, calc(100vw - 28px)); right: auto; left: 0; }
  .topbar-actions .button { padding-inline: 12px; }
  .section-head { align-items: center; flex-wrap: wrap; gap: 12px; }
  .section-actions { margin-left: auto; }
  .section-head > div { min-width: 0; }
  
  
  
  .slot-card-head { gap: 10px; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}

/* Animated Avatar world background without blur, tint, or brightness overlays. */
html { background: #66bfe1; }
body {
  position: relative;
  isolation: isolate;
  background: transparent;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -2%;
  pointer-events: none;
  background: #66bfe1 url("/assets/ui/avatar-world-banner.png") center center / cover no-repeat;
  transform: translate3d(-1.4%, -.6%, 0);
  transform-origin: center;
  will-change: transform;
  animation: avatar-world-drift 9s ease-in-out infinite alternate !important;
}
.noise, .login-art::before { display: none; }
.login-view, .app-shell { background: transparent; }
.login-view::before { display: none; }
.radar { backdrop-filter: none; }

@keyframes avatar-world-drift {
  from { transform: translate3d(-1.4%, -.6%, 0); }
  to { transform: translate3d(1.4%, .6%, 0); }
}



@media (max-width: 360px) {
  .brand-mark { width: 39px; height: 39px; flex: 0 0 39px; }
  .topbar h2 { font-size: 22px; }
  .topbar-actions { display: grid; grid-template-columns: 1fr auto auto; }
  .topbar-actions { grid-template-columns: 1fr auto; }
  .topbar-actions .button { font-size: 12px; padding-inline: 9px; }
  
  
  
  .slot-card { padding: 14px 12px; }
  
  
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 900px) {
  .login-view { grid-template-columns: minmax(180px, .75fr) minmax(300px, 1.25fr); align-items: start; overflow-y: auto; }
  .login-art { position: sticky; inset: auto; top: 0; min-height: 100vh; min-height: 100dvh; opacity: .72; }
  .login-art { --radar-size: min(38vw, 210px); }
  .radar, .material-orbit { left: 50%; top: 50%; }
  .radar-logo { width: 48px; height: 48px; }
  .login-card { align-self: start; justify-self: center; margin: 12px auto; padding: 18px 20px; }
  .auth-heading { margin-bottom: 12px; }
  .auth-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .auth-heading h2 { font-size: 20px; }
  .auth-secondary { margin-top: 10px; padding-top: 9px; }
  .auth-form { gap: 8px; }
  .auth-form input { height: 44px; }
  .login-hint { margin-block: 10px 0; }
}

@media (orientation: landscape) and (max-height: 400px) and (max-width: 700px) {
  .login-view { grid-template-columns: 120px minmax(280px, 1fr); }
  .login-art { --radar-size: 112px; }
  .radar-logo { width: 38px; height: 38px; }
}
@media (max-width: 760px) {
  .backdrop { background: rgba(12,28,23,.18); backdrop-filter: none; }
  .detail-panel { top: auto; right: 0; bottom: 0; width: 100%; height: min(86vh,760px); height: min(86dvh,760px); max-height: 86vh; max-height: 86dvh; padding: 18px max(14px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); border: 1px solid var(--line); border-radius: 20px 20px 0 0; translate: 0 105%; }
  .detail-panel h3 { font-size: 24px; }
  
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Compact account panel. */
.detail-panel { font-size: 11px; }
.detail-panel > header .eyebrow { font-size: 8px; }
.detail-panel h3 { margin-top: 3px; font-size: 22px; }
.detail-tabs { grid-template-columns: repeat(2,1fr); margin: 12px 0; }
.detail-tabs .tab { min-height: 34px; padding: 6px; font-size: 11px; }

.account-fields { gap: 6px; }
.detail-panel label { font-size: 10px; }
.detail-panel input, .detail-panel select { height: 36px; margin-top: 4px; padding-inline: 9px; font-size: 11px; }


.compact-slot-log { min-height: 120px; max-height: 180px; padding: 10px; border-radius: 9px; font-size: 10px; line-height: 1.45; }
.config-action-grid { position: sticky; bottom: -20px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 12px -20px -20px; padding: 11px 20px; border-top: 1px solid var(--line); background: rgba(255,253,247,.96); backdrop-filter: blur(8px); }
.config-action-grid .button { width: 100%; min-height: 35px; padding: 0 5px; border-radius: 8px; font-size: 10px; }
.inventory-head { margin-bottom: 9px; }
.inventory-head h4 { font-size: 15px; }
.inventory-head p { font-size: 9px; }
.inventory-item { min-height: 57px; padding: 7px; }
.inventory-item b { font-size: 9px; }

@media (max-width: 760px) {
  .detail-panel { padding-top: 14px; }
  .config-action-grid { bottom: calc(-18px - env(safe-area-inset-bottom)); grid-template-columns: repeat(2,minmax(0,1fr)); margin: 12px -14px calc(-18px - env(safe-area-inset-bottom)); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .config-action-grid .button { min-height: 38px; }
}

.slot-coins { display: grid !important; grid-template-columns: 21px minmax(0,1fr); align-items: center; gap: 6px; }
.section-head, .section-head *, .slot-grid, .slot-grid * { font-family: Bahnschrift,"Segoe UI",Tahoma,sans-serif; }
.slot-card, .slot-card * { text-overflow: clip; }
.slot-coins span { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.slot-expiry { max-width: none; overflow: visible; white-space: normal; text-align: center; }


.slot-coins img { width: 18px; height: 18px; justify-self: center; object-fit: contain; image-rendering: pixelated; }

.inventory-grid { grid-template-columns: repeat(auto-fill,minmax(43px,1fr)); gap: 4px; align-items: start; }
.inventory-game-slot { position: relative; width: 100%; min-width: 0; min-height: 0; aspect-ratio: 1; display: grid; place-items: center; padding: 3px; border: 1px solid #d6d5ca; border-radius: 6px; background: linear-gradient(145deg,#fffef8,#eae9df); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.inventory-game-slot:hover { border-color: #aeb5a7; background: #fffdf5; }


.inventory-amount { position: absolute; z-index: 1; right: 3px; bottom: 2px; max-width: calc(100% - 6px); overflow: hidden; color: #fff !important; font-family: var(--font-ui); font-size: 9px !important; font-weight: 900 !important; line-height: 1; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; text-shadow: -1px -1px 0 #27342e,1px -1px 0 #27342e,-1px 1px 0 #27342e,1px 1px 0 #27342e; }
.inventory-amount { right: 2px; bottom: 2px; padding: 1px 3px; border-radius: 3px; color: var(--ink) !important; background: rgba(255,255,255,.9); font-family: var(--font-ui) !important; font-size: 10px !important; font-weight: 850 !important; line-height: 1.15; letter-spacing: 0; text-shadow: none; }

.slot-identity { min-width: 0; display: flex; align-items: center; gap: 8px; }.slot-identity > div { min-width: 0; display: grid; justify-items: start; gap: 4px; }.slot-number-badge { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 2px solid #bcc8b7; border-radius: 50%; color: var(--ink); background: #f8f8f1; font-family: var(--font-display); font-size: 17px; font-weight: 850; }.slot-tagname { max-width: 150px; color: var(--ink); font-size: 12px; font-weight: 850; line-height: 1.15; overflow-wrap: anywhere; }.slot-identity .slot-expiry { margin: 0; padding: 3px 6px; font-size: 8px; }.slot-state.server-state { gap: 6px; color: #274e42; background: #e7efe8; }.slot-state.server-state img { width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; }.slot-state.server-state span { white-space: nowrap; }
.slot-number-badge.trial { width: auto; min-width: 52px; padding: 0 7px; flex-basis: auto; border-radius: 19px; font-size: 12px; text-transform: uppercase; }
.slot-number-badge .slot-account-avatar { display: none; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.slot-number-badge.has-account-avatar { overflow: hidden; border: 0; border-radius: 0; background: transparent; }
.slot-number-badge.has-account-avatar > span { display: none; }
.slot-number-badge.has-account-avatar .slot-account-avatar { display: block; }
.slot-maintenance { align-self: flex-start; margin: 1px 0 7px; padding: 4px 7px; border: 1px solid #e7b6aa; border-radius: 999px; color: #9f392f; background: #fbe5df; font-size: 9px; font-weight: 900; }
@media (max-width: 390px) { .inventory-grid { grid-template-columns: repeat(auto-fill,minmax(40px,1fr)); gap: 4px; } }

/* Keep every account card aligned while allowing long account names to wrap. */
.slot-card {
  display: flex;
  flex-direction: column;
}
.slot-card-head {
  min-height: 48px;
}
.slot-account-row {
  min-height: 66px;
  margin: 13px 0 15px;
}


.slot-actions {
  margin-top: auto;
  padding-top: 16px;
}


/* Compact account card layout. */
.slot-card {
  padding: 14px 15px;
}
.slot-card-head {
  min-height: 42px;
}
.slot-account-row {
  min-height: 58px;
  margin: 10px 0 11px;
}
.slot-state.server-state {
  min-width: 88px;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #d9e4d8;
  color: #315647;
  background: #eef4ed;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}


.slot-actions {
  padding-top: 10px;
}
.slot-card.running::before {
  display: none;
}

.slot-identity {
  flex: 1;
  overflow: hidden;
}
.slot-identity > div {
  flex: 1;
  max-width: 150px;
  overflow: hidden;
}
.slot-tagname {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}
.slot-identity .slot-coins {
  display: grid !important;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 3px;
  color: #765713 !important;
  font-size: 10px !important;
  line-height: 1.15;
}
.slot-identity .slot-coins img {
  width: 15px;
  height: 15px;
}
.slot-identity .slot-coins span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.account-row label:first-child::before {
  content: none;
  display: none;
}

.slot-card {
  overflow: visible;
}
.slot-expiry-corner {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  margin: 0;
  translate: 0 -50%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 8px rgba(35, 53, 43, .1);
}
.slot-corner-flags {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  translate: 0 -50%;
}
.slot-corner-flags .slot-expiry-corner {
  position: static;
  translate: none;
}
.invalid-account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 7px;
  border: 1px solid #e9b9ae;
  border-radius: 999px;
  color: #a33d31;
  background: #fae6e0;
  box-shadow: 0 3px 8px rgba(83,38,31,.08);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.slot-state.stopped-state {
  border: 1px solid #e8b7ad;
  color: #a6382d;
  background: #f9e2dc;
}
.slot-state.stopped-state i {
  background: #c84a3d;
  box-shadow: 0 0 0 3px rgba(200,74,61,.12);
}
.slot-card .slot-state {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 12px;
  margin: 0;
  translate: none;
  box-shadow: 0 3px 8px rgba(35,53,43,.09);
}
.slot-coins > span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}


.slot-coins em {
  color: var(--gain-blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}
@media (max-width: 480px) {
  .slot-card .slot-state { top: 12px; right: 9px; }
  .slot-coins > span { gap: 3px; }
  .slot-coins em { font-size: 8px; }
}
.slot-account-row {
  display: block;
  min-height: 0;
  margin: 9px 0 10px;
}
.slot-runtime {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
}
.slot-runtime-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.slot-runtime-line span {
  color: #68736b;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.slot-runtime-line span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: start;
}
.slot-runtime-line b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.slot-runtime-line span:last-child {
  justify-self: end;
}
.slot-runtime-line span:first-child:last-child {
  justify-self: start;
}

.slot-runtime-combined .slot-runtime-line + .slot-runtime-line {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #dedbd0;
}
.slot-fish-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 4px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #dedbd0;
}
.slot-fish-count {
  display: flex;
  min-width: 0;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  padding: 3px 2px;
  border: 1px solid #d9ddd1;
  border-radius: 7px;
  background: #fffef9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.slot-fish-count img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
}
.slot-fish-count b { font-size: 8px; font-weight: 900; line-height: 1; }
.slot-fish-fallback { font-size: 14px; line-height: 1; }

@media (max-width: 390px) {
  .slot-runtime-line { gap: 6px; }
  .slot-runtime-line span { font-size: 8px; }
  .slot-runtime-line b { font-size: 9px; }
  .slot-fish-counts { gap: 3px; }
  .slot-fish-count { min-width: 29px; padding-inline: 4px; }
}

.slot-actions {
  gap: 6px;
  padding-top: 8px;
}
.slot-actions button {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1;
}
.slot-actions .configure {
  color: #fff;
  background: var(--orange);
}
.slot-actions .configure:hover {
  background: #d95624;
}

@media (min-width: 761px) {
  .detail-panel {
    width: min(400px, calc(100% - 28px));
    padding: 14px;
  }
  .detail-panel h3 { font-size: 20px; }
  .detail-panel > header { gap: 8px; }
  .detail-tabs { margin: 10px 0; padding: 3px; }
  .detail-tabs .tab { min-height: 29px; padding: 5px; font-size: 10px; }
  
  .account-fields { gap: 5px; }
  .detail-panel input, .detail-panel select { height: 32px; margin-top: 3px; padding-inline: 8px; font-size: 10px; }
  
  .compact-slot-log { min-height: 90px; max-height: 140px; padding: 8px; font-size: 9px; line-height: 1.35; }
  .config-action-grid { gap: 5px; margin-top: 8px; padding: 8px 14px; }
  .config-action-grid .button { min-height: 31px; font-size: 9px; }
}

@media (max-width: 760px) {
  .detail-panel { height: min(80vh, 640px); height: min(80dvh, 640px); padding: 14px 12px; }
  .detail-panel h3 { font-size: 20px; }
  .detail-tabs { margin: 10px 0; }
  .compact-slot-log { min-height: 90px; max-height: 135px; }
}

.detail-panel h3.detail-slot-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  border: 2px solid #bcc8b7;
  border-radius: 50%;
  color: var(--ink);
  background: #f8f8f1;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.detail-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.detail-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.slot-state.server-state {
  min-width: 70px;
  gap: 4px;
  padding: 4px 7px;
  font-size: 9px;
}
.slot-state.server-state img {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.slot-state {
  min-width: 70px;
  min-height: 24px;
  justify-content: center;
  gap: 4px;
  padding: 4px 7px;
  font-size: 9px;
  line-height: 1;
}

/* Responsive safeguards for tablets, phones, and narrow landscape screens. */
img, svg, video, canvas { max-width: 100%; }

@media (min-width: 761px) and (max-width: 1199px) {
  main { width: 92%; }
  .topbar { flex-wrap: wrap; }
  .slot-grid[data-columns] {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  }
  .pricing-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }
  .pricing-mark { width: 58px; height: 58px; }
  .contact-card {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-top: 1px solid rgba(61,84,67,.15);
    border-left: 0;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .slot-grid[data-columns="5"], .slot-grid[data-columns="6"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1600px) and (max-width: 1999px) {
  .slot-grid[data-columns="6"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  main {
    width: 100%;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(42px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .topbar { align-items: center; gap: 10px; }
  .topbar-brand { flex: 1; min-width: 0; }
  .topbar h2 { font-size: clamp(20px, 6vw, 25px); }
  .topbar-actions { width: auto; max-width: 100%; margin-left: auto; }
  .topbar-actions .button { min-height: 38px; padding-inline: 10px; font-size: 10px; }
  .user-chip { min-height: 42px; }
  .user-chip img { width: 30px; height: 30px; flex-basis: 30px; }
  .section-head { gap: 10px; }
  .section-head h3 { font-size: 19px; }
  .grid-layout-button { min-height: 32px; padding-inline: 8px; }
  .slot-grid { gap: 14px; }
  .slot-card { width: 100%; max-width: 520px; margin-inline: auto; }
  .slot-expiry-corner { left: 12px; }
  .pricing-card { width: 100%; }
  .pricing-table { width: 100%; overflow-x: auto; }
  .pricing-table > div:first-child, .pricing-table > div > div { min-width: 270px; }
  .contact-card { flex-wrap: wrap; }
  .contact-links { width: 100%; margin-left: 0; }
  .contact-link { flex: 1; justify-content: center; }
  .detail-panel {
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    padding-inline: max(12px, env(safe-area-inset-left));
  }
  .account-row { grid-template-columns: 1fr; }
  
  .config-action-grid { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .password-backdrop, .forgot-backdrop { padding: 10px; }
  .password-modal, .forgot-modal { max-height: calc(100dvh - 20px); overflow-y: auto; }
}

@media (max-width: 480px) {
  .login-card { width: 100%; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
  .auth-heading h2 { font-size: 23px; }
  .topbar-actions { width: 100%; margin-left: 0; }
  .topbar-actions .user-menu-wrap { flex: 1; }
  .topbar-actions .user-chip { width: 100%; }
  
  
  
  
  .pricing-card { grid-template-columns: 42px minmax(0, 1fr); padding: 14px 12px; }
  .pricing-mark { width: 40px; height: 40px; }
  .pricing-mark img { width: 27px; height: 27px; }
  .pricing-copy h3 { font-size: 18px; }
  .slot-card { padding: 13px 12px; }
  .slot-number-badge { width: 34px; height: 34px; flex-basis: 34px; font-size: 14px; }
  .slot-identity > div { max-width: min(150px, 46vw); }
  .slot-tagname { font-size: 11px; }
  .slot-runtime { padding-inline: 7px; }
  .slot-runtime-line { gap: 5px; }
  
  
  .reset-email-row { grid-template-columns: 1fr; }
  .reset-email-row .button { width: 100%; margin-top: 0; }
  .password-modal footer, .forgot-modal footer { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
  main { padding-inline: 8px; }
  
  
  
  .section-head { align-items: flex-start; }
  .grid-layout-button span { display: none; }
  .slot-runtime-line { gap: 3px; }
  .slot-runtime-line span { font-size: 7px; }
  .slot-runtime-line b { font-size: 8px; }
  
  
  
  .config-action-grid { grid-template-columns: 1fr 1fr; }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 900px) {
  main { padding-top: 12px; }
  .detail-panel { height: 96dvh; max-height: 96dvh; }
  .compact-slot-log { min-height: 70px; max-height: 100px; }
}

@media (max-width: 760px) {
  body.detail-open { overflow: hidden; }
  .backdrop { overscroll-behavior: none; }
  .detail-panel {
    top: auto;
    right: 8px;
    bottom: 0;
    width: calc(100% - 16px);
    height: min(86dvh, 680px);
    max-height: calc(100dvh - 8px);
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    translate: 0 calc(100% + 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .detail-panel.open { translate: 0 0; }
  .detail-panel > header {
    position: sticky;
    z-index: 4;
    top: -12px;
    margin: -1px 0 0;
    padding: 1px 0 7px;
    background: var(--card);
  }
  .detail-panel .icon-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }
  .detail-tabs {
    margin: 7px 0 9px;
    padding: 3px;
  }
  .detail-tabs .tab {
    min-height: 31px;
    padding: 5px;
    font-size: 10px;
  }
  .detail-panel form, .detail-panel .tab-pane { min-width: 0; }
  .detail-panel input, .detail-panel select { min-width: 0; }
  .compact-slot-log {
    width: 100%;
    min-height: 100px;
    max-height: 150px;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .farm-settings-disclosure { scroll-margin-top: 52px; }
  .config-action-grid {
    z-index: 5;
    bottom: calc(-12px - env(safe-area-inset-bottom));
    margin: 10px -12px calc(-12px - env(safe-area-inset-bottom));
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--card);
    backdrop-filter: none;
  }
  .config-action-grid .button {
    min-height: 34px;
    font-size: 9px;
  }
  .inventory-grid { width: 100%; }
}

@media (max-width: 380px) {
  .detail-panel {
    right: 4px;
    width: calc(100% - 8px);
    height: min(90dvh, 680px);
    padding-inline: 10px;
  }
  .config-action-grid {
    margin-inline: -10px;
    padding-inline: 10px;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 900px) {
  .detail-panel {
    right: 6px;
    bottom: 4px;
    width: min(430px, calc(100% - 12px));
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
    border-radius: 16px;
  }
}

.admin-icon { display: none; }

@media (max-width: 760px) {
  .topbar {
    flex-wrap: nowrap;
    align-items: center;
  }
  .topbar-brand {
    flex: 0 0 auto;
  }
  .topbar-brand > div {
    display: none;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
  .topbar-actions {
    width: auto;
    max-width: none;
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    margin-left: auto;
  }
  .topbar-actions .button-admin {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 11px;
  }
  .admin-icon {
    display: block;
    font-size: 17px;
    line-height: 1;
  }
  .admin-label {
    display: none;
  }
  .topbar-actions .user-menu-wrap {
    flex: 0 0 auto;
  }
  .topbar-actions .user-chip {
    width: 40px;
    height: 40px;
    min-height: 40px;
    gap: 0;
    padding: 4px;
    border-radius: 11px;
  }
  .topbar-actions .user-chip img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .topbar-actions .user-chip > span, .topbar-actions .menu-chevron {
    display: none;
  }
  .user-menu {
    right: 0;
    left: auto;
    width: min(275px, calc(100vw - 24px));
  }
}

.detail-panel > header {
  align-items: center;
}
.detail-heading {
  flex: 0 0 auto;
}
.detail-panel > header .detail-tabs {
  flex: 1;
  min-width: 0;
  max-width: 230px;
  margin: 0 auto;
}
.detail-panel .account-row label:first-child input, .detail-panel .account-row label:last-child input {
  margin-top: 3px;
}
.config-action-grid .button, .config-action-grid .run, .config-action-grid .stop, .config-action-grid .button-primary, .config-action-grid .button-subtle {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #eceae2;
  box-shadow: none;
}
.config-action-grid .button:hover {
  color: var(--ink);
  background: #dfddd4;
  box-shadow: none;
  transform: none;
}
.pricing-card::after {
  display: none;
}
.contact-links {
  width: 100%;
  max-width: 220px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.contact-link {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 8px;
}
.toast {
  z-index: 160;
}
.detail-panel > header {
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .detail-panel > header {
    margin: -1px 0 8px;
  }
}

/* Quick configuration layout. */
.quick-config-card {
  position: relative;
  margin-top: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(244,242,233,.92));
  overflow: hidden;
}
.quick-config-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--forest-2);
}

.fishing-quick-card::before { background: #4d9d87; }
.farm-quick-card::before { background: #94ad49; }
.quick-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-left: 2px;
}
.quick-card-title b { color: var(--ink); font-size: 12px; }
.quick-card-title small { color: var(--muted); font-size: 8px; text-align: right; }
.farm-card-title { align-items: center; margin-bottom: 9px; }
.farm-settings-button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #df7138;
  border-radius: 7px;
  color: #fff;
  background: #e97840;
  font-size: 9px;
  font-weight: 850;
  box-shadow: none;
}
.farm-settings-button:hover { border-color: #c85e2b; background: #d96531; }
.farm-settings-disclosure:not([open]) { display: none; }
.farm-settings-disclosure[open] { margin-top: 9px; }
.farm-settings-disclosure[open] > .farm-settings-native-summary {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.farm-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 1px 9px;
  border-bottom: 1px solid var(--line);
}
.farm-settings-header b { color: var(--ink); font-size: 11px; }
.farm-settings-header button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #e4b9ae;
  border-radius: 6px;
  color: #a34034;
  background: #fae8e2;
  font-size: 8px;
  font-weight: 850;
}
.farm-settings-header button:hover { border-color: #d89584; background: #f6dcd4; }
.account-quick-card .account-row { gap: 7px; }
.native-mode-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.mode-choice-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
}
.mode-choice-grid button {
  min-width: 0;
  min-height: 35px;
  padding: 5px 7px;
  border: 1px solid #d7d5ca;
  border-radius: 9px;
  color: var(--muted);
  background: #fffef9;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.mode-choice-grid button:hover { border-color: #bbbcb0; color: var(--ink); }
.mode-choice-grid button.active {
  border-color: #e97840;
  color: #853716;
  background: #fff0e6;
  box-shadow: inset 0 0 0 1px rgba(233,101,45,.12);
}
.mode-choice-grid button:disabled { cursor: not-allowed; opacity: .52; }
.quick-fishing-grid { margin-top: 0; gap: 7px; }
.green-diamond-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  margin-top: 8px;
}
.green-diamond-options .compact-checkbox {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef9;
  font-size: 9px;
}
.green-diamond-options .compact-checkbox input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  accent-color: var(--forest-2);
  box-shadow: none;
}
.green-diamond-options .compact-checkbox span { min-width: 0; line-height: 1.2; }


.farm-quick-row {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
  align-items: end;
  gap: 8px;
}
.farm-steal-switch {
  min-height: 36px;
  justify-content: space-between;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffef9;
}
.quick-disclosure {
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f5ee;
  overflow: hidden;
}
.quick-disclosure > summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.quick-disclosure > summary::-webkit-details-marker { display: none; }
.quick-disclosure > summary span { min-width: 0; }
.quick-disclosure > summary b, .quick-disclosure > summary small { display: block; }
.quick-disclosure > summary b { color: var(--ink); font-size: 10px; }
.quick-disclosure > summary small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.quick-disclosure > summary em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--forest);
  background: #e6ecde;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}
.quick-disclosure[open] > summary { border-bottom: 1px solid var(--line); background: #efeee6; }
.farm-settings-disclosure .farm-layout-editor {
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.log-disclosure { margin-bottom: 8px; }
.log-disclosure .compact-slot-log {
  margin: 0;
  border-radius: 0;
  max-height: 190px;
}

@media (min-width: 761px) {
  .detail-panel { width: min(520px, calc(100% - 28px)); }
}
@media (max-width: 520px) {
  .quick-config-card { padding: 10px 9px; }
  .quick-card-title { display: block; }
  .farm-card-title { display: flex; }
  .quick-card-title small { display: block; margin-top: 2px; text-align: left; }
  .mode-choice-grid button { min-height: 38px; padding-inline: 4px; font-size: 8px; }
  .farm-quick-row { grid-template-columns: 1fr; }
  .farm-steal-switch { justify-content: flex-start; }
}

/* Forgot-password dialog follows the same compact visual language as login. */
.forgot-backdrop {
  padding: 12px;
  background: rgba(8, 28, 23, .42);
  backdrop-filter: none;
}
.forgot-modal {
  width: min(360px, 100%);
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: rgba(25, 67, 56, .97);
  box-shadow: none;
}
.forgot-modal > header {
  align-items: center;
  padding: 17px 18px 8px;
  background: transparent;
}
.forgot-modal > header .eyebrow { color: var(--lime); }
.forgot-modal h3 { margin-top: 3px; font-size: 21px; }
.forgot-modal .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.09);
}
.forgot-modal form { gap: 8px; padding: 10px 18px 18px; }
.forgot-modal label { color: #e1ece7; font-size: 11px; }
.forgot-modal input {
  height: 42px;
  margin-top: 5px;
  border: 1px solid rgba(225,239,232,.24);
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.09);
  box-shadow: none;
  font-size: 13px;
}
.forgot-modal input::placeholder { color: #a9beb6; }
.forgot-modal input:focus { border-color: var(--lime); box-shadow: none; }
.reset-email-row { grid-template-columns: minmax(0,1fr) 82px; gap: 7px; }
.reset-email-row .button {
  width: auto;
  height: 42px;
  min-height: 42px;
  margin-top: 5px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: none;
}
.reset-note { margin: 0 0 2px; color: #aec1ba; font-size: 9px; }
.forgot-modal footer {
  grid-template-columns: .8fr 1.35fr;
  gap: 7px;
  margin-top: 3px;
}
.forgot-modal footer .button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  font-size: 12px;
}
.forgot-modal footer .button-subtle { color: #fff; background: rgba(255,255,255,.1); }
.forgot-modal footer .button-primary { background: var(--orange); }

@media (max-width: 380px) {
  .forgot-backdrop { padding: 8px; }
  .forgot-modal { width: min(340px, 100%); border-radius: 14px; }
  .forgot-modal > header { padding: 14px 14px 6px; }
  .forgot-modal h3 { font-size: 19px; }
  .forgot-modal form { padding: 8px 14px 14px; }
  .reset-email-row { grid-template-columns: minmax(0,1fr) 76px; }
}

/* Compact, flat login panel that scales cleanly without decorative shadows. */
.login-view::before { display: none; }
.login-card {
  width: min(360px, calc(100% - 28px));
  padding: 22px;
  border: 0;
  border-radius: 16px;
  background: rgba(25, 67, 56, .94);
  box-shadow: none;
  backdrop-filter: none;
}
.login-card::before { display: none; }
.auth-heading { gap: 10px; margin-bottom: 18px; }
.auth-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: #346f5d;
  box-shadow: none;
  transform: none;
}
.auth-logo img { filter: none; }
.auth-heading h2 { font-size: 24px; }
.auth-form { gap: 12px; }
.auth-form input {
  height: 46px;
  margin-top: 6px;
  border: 1px solid rgba(225,239,232,.24);
  border-radius: 10px;
  background-color: rgba(255,255,255,.09);
  box-shadow: none;
}
.auth-form input:focus {
  border-color: var(--lime);
  box-shadow: none;
}
.auth-form .button {
  min-height: 46px;
  border-radius: 10px;
  box-shadow: none;
}
.auth-form .button:hover, .auth-form .button:active { box-shadow: none; }
.auth-secondary { margin-top: 13px; padding-top: 12px; }

@media (max-width: 760px) {
  .login-view { grid-template-columns: 1fr; }
  .login-card {
    width: min(360px, calc(100% - 24px));
    margin: 0 auto max(12px, env(safe-area-inset-bottom));
    padding: 20px 18px;
    border-radius: 14px;
    background: rgba(25, 67, 56, .96);
  }
  .auth-heading h2 { font-size: 22px; }
  .auth-form input, .auth-form .button { height: 44px; min-height: 44px; }
}
@media (max-width: 380px) {
  .login-card { width: calc(100% - 16px); padding: 18px 15px; }
  .auth-heading h2 { font-size: 20px; }
  .auth-kicker { font-size: 10px; }
  .auth-form label { font-size: 12px; }
  .auth-form input { font-size: 14px; }
}


/* Avatar fishing and farm presentation. */
.material-orbit span {
  position: absolute;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  translate: -50% -50%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(7,48,43,.68);
  box-shadow: 0 9px 24px rgba(0,0,0,.3);
  font-size: 27px;
  animation: float 4s ease-in-out infinite;
}
.detail-tabs { grid-template-columns: repeat(2,1fr); }
.fishing-config-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin-top: 11px;
}


.farm-inventory-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
}
.farm-inventory-icon img {
  max-width: 27px;
  max-height: 27px;
  object-fit: contain;
  image-rendering: pixelated;
}

.farm-layout-editor {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 13px;
  border: 1px solid #dcd9ce;
  border-radius: 13px;
  background: #f7f5ee;
}
.farm-layout-editor > header, .farm-layout-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.farm-layout-editor > header b, .farm-layout-editor > header small, .farm-layout-title b, .farm-layout-title small {
  display: block;
}
.farm-layout-editor > header b { color: var(--ink); font-size: 13px; }
.farm-layout-editor > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.farm-layout-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.farm-layout-title { position: relative; }
.farm-layout-title-actions button {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #e4b9ae;
  border-radius: 6px;
  color: #a34034;
  background: #fae8e2;
  font-size: 8px;
  font-weight: 850;
}
.farm-layout-title-actions button:hover {
  border-color: #d89584;
  background: #f6dcd4;
}
.farm-layout-block {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e3dfd4;
  border-radius: 11px;
  background: #fffdf8;
}
.farm-layout-title { margin-bottom: 8px; }
.farm-layout-subtitle { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e5e1d6; }
.farm-layout-title b { color: var(--ink); font-size: 11px; }
.farm-layout-title small { color: var(--muted); font-size: 9px; }
.farm-option-palette {
  display: flex;
  gap: 6px;
  margin-bottom: 9px;
  padding: 7px;
  overflow-x: auto;
  border-radius: 9px;
  background: #eef1e8;
  scrollbar-width: thin;
}
.farm-option {
  width: 54px;
  min-width: 54px;
  min-height: 49px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 2px 5px rgba(30,48,40,.05);
}
.farm-option:hover, .farm-option.selected {
  border-color: var(--orange);
  background: #fff1e6;
}
.farm-option img { width: 21px; height: 21px; object-fit: contain; image-rendering: pixelated; }
.farm-option[data-farm-kind="barn"] img, .farm-option[data-farm-kind="fish"] img, .farm-option[data-farm-kind="food"] img { width: 17px; height: 17px; }
.farm-option span {
  width: 100%;
  overflow: hidden;
  color: #53635b;
  font-size: 8px;
  font-weight: 750;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.farm-slot-grid { display: grid; gap: 5px; }
.farm-soil-grid { grid-template-columns: repeat(8, minmax(28px, 1fr)); }
.farm-fallback-grid { grid-template-columns: repeat(8, minmax(28px, 1fr)); }
.farm-fallback-grid .farm-layout-slot { min-height: 41px; }
.farm-animal-grid, .farm-cooking-grid { grid-template-columns: repeat(8, minmax(28px, 1fr)); }
.farm-cooking-grid {
  grid-template-columns: repeat(8, minmax(28px, 1fr));
}
.farm-cooking-grid .farm-layout-slot { min-height: 42px; }
.farm-cooking-entry { min-width: 0; display: grid; gap: 3px; }
.farm-cooking-entry .farm-layout-slot { width: 100%; }
.farm-cooking-count {
  width: 100%;
  min-width: 0;
  height: 20px;
  padding: 1px 3px;
  border: 1px solid #d4d6ca;
  border-radius: 5px;
  color: var(--ink);
  background: #fffef9;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  box-shadow: none;
}
.farm-layout-slot {
  position: relative;
  min-width: 0;
  min-height: 46px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 5px 3px;
  border: 1px dashed #c9c8bd;
  border-radius: 8px;
  color: #8b948d;
  background: #f5f2e8;
  touch-action: none;
  user-select: none;
}
.farm-soil-grid .farm-layout-slot { min-height: 41px; }
.farm-layout-slot.filled {
  border-style: solid;
  border-color: #c9d6c2;
  color: var(--ink);
  background: #edf2e7;
}
.farm-layout-slot.paint-preview {
  border-style: solid;
  border-color: var(--orange);
  background: #ffeadb;
  box-shadow: inset 0 0 0 1px rgba(233,101,45,.18);
}
.farm-layout-slot.locked {
  cursor: not-allowed;
  background: repeating-linear-gradient(135deg,#ece9df,#ece9df 5px,#e4e1d7 5px,#e4e1d7 10px);
}
.farm-layout-slot.locked > :not(small) { opacity: .42; }
.farm-layout-slot > small {
  position: absolute;
  top: 2px;
  left: 4px;
  color: #111;
  font-size: 7px;
  font-weight: 800;
}
.farm-layout-slot > img { width: 19px; height: 19px; object-fit: contain; image-rendering: pixelated; }
.farm-layout-slot[data-layout-kind="barn"] > img, .farm-layout-slot[data-layout-kind="fish"] > img, .farm-layout-slot[data-layout-kind="food"] > img { width: 15px; height: 15px; }
.farm-layout-slot > span {
  width: 100%;
  overflow: hidden;
  font-size: 7px;
  font-weight: 750;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.farm-layout-slot > em { color: #9ca39e; font-size: 17px; font-style: normal; font-weight: 500; }
.farm-layout-slot > i {
  position: absolute;
  top: 1px;
  right: 3px;
  color: #a14b3f;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.farm-layout-empty {
  width: 100%;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
@media (max-width: 480px) {
  .farm-layout-editor { margin-inline: -3px; padding: 9px; }
  .farm-layout-block { padding: 8px; }
  .farm-slot-grid { gap: 3px; }
  .farm-soil-grid .farm-layout-slot { min-height: 36px; padding-inline: 1px; }
  .farm-layout-slot > img { width: 17px; height: 17px; }
  .farm-layout-slot[data-layout-kind="barn"] > img, .farm-layout-slot[data-layout-kind="fish"] > img, .farm-layout-slot[data-layout-kind="food"] > img { width: 14px; height: 14px; }
  .farm-layout-slot > span { font-size: 6px; }
}

/* Compact Avatar currency row: icons carry the labels. */
.slot-identity .slot-currency-list {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  max-width: none;
}
.slot-identity .slot-currency-list .slot-currency {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow: visible;
  white-space: nowrap;
}
.slot-identity .slot-currency-list .slot-currency img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}
.slot-currency b {
  color: #493f2b;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.slot-currency-list .slot-currency em {
  font-size: 8px;
}

.slot-reward-count.green-diamond-counter img {
  width: 50px;
  height: 50px;
  margin: -13px;
}

/* Keep action buttons aligned with the card's lower edge in every grid row. */
.slot-card > .slot-actions { margin-top: auto; }

.slot-card .slot-state, .slot-card .slot-state.server-state, .slot-card .slot-state.stopped-state {
  border: 0;
  box-shadow: none;
}

.slot-card .slot-actions {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-self: center;
  gap: 0;
  margin-top: auto;
  padding: 0;
  border: 1px solid #bdbdb3;
  border-radius: 8px;
  background: rgba(255,255,255,.5);
  overflow: hidden;
}
.slot-card .slot-actions button, .slot-card .slot-actions .configure {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: #315647;
  background: transparent;
  box-shadow: none;
  font-size: 10px;
  white-space: nowrap;
}
.slot-card .slot-actions button + button {
  border-left: 1px solid #858980 !important;
}
.slot-card .slot-actions button:hover, .slot-card .slot-actions .configure:hover {
  color: var(--orange);
  background: transparent;
}
@media (max-width: 390px) {
  .slot-card .slot-actions button, .slot-card .slot-actions .configure {
    padding-inline: 8px;
    font-size: 9px;
  }
}

.topbar-brand > .product-wordmark { gap: 0; }
.topbar h2 .wordmark-material {
  color: #183d34;
  font-size: clamp(20px, 1.8vw, 24px);
}


.inventory-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

@media (max-width: 520px) {
  .material-orbit span { width: 36px; height: 36px; font-size: 21px; }
}


@media (max-width: 760px) {
  .detail-panel > header {
    gap: 7px;
  }
  .detail-heading .eyebrow {
    display: none;
  }
  .detail-panel h3.detail-slot-number {
    width: 34px;
    height: 34px;
    margin: 0;
    font-size: 14px;
  }
  .detail-panel > header .detail-tabs {
    max-width: none;
    margin: 0;
  }
  .detail-panel > header .detail-tabs .tab {
    min-height: 32px;
  }
}

/* Final authentication palette override. */
.login-card, .forgot-modal {
  color: #2e3027;
  background: rgba(246, 232, 184, .97);
}
.auth-logo { background: #e2c66e; }
.auth-kicker, .forgot-modal > header .eyebrow { color: #9b5a20; }
.auth-heading h2, .forgot-modal h3 { color: #2e3027; }
.auth-form label, .forgot-modal label { color: #4b4b3c; }
.auth-form input, .forgot-modal input {
  border-color: rgba(70,74,57,.24);
  color: #292c25;
  background-color: rgba(255,255,255,.52);
}
.auth-form input::placeholder, .forgot-modal input::placeholder { color: #77725f; }
.auth-form input:focus, .forgot-modal input:focus { border-color: #b87935; }
.forgot-modal .icon-button, .reset-email-row .button, .forgot-modal footer .button-subtle {
  color: #39392e;
  background: rgba(255,255,255,.44);
}
.reset-note { color: #686756; }

@media (max-width: 760px) {
  .login-card { background: rgba(246, 232, 184, .98); }
}

/* Readable typography for the warm authentication palette. */
.auth-heading h2, .forgot-modal h3 { color: #3b372b; }
.auth-kicker, .forgot-modal > header .eyebrow { color: #9a5425; }
.auth-form label, .forgot-modal label { color: #514c3c; }
.auth-form input, .forgot-modal input { color: #34342b; }
.auth-form input::placeholder, .forgot-modal input::placeholder { color: #716c58; }
.forgot-password {
  color: #8d4b22;
}
.forgot-password:hover {
  color: #663516;
}
.auth-secondary {
  border-top-color: rgba(69,64,48,.17);
  color: #615d4c;
}
.auth-switch {
  color: #945020;
}
.auth-switch:hover {
  color: #673713;
}
.login-hint {
  color: #696552 !important;
}
.login-hint::before {
  background: #b96b2e;
  box-shadow: none;
}

/* Game-inspired product wordmark for the main header. */
.topbar-brand { gap: 11px; }
.brand-mark {
  width: 46px;
  height: 46px;
  padding: 6px;
  border: 1px solid #efd6df;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff9fb, #f8e6ed);
  box-shadow: 0 5px 12px rgba(156, 59, 100, .12);
  transform: none;
}
.brand-mark img {
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 2px 2px rgba(139, 27, 90, .18));
}
.topbar-brand > .product-wordmark { display: grid; gap: 5px; }
.topbar-brand .eyebrow {
  padding-left: 3px;
  color: #a95328;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .24em;
  line-height: 1;
}
.topbar h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 11px 4px 9px;
  border: 1px solid rgba(190, 91, 43, .62);
  border-radius: 9px 4px 9px 4px;
  background: rgba(255, 253, 247, .48);
  line-height: 1;
}

.topbar h2 .wordmark-material {
  color: #183d34;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 850;
  letter-spacing: .025em;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .topbar-brand { gap: 7px; }
  .topbar-brand > .product-wordmark { display: grid; gap: 0; }
  .topbar-brand .eyebrow { display: none; }
  .topbar h2 {
    min-height: 29px;
    gap: 5px;
    padding: 3px 7px 3px 6px;
    border-radius: 7px 3px 7px 3px;
  }
  
  .topbar h2 .wordmark-material {
    font-size: 11px;
    letter-spacing: .01em;
  }
}
@media (max-width: 360px) {
  .topbar h2 { padding-inline: 5px; }
  .topbar h2 .wordmark-material { font-size: 10px; }
}

.config-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 520px) {
  .config-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Unified account controls in the main header. */
.topbar-actions { gap: 8px; }
.topbar-actions .button-admin {
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 8px;
  border: 1px solid #d3d0c3;
  border-radius: 12px;
  color: #183d34;
  background: rgba(255,253,247,.68);
  box-shadow: none;
}
.topbar-actions .button-admin:hover {
  border-color: #bdbdaf;
  background: rgba(255,253,247,.94);
  box-shadow: none;
  transform: none;
}
.admin-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #183d34;
  font-size: 14px;
  line-height: 1;
}
.admin-label { font-size: 13px; font-weight: 850; }
.admin-icon img { width: 20px; height: 20px; display: block; }
.topbar-actions .user-chip {
  height: 48px;
  min-height: 48px;
  gap: 9px;
  padding: 4px 9px 4px 4px;
  border: 1px solid #d3d0c3;
  border-radius: 12px;
  background: rgba(255,253,247,.68);
  box-shadow: none;
}
.topbar-actions .user-chip:hover, .topbar-actions .user-chip[aria-expanded="true"] {
  border-color: #bdbdaf;
  background: rgba(255,253,247,.94);
}
.topbar-actions .user-chip img {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 10px;
}
.topbar-actions .user-chip b {
  max-width: 220px;
  color: #29342f;
  font-size: 13px;
}
.topbar-actions .user-chip small {
  margin-top: 2px;
  color: #6b746f;
  font-size: 9px;
}
.topbar-actions .menu-chevron {
  margin-left: 2px;
  color: #66716b;
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar-actions .button-admin {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 4px;
    border-radius: 10px;
  }
  .topbar-actions .button-admin .admin-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .topbar-actions .button-admin .admin-label { display: none; }
  .topbar-actions .user-chip {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 4px;
    border-radius: 10px;
  }
  .topbar-actions .user-chip img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 7px;
  }
}

/* Denser pricing panel with the table as the visual focus. */
.pricing-card {
  min-height: 0;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 20px 0 26px;
  padding: 14px 18px;
  border-radius: 14px;
}
.pricing-table { width: 100%; max-width: none; }
.pricing-mark {
  width: 52px;
  height: 52px;
  border-radius: 13px 6px 13px 6px;
}
.pricing-mark img { width: 34px; height: 34px; }
.pricing-copy h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.1;
}
.pricing-table > div:first-child {
  padding: 7px 10px;
  color: #55432d;
  background: #ead9ad;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .01em;
}
.pricing-table > div:last-child > div {
  padding: 7px 9px;
  font-size: 12px;
}
.contact-card { padding: 8px 0 8px 16px; }
.contact-card strong {
  margin: 0 0 8px;
  font-size: 14px;
}
.contact-links { gap: 7px; }
.contact-link {
  min-height: 32px;
  padding-inline: 9px;
  font-size: 10px;
}
.contact-link img { width: 18px; height: 18px; flex-basis: 18px; }

@media (min-width: 761px) {
  .contact-card { grid-column: auto; }
}

@media (max-width: 760px) {
  .pricing-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    margin: 16px 0 22px;
    padding: 12px;
  }
  .pricing-mark { width: 40px; height: 40px; }
  .pricing-mark img { width: 27px; height: 27px; }
  .pricing-copy h3 { font-size: 15px; }
  .pricing-table > div:first-child {
    padding: 7px 8px;
    font-size: 10px;
  }
  .contact-card {
    grid-column: 1 / -1;
    padding: 10px 0 0;
  }
}

/* Compact account menu with supplied action icons. */
.user-menu {
  width: 220px;
  padding: 6px;
  border-radius: 12px;
}
.user-menu button {
  min-height: 43px;
  gap: 9px;
  padding: 6px 8px;
}
.user-menu button > span {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 8px;
}
.user-menu button > span img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .78;
}
.user-menu button b {
  font-size: 12px;
  line-height: 1;
}
.user-menu .menu-danger > span img { opacity: .68; }

@media (max-width: 760px) {
  .user-menu {
    width: min(220px, calc(100vw - 24px));
  }
}

/* Balanced password dialog matching the warm authentication forms. */
.password-backdrop {
  padding: 12px;
  background: rgba(8,28,23,.42);
  backdrop-filter: none;
}
.password-modal {
  width: min(360px, 100%);
  border: 0;
  border-radius: 16px;
  color: #2e3027;
  background: rgba(246,232,184,.98);
  box-shadow: none;
}
.password-modal > header {
  align-items: center;
  padding: 17px 18px 8px;
  color: #2e3027;
  background: transparent;
}
.password-modal > header .eyebrow {
  color: #9a5425;
  font-size: 9px;
}
.password-modal h3 {
  margin-top: 3px;
  color: #3b372b;
  font-size: 21px;
}
.password-modal .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  color: #39392e;
  background: rgba(255,255,255,.44);
}
.password-modal form {
  gap: 8px;
  padding: 10px 18px 18px;
}
.password-modal label {
  color: #514c3c;
  font-size: 11px;
}
.password-modal input {
  height: 42px;
  margin-top: 5px;
  border: 1px solid rgba(70,74,57,.24);
  border-radius: 9px;
  color: #34342b;
  background: rgba(255,255,255,.52);
  box-shadow: none;
  font-size: 13px;
}
.password-modal input::placeholder { color: #716c58; }
.password-modal input:focus {
  border-color: #b87935;
  box-shadow: none;
}
.password-modal footer {
  grid-template-columns: .8fr 1.35fr;
  gap: 7px;
  margin-top: 3px;
}
.password-modal footer .button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  font-size: 12px;
}
.password-modal footer .button-subtle {
  color: #39392e;
  background: rgba(255,255,255,.44);
}
.password-modal footer .button-primary { background: var(--orange); }

@media (max-width: 380px) {
  .password-backdrop { padding: 8px; }
  .password-modal { width: min(340px, 100%); border-radius: 14px; }
  .password-modal > header { padding: 14px 14px 6px; }
  .password-modal h3 { font-size: 19px; }
  .password-modal form { padding: 8px 14px 14px; }
  .password-modal footer { grid-template-columns: .8fr 1.35fr; }
}

/* Display every supplied fish resource around the login radar. */
.material-orbit span {
  width: 38px;
  height: 38px;
  padding: 3px;
  background: rgba(255,253,247,.82);
  border-color: rgba(19,53,46,.18);
  box-shadow: 0 5px 14px rgba(12,47,40,.24);
}
@media (max-width: 760px) {
  .material-orbit span { width: 27px; height: 27px; padding: 2px; }
}

@media (max-width: 420px) {
  .material-orbit span { width: 22px; height: 22px; }
}

.topbar-brand .product-wordmark .eyebrow {
  display: block;
}
.topbar-brand .product-wordmark .wordmark-material {
  font-size: clamp(16px, 1.45vw, 21px);
}
.topbar-brand .product-wordmark .wordmark-material em {
  color: var(--orange);
  font-style: normal;
}
@media (max-width: 760px) {
  .topbar-brand .product-wordmark .eyebrow {
    display: block;
    font-size: 6px;
  }
  .topbar-brand .product-wordmark .wordmark-material {
    font-size: 10px;
  }
}

.account-quick-card {
  padding: 9px 10px;
}
.account-quick-card .account-row {
  gap: 6px;
}
.account-quick-card .mode-choice-grid {
  margin-top: 7px;
}
.account-quick-card .mode-choice-grid button {
  min-height: 31px;
  padding: 4px 6px;
  font-size: 8px;
}
.always-visible-log {
  margin-bottom: 8px;
}
.always-visible-log-title {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #efeee6;
  font-size: 10px;
}
.always-visible-log .compact-slot-log {
  margin: 0;
  border-radius: 0;
}

@media (min-width: 1100px) {
  .farm-settings-disclosure.farm-detached-modal[open] {
    position: fixed;
    z-index: 42;
    right: auto;
    bottom: 22px;
    max-height: none;
    margin: 0;
    border: 1px solid #d7d4c8;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 22px 60px rgba(18,36,29,.22);
    overflow-y: auto;
  }
  .farm-settings-disclosure[open] > summary {
    position: sticky;
    z-index: 3;
    top: 0;
    min-height: 42px;
    background: var(--card);
  }
  .farm-settings-disclosure[open] .farm-layout-editor {
    border: 0;
    border-radius: 0;
  }
}

/* Compact settings panel and a single-row segmented tab bar. */
@media (min-width: 761px) {
  .detail-panel { width: min(440px, calc(100% - 28px)); }
  .detail-panel > header {
    position: sticky;
    z-index: 12;
    top: -14px;
    margin: 0 0 8px;
    padding: 9px 0 8px;
    border-bottom: 1px solid #e1ded3;
    background: var(--card);
  }
}
.quick-config-card::before { display: none; }
.detail-panel > header .detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(245px, 100%);
  max-width: 245px;
  gap: 0;
  padding: 0;
  border: 1px solid #d2d1c6;
  border-radius: 8px;
  background: rgba(255,255,255,.5);
  overflow: hidden;
}
.detail-panel > header .detail-tabs .tab {
  min-width: 0;
  min-height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 9px;
  white-space: nowrap;
}
.detail-panel > header .detail-tabs .tab + .tab {
  border-left: 1px solid #c9c8bd;
}
.detail-panel > header .detail-tabs .tab.active {
  color: var(--forest);
  background: #ecefe7;
  box-shadow: none;
}
@media (max-width: 390px) {
  .detail-panel > header .detail-tabs {
    width: min(220px, calc(100% - 78px));
  }
  .detail-panel > header .detail-tabs .tab {
    padding-inline: 4px;
    font-size: 8px;
  }
}

@media (hover: hover) {
  .slot-card:hover {
    border-color: #9f3028;
    box-shadow: 0 0 0 2px rgba(159,48,40,.3), 0 10px 28px rgba(89,25,21,.16);
  }
}

@media (max-width: 760px) {
  .grid-layout-button { display: none; }
  .section-head {
    width: 100%;
    margin-bottom: 12px;
  }
  .section-head .section-title-group {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .section-head .section-title-group h3 {
    min-width: 0;
    font-size: clamp(16px, 5vw, 19px);
    line-height: 1.15;
    white-space: nowrap;
  }
  .section-head .section-title-group #accountCount {
    padding: 5px 7px;
    font-size: 8px;
  }
  .section-head .section-actions { display: none; }
}

.slot-grid .slot-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.slot-current-mission {
  min-width: 0;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #d9dfcf;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8faef, #f1f5e5);
}
.slot-current-mission > span {
  display: block;
  margin-bottom: 4px;
  color: #527039;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.slot-current-mission > p {
  max-height: 92px;
  margin: 0;
  overflow: auto;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.slot-card .slot-actions {
  margin-top: 8px;
  padding-top: 0;
}
.slot-card .slot-actions button, .slot-card .slot-actions .configure {
  min-height: 25px;
  padding-inline: 8px;
  font-size: 9px;
}

/* Keep the compact currency summary on one row and free its full width. */
.slot-card .slot-card-head { position: relative; align-items: flex-start; }
.slot-card .slot-state { position: absolute; z-index: 1; top: -3px; right: 0; }
.slot-card .slot-identity { width: 100%; }
.slot-card .slot-identity > div { max-width: none; }
.slot-card .slot-tagname { max-width: calc(100% - 78px); }
.slot-identity .slot-currency-list { flex-wrap: nowrap; gap: 2px 5px; }
.slot-identity .slot-currency-list .slot-currency { flex: 0 0 auto; }

.build-version-watermark {
  position: fixed;
  z-index: 90;
  right: 6px;
  bottom: 4px;
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  opacity: .28;
  pointer-events: none;
  user-select: none;
}

.fishing-leaderboard-toggle {
  width: 100%;
  min-height: 29px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 5px 7px;
  border: 1px solid #d2d7c8;
  border-radius: 7px;
  color: #405841;
  background: #f6f8ef;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}
.fishing-leaderboard-card {
  width: min(100%, 430px);
  margin: 10px auto 0;
  padding: 8px;
  border: 1px solid #d7dacd;
  border-radius: 10px;
  background: rgba(255,254,249,.78);
  box-shadow: 0 6px 16px rgba(44,55,38,.04);
}
.fishing-leaderboard-card .fishing-leaderboard-toggle { margin-top: 0; }
.fishing-leaderboard-toggle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fishing-leaderboard-toggle small { color: #7b887b; font-size: 7px; font-weight: 800; white-space: nowrap; }
.fishing-leaderboard-toggle i { font-size: 13px; font-style: normal; line-height: 1; transition: transform .18s; }
.fishing-leaderboard-toggle.open i { transform: rotate(180deg); }
.fishing-leaderboard {
  margin-top: 5px;
  padding: 6px;
  border: 1px solid #d2d7c8;
  border-radius: 7px;
  background: #fffef9;
}
.fishing-leaderboard-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.fishing-leaderboard-tabs button {
  min-height: 23px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #718071;
  background: transparent;
  font: inherit;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}
.fishing-leaderboard-tabs button small { color: #7b887b; font-size: 7px; font-weight: 800; line-height: 1; white-space: nowrap; }
.fishing-leaderboard-tabs button.active small { color: inherit; }
.fishing-leaderboard-tabs button.active { border-color: #c9d7b8; color: #446634; background: #edf4df; }
.fishing-leaderboard-rows { display: grid; gap: 3px; margin-top: 5px; }
.fishing-leaderboard-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 5px;
  border-radius: 5px;
  color: #526152;
  background: #f5f7ef;
  font-size: 8px;
}
.fishing-leaderboard-row > b { position: absolute; left: 5px; color: #657565; font-size: 8px; }
.fishing-leaderboard-row.rank-1 > b { color: #b57a12; }.fishing-leaderboard-row.rank-2 > b { color: #70818a; }.fishing-leaderboard-row.rank-3 > b { color: #996343; }
.fishing-leaderboard-row > span { grid-column: 1; min-width: 0; padding-left: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.fishing-leaderboard-row > strong { grid-column: 3; justify-self: end; color: #315647; font-size: 8px; white-space: nowrap; }
.fishing-leaderboard-row > em { grid-column: 2; color: #8a6218; font-size: 7px; font-style: normal; font-weight: 850; white-space: nowrap; }
.fishing-leaderboard-empty { margin: 5px 0 0; padding: 5px; color: #7b887b; font-size: 8px; text-align: center; }

@media (max-width: 760px) {
  .fishing-leaderboard-card { width: 100%; }
}

/* Refined fishing leaderboard while preserving the existing three-column rows. */
.fishing-leaderboard-card {
  width: min(100%, 520px);
  margin-top: 12px;
  padding: 7px;
  border: 1px solid #d9e0ce;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffef9 0%, #f0f5e8 100%);
  box-shadow: 0 8px 22px rgba(50, 75, 42, .08);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fishing-leaderboard-card.open {
  border-color: #b8cd9d;
  box-shadow: 0 12px 28px rgba(50, 75, 42, .13);
}
.fishing-leaderboard-toggle {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  gap: 9px;
  padding: 7px 9px;
  border-color: #dce5ce;
  border-radius: 10px;
  color: #355d3d;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  font-size: 11px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.fishing-leaderboard-toggle:hover {
  border-color: #b8cd9d;
  background: #fff;
}
.fishing-leaderboard-toggle:active { transform: scale(.995); }
.fishing-leaderboard-toggle span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  letter-spacing: .01em;
}
.fishing-leaderboard-toggle span::first-letter { color: #c58c17; }
.fishing-leaderboard-toggle small {
  padding: 3px 6px;
  border-radius: 999px;
  color: #617d61;
  background: #edf4e3;
  font-size: 8px;
  font-weight: 850;
}
.fishing-leaderboard-toggle i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #47734b;
  background: #e5efda;
  font-size: 15px;
}
.fishing-leaderboard {
  margin-top: 8px;
  padding: 8px;
  border-color: #dce5ce;
  border-radius: 10px;
  background: rgba(255, 255, 252, .84);
  animation: fishing-leaderboard-in .18s ease-out;
}
.fishing-leaderboard-tabs {
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: #edf3e7;
}
.fishing-leaderboard-tabs button {
  min-height: 32px;
  padding: 3px 5px;
  border-radius: 6px;
  color: #718071;
  font-size: 9px;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.fishing-leaderboard-tabs button small { font-size: 7px; }
.fishing-leaderboard-tabs button.active {
  border-color: #d4e1c4;
  color: #38623c;
  background: #fff;
  box-shadow: 0 2px 5px rgba(54, 82, 43, .09);
}
.fishing-leaderboard-rows { gap: 5px; margin-top: 8px; }
.fishing-leaderboard-row {
  min-height: 32px;
  gap: 7px;
  padding: 4px 7px;
  border: 1px solid #e4eadc;
  border-radius: 8px;
  color: #506450;
  background: linear-gradient(90deg, #fff 0%, #f7faef 100%);
  box-shadow: 0 1px 2px rgba(47, 70, 42, .035);
  font-size: 9px;
}
.fishing-leaderboard-row > b {
  left: 7px;
  min-width: 19px;
  color: #617661;
  font-size: 8px;
  font-weight: 900;
}
.fishing-leaderboard-row.rank-1 { border-color: #ecd9a0; background: linear-gradient(90deg, #fffdf5 0%, #fff8de 100%); }
.fishing-leaderboard-row.rank-2 { border-color: #d5dfe2; background: linear-gradient(90deg, #fff 0%, #f3f7f7 100%); }
.fishing-leaderboard-row.rank-3 { border-color: #e5cfbd; background: linear-gradient(90deg, #fff 0%, #fff5ed 100%); }
.fishing-leaderboard-row > span { padding-left: 23px; font-weight: 850; }
.fishing-leaderboard-row > strong { color: #2d6551; font-size: 9px; font-weight: 900; }
.fishing-leaderboard-row > em {
  padding: 2px 4px;
  border-radius: 4px;
  color: #926716;
  background: #fff2cb;
  font-size: 7px;
}
.fishing-leaderboard-empty {
  margin-top: 8px;
  padding: 9px;
  border: 1px dashed #d3ddc5;
  border-radius: 7px;
  background: #f8faf3;
  font-size: 8px;
}
@keyframes fishing-leaderboard-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .fishing-leaderboard-card { margin-top: 10px; padding: 6px; }
  .fishing-leaderboard-toggle { min-height: 40px; gap: 6px; padding: 6px 8px; font-size: 10px; }
  .fishing-leaderboard-toggle small { padding: 3px 5px; font-size: 7px; }
  .fishing-leaderboard-row { gap: 4px; padding-inline: 6px; }
  .fishing-leaderboard-row > em { font-size: 6px; }
}

/* Keep the leaderboard light: it is a section, not another nested card. */
.fishing-leaderboard-card,
.fishing-leaderboard-card.open {
  width: min(100%, 520px);
  margin: 10px auto 18px;
  padding: 7px 9px;
  border: 1px solid #dbe2d2;
  border-radius: 10px;
  background: rgba(255, 254, 249, .76);
  box-shadow: 0 5px 14px rgba(50, 75, 42, .05);
}
.fishing-leaderboard-card.open { border-color: #c5d4b8; }
.fishing-leaderboard-toggle {
  min-height: 35px;
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid #dbe1d2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 10px;
}
.fishing-leaderboard-toggle:hover { border-color: #b7c9a7; background: transparent; }
.fishing-leaderboard-toggle span { gap: 5px; }
.fishing-leaderboard-toggle small {
  padding: 0;
  color: #81917e;
  background: transparent;
  font-size: 8px;
}
.fishing-leaderboard-toggle i {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  color: #638061;
  font-size: 14px;
}
.fishing-leaderboard {
  margin-top: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.fishing-leaderboard-tabs {
  gap: 0;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid #e0e6d8;
  background: transparent;
}
.fishing-leaderboard-tabs button {
  min-height: 29px;
  padding: 2px 4px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 8px;
}
.fishing-leaderboard-tabs button.active {
  border-color: #6d9a60;
  color: #3b713d;
  background: transparent;
  box-shadow: none;
}
.fishing-leaderboard-rows { gap: 0; margin-top: 2px; }
.fishing-leaderboard-row,
.fishing-leaderboard-row.rank-1,
.fishing-leaderboard-row.rank-2,
.fishing-leaderboard-row.rank-3 {
  min-height: 29px;
  padding: 3px 2px;
  border: 0;
  border-bottom: 1px solid #e7ebe1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 8px;
}
.fishing-leaderboard-row > b { left: 2px; }
.fishing-leaderboard-row > span { padding-left: 20px; }
.fishing-leaderboard-row > strong { font-size: 8px; }
.fishing-leaderboard-row > em {
  padding: 0;
  color: #3f78ad;
  background: transparent;
  font-size: 7px;
}
.fishing-leaderboard-empty {
  margin-top: 3px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid #e7ebe1;
  border-radius: 0;
  background: transparent;
}
@media (max-width: 760px) {
  .fishing-leaderboard-card { margin-bottom: 15px; padding: 6px 8px; }
  .fishing-leaderboard-toggle { min-height: 34px; padding-inline: 2px; }
  .fishing-leaderboard-row { padding-inline: 2px; }
}

/* Improve leaderboard legibility without changing its compact layout. */
.fishing-leaderboard-toggle {
  min-height: 40px;
  color: #294f32;
  font-size: 12px;
  font-weight: 900;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.fishing-leaderboard-toggle:focus { outline: none; }
.fishing-leaderboard-toggle:focus-visible {
  outline: 2px solid #9fc488;
  outline-offset: 3px;
}
.fishing-leaderboard-title > b {
  display: inline-grid;
  place-items: center;
  color: #b77a18;
  font-size: 15px;
  line-height: 1;
}
.fishing-leaderboard-title > strong { font: inherit; }

/* Use the same single-row service-card treatment on desktop and mobile. */
.fishing-leaderboard-card,
.fishing-leaderboard-card.open {
  width: min(100%, 520px);
  margin: 10px auto 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.fishing-leaderboard-toggle {
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: radial-gradient(circle at 100% 0, rgba(186,214,111,.2), transparent 38%), linear-gradient(135deg, #fffdf7, #f2f0e6);
  box-shadow: 0 8px 22px rgba(31,52,44,.065);
  font-size: 13px;
}
.fishing-leaderboard-toggle:hover {
  border-color: var(--line);
  background: radial-gradient(circle at 100% 0, rgba(186,214,111,.26), transparent 38%), linear-gradient(135deg, #fffdf7, #f2f0e6);
}
.fishing-leaderboard-title { gap: 9px !important; }
.fishing-leaderboard-title > b {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #fff0d2;
  font-size: 20px;
}
.fishing-leaderboard-title > strong { color: var(--ink); font-size: 13px; font-weight: 900; }
.fishing-leaderboard-toggle small {
  padding: 5px 8px;
  border-radius: 999px;
  color: #466052;
  background: rgba(255,255,255,.72);
  font-size: 8px;
}
.fishing-leaderboard-toggle i { display: none; }
.fishing-leaderboard-card.open .fishing-leaderboard {
  margin-top: 7px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,254,249,.9);
}

/* A quiet divider keeps the account area visible without repeating its title. */
.account-status-divider {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 4px 0 17px;
  color: #1d568a;
  font-size: 10px;
  font-weight: 900;
}
.account-status-divider::before,
.account-status-divider::after {
  content: "";
  height: 2px;
  border-radius: 999px;
}
.account-status-divider::before { background: linear-gradient(90deg, #d9574b 0%, #d9e3d8 78%, #edf0e9 100%); }
.account-status-divider::after { background: linear-gradient(90deg, #edf0e9 0%, #d9e3d8 22%, #d9574b 100%); }
.account-status-divider small {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

/* The full price table moves behind a compact mobile trigger, as in UPNL. */
.mobile-pricing-trigger,
.mobile-pricing-head { display: none; }
.mobile-pricing-backdrop,
.mobile-pricing-dialog { display: contents; }
@media (max-width: 760px) {
  body.modal-open { overflow: hidden; }
  .mobile-pricing-trigger {
    width: min(100%, 520px);
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px auto 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: radial-gradient(circle at 100% 0, rgba(186,214,111,.2), transparent 38%), linear-gradient(135deg, #fffdf7, #f2f0e6);
    box-shadow: 0 8px 22px rgba(31,52,44,.065);
    text-align: left;
  }
  .mobile-pricing-trigger > img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    image-rendering: pixelated;
  }
  .mobile-pricing-trigger > span { min-width: 0; flex: 1; }
  .mobile-pricing-trigger small,
  .mobile-pricing-trigger b { display: block; }
  .mobile-pricing-trigger small {
    color: #8b612d;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .1em;
  }
  .mobile-pricing-trigger b { margin-top: 2px; font-size: 13px; }
  .mobile-pricing-trigger > strong {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    color: #466052;
    background: rgba(255,255,255,.72);
    font-size: 8px;
  }
  .mobile-pricing-backdrop {
    position: fixed;
    z-index: 114;
    inset: 0;
    display: none;
    align-items: end;
    padding: 12px 10px max(10px, env(safe-area-inset-bottom));
    background: rgba(12,28,23,.48);
    backdrop-filter: blur(3px);
  }
  .mobile-pricing-backdrop.open { display: grid; }
  .mobile-pricing-dialog {
    width: min(520px, 100%);
    max-height: 90dvh;
    display: block;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 26px 70px rgba(8,25,20,.34);
  }
  .mobile-pricing-head {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(240,238,229,.96);
  }
  .mobile-pricing-head span { color: #8b612d; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
  .mobile-pricing-head h3 { margin: 3px 0 0; font-size: 17px; }
  .mobile-pricing-head .icon-button { width: 36px; height: 36px; min-height: 36px; flex: 0 0 36px; }
  .mobile-pricing-dialog > .pricing-card {
    width: 100%;
    margin: 0;
    padding: 14px 12px 16px;
    border: 0;
    border-radius: 0;
    background: radial-gradient(circle at 100% 0, rgba(186,214,111,.16), transparent 32%), #fffdf8;
    box-shadow: none;
  }
  .mobile-pricing-dialog .pricing-copy h3 { display: none; }
  .mobile-pricing-dialog .contact-card { padding-bottom: 2px; }

  /* Match the mobile price trigger: one clear leaderboard entry row. */
  .fishing-leaderboard-card,
  .fishing-leaderboard-card.open {
    width: min(100%, 520px);
    margin: 10px auto 15px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .fishing-leaderboard-toggle {
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: radial-gradient(circle at 100% 0, rgba(186,214,111,.2), transparent 38%), linear-gradient(135deg, #fffdf7, #f2f0e6);
    box-shadow: 0 8px 22px rgba(31,52,44,.065);
    font-size: 13px;
  }
  .fishing-leaderboard-toggle:hover { background: radial-gradient(circle at 100% 0, rgba(186,214,111,.26), transparent 38%), linear-gradient(135deg, #fffdf7, #f2f0e6); }
  .fishing-leaderboard-title { gap: 9px !important; }
  .fishing-leaderboard-title > b {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #fff0d2;
    font-size: 20px;
  }
  .fishing-leaderboard-title > strong { font-size: 13px; font-weight: 900; }
  .fishing-leaderboard-toggle small {
    padding: 5px 8px;
    border-radius: 999px;
    color: #466052;
    background: rgba(255,255,255,.72);
    font-size: 8px;
  }
  .fishing-leaderboard-toggle i { display: none; }
  .fishing-leaderboard-card.open .fishing-leaderboard {
    margin-top: 7px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255,254,249,.9);
  }
}
.fishing-leaderboard-toggle small {
  color: #5f7560;
  font-size: 9px;
  font-weight: 850;
}
.fishing-leaderboard-toggle i { color: #356e3c; font-size: 16px; }
.fishing-leaderboard-tabs button {
  min-height: 35px;
  color: #4e6653;
  font-size: 10px;
  font-weight: 900;
}
.fishing-leaderboard-tabs button small { color: #728276; font-size: 8px; }
.fishing-leaderboard-tabs button.active { color: #216438; }
.fishing-leaderboard-tabs button.active small { color: #416c4a; }
.fishing-leaderboard-row,
.fishing-leaderboard-row.rank-1,
.fishing-leaderboard-row.rank-2,
.fishing-leaderboard-row.rank-3 {
  min-height: 35px;
  color: #415d47;
  font-size: 10px;
  font-weight: 800;
}
.fishing-leaderboard-row > b { color: #526d59; font-size: 9px; }
.fishing-leaderboard-row.rank-1 > b { color: #a9700d; }
.fishing-leaderboard-row.rank-2 > b { color: #5f7480; }
.fishing-leaderboard-row.rank-3 > b { color: #90603b; }
.fishing-leaderboard-row > span { font-weight: 900; }
.fishing-leaderboard-row > strong { color: #235e48; font-size: 10px; }
.fishing-leaderboard-row > em { color: #226caf; font-size: 8px; font-weight: 900; }
@media (max-width: 760px) {
  .fishing-leaderboard-toggle { min-height: 38px; font-size: 11px; }
  .fishing-leaderboard-tabs button { min-height: 33px; font-size: 9px; }
  .fishing-leaderboard-row { min-height: 33px; font-size: 9px; }
  .fishing-leaderboard-row > strong { font-size: 9px; }
}

/* The large source diamond is scaled inside the same compact grid cell as fish. */
.slot-reward-count.green-diamond-counter img { width: 48px; height: 48px; margin: -12px; }

/* Reserve the footer area, then pin each card's actions to its lower edge. */
.slot-card { padding-bottom: 52px; }
.slot-card > .slot-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  width: auto;
  max-width: none;
  margin: 0;
}
