/* Wire to Wire — Island UI: translucent glass over the 3D world */
:root { --gold: #e5c55a; --gold2: #c9a227; --ink: #0b1a26; --glass: rgba(9, 24, 36, .62); --glass2: rgba(12, 30, 44, .82); --line: rgba(255, 255, 255, .14); --txt: #f3efe6; --muted: #b9c2bb; --safeT: env(safe-area-inset-top, 0px); --safeB: env(safe-area-inset-bottom, 0px); --safeL: env(safe-area-inset-left, 0px); --safeR: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #c9b48a; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--txt); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 8px 28px rgba(0, 0, 0, .28); }

/* labels */
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(12, 20, 18, .62); border: 1px solid rgba(255, 255, 255, .18); display: flex; align-items: center; gap: 5px; will-change: transform; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: #7fd0ff; box-shadow: 0 0 6px #7fd0ff; }
.tag.me { background: rgba(70, 52, 8, .78); border-color: var(--gold); color: #fff3c4; font-size: 13px; } .tag.me i { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.tag.horse i { background: #d9b38c; box-shadow: none; } .tag.horse.mine { border-color: rgba(229, 197, 90, .6); } .tag.horse.mine i { background: var(--gold); }
.tag.zone { font-size: 13px; padding: 5px 11px; background: rgba(12, 20, 18, .7); border-color: rgba(229, 197, 90, .45); color: #fff1c9; } .tag.zone i { display: none; }
.tag.zone.near { background: var(--gold); color: var(--ink); border-color: #fff3c4; }

/* top bar */
.top { position: fixed; top: calc(10px + var(--safeT)); left: calc(12px + var(--safeL)); right: calc(12px + var(--safeR)); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; z-index: 5; }
.top > * { pointer-events: auto; }
.logo { color: #fff; text-decoration: none; display: grid; grid-template-columns: auto auto auto; align-items: center; column-gap: 4px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.logo .lw { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 800; font-size: 30px; letter-spacing: -.5px; line-height: 1; }
.logo .shoe { width: 34px; height: 34px; color: var(--gold); }
.logo small { grid-column: 1 / -1; font-size: 10px; letter-spacing: 2.4px; font-weight: 700; color: #f6ecd2; text-align: center; margin-top: 2px; }
.money { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 22px; font-weight: 700; }
.money .coin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe89a, #c9a227 60%, #8a6a10); color: #5a4200; font-size: 16px; font-weight: 900; }
.money button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); font-size: 18px; line-height: 1; }
.where { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 15px; white-space: nowrap; }
.where .gear { border: 0; background: rgba(255, 255, 255, .1); border-radius: 8px; width: 30px; height: 30px; font-size: 16px; }

/* minimap & my horses */
.side { position: fixed; right: calc(12px + var(--safeR)); top: calc(66px + var(--safeT)); width: 230px; display: flex; flex-direction: column; gap: 10px; z-index: 4; }
.mmwrap { position: relative; width: 190px; height: 190px; align-self: center; border-radius: 50%; padding: 5px; background: rgba(14, 22, 20, .55); border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(0, 0, 0, .3); cursor: pointer; }
#mm { width: 100%; height: 100%; display: block; border-radius: 50%; }
.mmwrap .n { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 800; font-size: 12px; text-shadow: 0 1px 3px #000; }
.mmhint { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); font-size: 10px; background: rgba(0, 0, 0, .5); padding: 1px 7px; border-radius: 99px; white-space: nowrap; opacity: .85; }
.myh { padding: 10px; } .myh h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: 1px; color: #f6ecd2; }
.mh { display: flex; width: 100%; align-items: center; gap: 9px; text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 6px; margin-bottom: 6px; }
.mh > div { flex: 1; min-width: 0; } .mh b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; } .mh small { display: block; font-size: 11px; color: var(--muted); } .mh .sty { display: inline; margin-left: 4px; color: #d9c79c; } .mh > span { font-size: 20px; opacity: .7; }
.mh .w2w-coat, .hrow .w2w-coat { width: 46px; height: 46px; border-radius: 8px; flex: none; overflow: hidden; display: block; } .w2w-coat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; } .stars i { color: rgba(255, 255, 255, .22); font-style: normal; }
.myh .all { width: 100%; border: 0; background: transparent; padding: 6px; font-weight: 600; color: #f6ecd2; }

/* chat */
.chat { position: fixed; left: calc(12px + var(--safeL)); bottom: calc(14px + var(--safeB) + var(--bb, 0px)); width: 330px; padding: 0 10px 10px; z-index: 4; }
.chat nav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -10px 6px; padding: 0 6px; }
.chat nav button { border: 0; background: none; padding: 9px 8px 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; color: var(--muted); border-bottom: 2px solid transparent; } .chat nav button.on { color: #fff; border-color: var(--gold); }
.chat nav .cx { display: none; margin-left: auto; }
.chat .log { height: 112px; overflow-y: auto; font-size: 12.5px; line-height: 1.4; padding-right: 4px; user-select: text; -webkit-user-select: text; } .log p { margin: 0 0 5px; } .log b { color: #fff; } .log .sys { color: #8ee08e; } .log .sys b { color: #8ee08e; } .log .me b { color: var(--gold); }
#chatForm { display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .28); border-radius: 9px; padding: 3px 4px 3px 10px; margin-top: 4px; }
#chatIn { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; padding: 6px 0; outline: none; user-select: text; -webkit-user-select: text; } #chatIn::placeholder { color: #aab3ad; }
#chatForm .soon { font-size: 10px; color: #d9c79c; white-space: nowrap; }
.chatbtn { display: none; position: fixed; z-index: 4; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 20px; }
.chatbtn i, .acts i { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: #d33; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* action buttons */
.acts { position: fixed; right: calc(12px + var(--safeR)); bottom: calc(14px + var(--safeB) + var(--bb, 0px)); display: flex; gap: 10px; z-index: 4; }
.acts button { position: relative; width: 88px; height: 82px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(180deg, rgba(40, 50, 46, .72), rgba(14, 22, 20, .78)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); color: #f3efe6; }
.acts button svg { width: 40px; height: 40px; color: #e8e4da; } .acts button span { font-size: 13px; font-weight: 600; }
.acts button:active { transform: translateY(1px); background: rgba(70, 60, 20, .8); }

/* prompt */
.prompt { position: fixed; left: 50%; bottom: calc(118px + var(--safeB) + var(--bb, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 6; }
.prompt.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.prompt .pz { font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: rgba(12, 20, 18, .7); border: 1px solid var(--line); }
.prompt .btn { font-size: 16px; padding: 11px 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
kbd { font: inherit; font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, .2); border: 1px solid rgba(0, 0, 0, .25); border-radius: 5px; padding: 1px 6px; margin-right: 4px; }

/* joystick */
.joy { display: none; position: fixed; left: calc(22px + var(--safeL)); bottom: calc(24px + var(--safeB) + var(--bb, 0px)); width: 136px; height: 136px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .08), rgba(255, 255, 255, .16)); border: 2px solid rgba(255, 255, 255, .3); touch-action: none; z-index: 5; }
#knob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d0, #e5c55a 60%, #a8841c); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); pointer-events: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 650; text-decoration: none; font-size: 14px; }
.btn.gold { background: linear-gradient(180deg, #f4d978, #c9a227); color: #1a1300; border-color: #f7e7a6; } .btn.sm { padding: 6px 10px; font-size: 12.5px; } .btn:disabled { opacity: .45; cursor: default; }

/* panels */
.panel { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(5, 10, 8, .35); z-index: 10; padding: calc(12px + var(--safeT)) 12px calc(12px + var(--safeB)); }
.panel.show { display: flex; }
.pcard { width: min(640px, 100%); max-height: 100%; display: flex; flex-direction: column; background: rgba(16, 26, 23, .88); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.pcard header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.pcard h2 { margin: 0; font-family: Georgia, serif; font-size: 20px; color: #fff3c4; } .pcard .x { border: 0; background: rgba(255, 255, 255, .1); width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.pbody { padding: 14px 18px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; user-select: text; -webkit-user-select: text; }
.pbody h3 { margin: 16px 0 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #d9c79c; }
.pbody p { margin: 8px 0; line-height: 1.45; font-size: 14px; } .muted { color: var(--muted); } .fine { font-size: 11.5px; color: #9aa59f; } .warn { color: #ffb36b; }
.pbody .w2w-banner { border-radius: 12px; margin-bottom: 6px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); margin-bottom: 7px; }
.hinfo { flex: 1 1 150px; min-width: 0; } .hinfo b { display: block; text-transform: capitalize; } .hinfo small { display: block; font-size: 12px; color: var(--muted); }
.hstats { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); flex: 0 1 190px; } .hstats span { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.meter { display: inline-block; width: 90px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; } .meter b { display: block; height: 100%; }
.give, .plans { display: flex; gap: 5px; flex-wrap: wrap; flex-basis: 100%; justify-content: flex-end; }
.buy { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } .buy b { color: var(--gold); } .buy small { font-size: 11px; color: var(--muted); }
.choices, .travel { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 10px; }
.choice { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid rgba(229, 197, 90, .35); background: rgba(229, 197, 90, .08); color: #fff; text-decoration: none; }
.choice b { font-size: 15px; } .choice span { font-size: 12.5px; color: var(--muted); } .choice:hover { background: rgba(229, 197, 90, .16); }
.rrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; } .rrow b { text-transform: capitalize; } .rrow small { display: block; color: var(--muted); font-size: 12px; }
.items { display: flex; flex-direction: column; gap: 7px; } .item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.item .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .1); flex: none; }
.iinfo { flex: 1; min-width: 0; } .iinfo b { display: block; } .iinfo small { display: block; color: var(--muted); font-size: 12px; } .iinfo em { font-size: 11px; color: #8ee08e; font-style: normal; }
.item select { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; font: inherit; font-size: 13px; } .item select option { color: #000; }
.quests { display: flex; flex-direction: column; gap: 6px; } .quest { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); } .quest .qi { color: var(--gold); width: 18px; } .quest div { flex: 1; } .quest small { display: block; color: var(--muted); font-size: 12px; } .quest em { font-style: normal; color: var(--gold); font-weight: 700; font-size: 13px; } .quest.done { opacity: .6; } .quest.done .qi { color: #8ee08e; }
.soon { text-align: center; padding: 10px 8px; } .soon .big { font-size: 44px; } .soon h3 { color: #fff3c4; text-transform: none; letter-spacing: 0; font-size: 17px; }
.empty { text-align: center; padding: 16px 8px; }
.tip { font-style: italic; color: #e9dfc6; border-left: 3px solid var(--gold); padding-left: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; } .kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; } .kpis small { display: block; color: var(--muted); font-size: 11px; } .kpis b { font-size: 18px; color: var(--gold); }
.ledger div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); } .neg { color: #ff9b8a; } .pos { color: #8ee08e; }
.ctl { width: 100%; border-collapse: collapse; font-size: 13px; } .ctl td { padding: 5px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); } .ctl td:first-child { color: #d9c79c; font-weight: 700; width: 100px; }
.earn { padding-left: 4px; list-style: none; line-height: 1.9; font-size: 14px; }
label { display: block; margin: 10px 0; font-size: 13px; color: #d9c79c; } label input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 15px; user-select: text; -webkit-user-select: text; }

.toast { position: fixed; top: calc(76px + var(--safeT)); left: 50%; transform: translate(-50%, -16px); opacity: 0; transition: .25s; pointer-events: none; padding: 10px 16px; border-radius: 12px; background: rgba(16, 26, 23, .9); border: 1px solid rgba(229, 197, 90, .5); font-size: 14px; z-index: 20; max-width: min(92vw, 520px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fps { position: fixed; left: 50%; top: calc(64px + var(--safeT)); transform: translateX(-50%); font: 11px/1.2 ui-monospace, monospace; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 6px; z-index: 6; }
.legal { position: fixed; left: 50%; bottom: calc(2px + var(--safeB)); transform: translateX(-50%); margin: 0; font-size: 9.5px; color: rgba(255, 255, 255, .62); text-shadow: 0 1px 2px #000; white-space: nowrap; pointer-events: none; z-index: 3; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #24465f, #0b1a26 70%); z-index: 30; transition: opacity .6s; } .loading.hide { opacity: 0; pointer-events: none; }
.lcard { text-align: center; width: min(360px, 86vw); } .logo.big { justify-content: center; display: flex; } .logo.big .lw { font-size: 42px; } .logo.big .shoe { width: 48px; height: 48px; }
.lcard p { color: #d9c79c; font-size: 14px; } .lcard .bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; } .lcard .bar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c9a227, #f4d978); transition: width .3s; }

/* ---------- touch devices ---------- */
@media (pointer: coarse) { .joy { display: block; } .mmhint { display: none; } }
/* tablets (iPad landscape 1180x820 and portrait) */
@media (max-width: 1200px) { .acts button { width: 80px; height: 76px; } .chat { width: 300px; } .acts button svg { width: 36px; height: 36px; } }
@media (pointer: coarse) and (min-width: 761px) { .chat { left: calc(176px + var(--safeL)); width: 290px; } .chat .log { height: 92px; } }
/* phones & narrow screens */
@media (max-width: 760px) {
  .top { top: calc(6px + var(--safeT)); left: calc(8px + var(--safeL)); right: calc(8px + var(--safeR)); gap: 6px; flex-wrap: wrap; }
  .logo .lw { font-size: 21px; } .logo .shoe { width: 24px; height: 24px; } .logo small { font-size: 7.5px; letter-spacing: 1.6px; }
  .money { font-size: 16px; padding: 4px 4px 4px 6px; gap: 5px; } .money .coin { width: 22px; height: 22px; font-size: 13px; } .money button { width: 26px; height: 26px; }
  .where { order: 3; flex-basis: auto; max-width: 62vw; font-size: 12.5px; padding: 5px 8px; gap: 5px; } .where b { overflow: hidden; text-overflow: ellipsis; } .where .sun, .where #clock { display: none; } .where .gear { width: 26px; height: 26px; }
  .side { top: calc(92px + var(--safeT)); right: calc(8px + var(--safeR)); width: auto; } .mmwrap { width: 112px; height: 112px; padding: 3px; } .myh { display: none; }
  .chat { display: none; left: 8px; right: 8px; width: auto; bottom: calc(100px + var(--safeB) + var(--bb, 0px)); z-index: 7; } .chat nav .cx { display: block; }
  body.chat-open .chat { display: block; } .chatbtn { display: block; left: calc(8px + var(--safeL)); top: calc(92px + var(--safeT)); }
  .acts { left: calc(8px + var(--safeL)); right: calc(8px + var(--safeR)); bottom: calc(22px + var(--safeB) + var(--bb, 0px)); justify-content: space-between; gap: 6px; }
  .acts button { flex: 1; width: auto; height: 62px; border-radius: 12px; } .acts button svg { width: 28px; height: 28px; } .acts button span { font-size: 11.5px; }
  .joy { bottom: calc(92px + var(--safeB) + var(--bb, 0px)); left: calc(14px + var(--safeL)); width: 118px; height: 118px; } #knob { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .prompt { bottom: calc(222px + var(--safeB) + var(--bb, 0px)); width: max-content; max-width: 92vw; } .prompt .btn { font-size: 15px; }
  .pcard h2 { font-size: 17px; } .pbody { padding: 12px; } .hstats { flex-basis: 100%; } .meter { width: 120px; }
  .legal { font-size: 8px; white-space: normal; width: 94vw; text-align: center; bottom: calc(1px + var(--safeB)); }
  .tag { font-size: 11px; } .tag.zone { font-size: 11.5px; }
  .toast { top: calc(140px + var(--safeT)); }
}
/* short landscape phones (844x390) */
@media (max-height: 500px) {
  .top { top: calc(4px + var(--safeT)); flex-wrap: nowrap; } .logo small { display: none; } .logo .lw { font-size: 20px; } .logo .shoe { width: 22px; height: 22px; }
  .money { font-size: 15px; padding: 3px 4px 3px 6px; } .money .coin { width: 20px; height: 20px; font-size: 12px; } .money button { width: 24px; height: 24px; }
  .where { font-size: 12px; padding: 4px 8px; order: 0; } .where .sun { display: none; }
  .side { top: calc(44px + var(--safeT)); width: auto; } .mmwrap { width: 96px; height: 96px; padding: 3px; } .myh { display: none; }
  .chat { display: none; left: calc(8px + var(--safeL)); width: 320px; right: auto; bottom: 8px; top: 44px; z-index: 7; } .chat .log { height: auto; max-height: calc(100vh - 150px); } .chat nav .cx { display: block; }
  body.chat-open .chat { display: block; } .chatbtn { display: block; left: auto; right: calc(112px + var(--safeR)); top: calc(46px + var(--safeT)); width: 40px; height: 40px; font-size: 18px; }
  .acts { left: auto; right: calc(8px + var(--safeR)); bottom: calc(8px + var(--safeB) + var(--bb, 0px)); gap: 5px; } .acts button { flex: none; width: 64px; height: 54px; } .acts button svg { width: 24px; height: 24px; } .acts button span { font-size: 10.5px; }
  .joy { bottom: calc(14px + var(--safeB) + var(--bb, 0px)); left: calc(18px + var(--safeL)); width: 108px; height: 108px; }
  .prompt { bottom: calc(70px + var(--safeB) + var(--bb, 0px)); } .prompt .pz { font-size: 12px; } .prompt .btn { padding: 8px 14px; font-size: 14px; }
  .panel { padding: 6px; } .pcard { width: min(720px, 100%); } .pcard header { padding: 6px 10px 6px 14px; } .pbody { padding: 8px 12px 12px; } .pbody .w2w-banner { --bh: 70px !important; height: 70px !important; }
  .legal { display: none; } .toast { top: 46px; }
}

/* ---------- round 2: Gallop-style badges, stores, sales, islands ---------- */
.cls { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 5px; font: 900 12px/1 "Arial Black", Arial, sans-serif; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .4); vertical-align: middle; font-style: italic; }
.lt { display: inline-grid; place-items: center; width: 22px; height: 18px; border-radius: 4px; font: 900 11px/1 "Arial Black", Arial, sans-serif; font-style: italic; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .4); vertical-align: middle; }
.c-E { background: linear-gradient(180deg, #8d969e, #5a636b); } .c-D { background: linear-gradient(180deg, #4fb36a, #2a7a40); } .c-C { background: linear-gradient(180deg, #43a8e0, #1f6ea8); }
.c-B { background: linear-gradient(180deg, #a47ae8, #6a3fb8); } .c-A { background: linear-gradient(180deg, #f08a3a, #c0541a); } .c-S { background: linear-gradient(180deg, #f4d35e, #c99a12); color: #3a2600; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.c-SS { background: linear-gradient(135deg, #ff5f6d, #ffc371 30%, #7ef0c8 55%, #6aa8ff 78%, #e57bff); color: #fff; }
.gstats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 6px 0 4px; } .gs { display: grid; grid-template-columns: 92px 24px 1fr 42px; align-items: center; gap: 6px; font-size: 12.5px; }
.gs .gl { color: var(--muted); font-weight: 700; } .gs em { font-style: normal; font-weight: 800; text-align: right; } .gs em small { color: var(--gold); font-size: 10.5px; margin-left: 2px; }
.gbar { position: relative; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: visible; } .gbar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; background: linear-gradient(90deg, #45b36b, #a9e06a); }
.gbar u { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #f4d978, #f4d978 3px, #c9a227 3px, #c9a227 6px); border-radius: 0 9px 9px 0; } .gbar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; border-radius: 2px; }
.gs .dist { grid-column: span 2; font-weight: 700; }
.hhead { display: flex; gap: 12px; align-items: center; } .hhead .w2w-coat { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; } .hhead small { display: block; color: var(--muted); font-size: 12.5px; }
.slots { display: flex; flex-direction: column; gap: 6px; } .slot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.slot .si { font-size: 20px; width: 30px; text-align: center; } .slot > div:nth-child(2) { flex: 1; min-width: 150px; } .slot small { display: block; color: var(--muted); font-size: 12px; } .slot .sa { display: flex; gap: 5px; flex-wrap: wrap; }
.tier { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; color: #111; } .tier.t0, .tabs .t0.on { background: #b9c1c8; } .tier.t1, .tabs .t1.on { background: #6fb0ee; } .tier.t2, .tabs .t2.on { background: #b98ae6; } .tier.t3, .tabs .t3.on { background: linear-gradient(90deg, #f4d978, #e3b23c); }
.tchips { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; } .tc { font-style: normal; font-size: 11px; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .25); }
.tc.t0 { background: rgba(185, 193, 200, .35); } .tc.t1 { background: rgba(111, 176, 238, .45); } .tc.t2 { background: rgba(185, 138, 230, .5); } .tc.t3 { background: rgba(244, 217, 120, .6); }
.boosts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; } .boosts i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 99px; background: rgba(229, 197, 90, .18); border: 1px solid rgba(229, 197, 90, .45); color: #ffe9a6; }
.tabs { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; } .tabs button { flex: 1; min-width: 80px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 800; font-size: 13px; } .tabs button.on { background: rgba(229, 197, 90, .25); border-color: rgba(229, 197, 90, .7); } .tabs button.t0.on, .tabs button.t1.on, .tabs button.t2.on, .tabs button.t3.on { color: #111; }
.brand { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(120deg, #101418, #2a2f36 60%, #3a2f18); border: 1px solid rgba(229, 197, 90, .5); } .brand b { font: 900 22px/1 Georgia, serif; letter-spacing: .18em; color: #e8c766; } .brand span { color: #d8d0bc; font-size: 12.5px; }
.brand.feedb { background: linear-gradient(120deg, #1d2a12, #3a4a1a 60%, #5a4a12); } .item.tack.t3 { border-color: rgba(229, 197, 90, .7); background: rgba(229, 197, 90, .08); } .item.tack.t2 { border-color: rgba(185, 138, 230, .55); } .item.herb { border-color: rgba(126, 240, 200, .45); }
.race { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 7px; background: rgba(255, 255, 255, .04); }
.race .rh { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 220px; } .race .rh .cls { margin-top: 2px; } .race small { display: block; color: var(--muted); font-size: 12px; } .race .ra { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.race select, .cons input, .estate input { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; font: inherit; font-size: 13px; max-width: 190px; } .race select option { color: #000; }
.ok { color: #8fe0a0; } .ladder { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 10px 0 4px; } .ladder span { opacity: .35; } .ladder span.on { opacity: 1; transform: scale(1.15); } .ladder i { color: var(--muted); font-style: normal; }
.isls { display: flex; flex-wrap: wrap; gap: 6px; } .isl { font-size: 12px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); } .isl.lock { opacity: .6; } .isl .cls { height: 16px; min-width: 20px; font-size: 10px; margin-left: 2px; }
.isles { display: flex; flex-direction: column; gap: 7px; } .isle { display: flex; gap: 10px; align-items: center; padding: 9px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); } .isle > div:nth-child(2) { flex: 1; } .isle small { display: block; color: var(--muted); font-size: 12px; } .isle.lock { opacity: .62; } .isle.here { border-color: rgba(143, 224, 160, .6); }
.isle .it { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font: 900 18px Georgia, serif; color: #111; } .it.t1 { background: #b49a74; } .it.t2 { background: #9fc48a; } .it.t3 { background: #8cc6df; } .it.t4 { background: #e6c98a; } .it.t5 { background: linear-gradient(135deg, #f4d978, #fff4c2, #c9a227); }
.isle .cls { height: 16px; min-width: 20px; font-size: 10px; margin-left: 3px; }
.cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; } .cons > div, .cons label { border: 1px solid var(--line); border-radius: 10px; padding: 8px; } .cons small, .cons label { display: block; color: var(--muted); font-size: 11.5px; } .cons b { font-size: 16px; color: var(--gold); } .cons input { width: 100%; margin-top: 3px; }
.pill { display: inline-block; font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); white-space: nowrap; } .pill.ok { background: rgba(80, 180, 110, .25); border-color: rgba(143, 224, 160, .6); color: #c9f5d2; }
.auction { text-align: center; } .hammer { color: var(--muted); font-size: 13px; margin-bottom: 8px; } .bids { min-height: 150px; max-height: 230px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.bids p { margin: 0; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); animation: pop .25s ease-out; font-size: 14px; } .bids p:first-child { background: rgba(229, 197, 90, .22); font-size: 17px; } .bids b { color: var(--gold); }
.ares .sold { font: 900 34px Georgia, serif; color: #8fe0a0; margin: 10px 0 0; } .ares .rna { font: 900 24px Georgia, serif; color: #f3a37a; margin: 10px 0 0; }
.studs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; } .stud { display: flex; gap: 8px; align-items: center; text-align: left; padding: 7px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; } .stud.on { border-color: var(--gold); background: rgba(229, 197, 90, .14); }
.stud .w2w-coat { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; } .stud small { display: block; color: var(--muted); font-size: 11.5px; } .stud .mini { font-size: 10.5px; color: var(--muted); } .stud .mini .lt { width: 18px; height: 15px; font-size: 9.5px; }
.pv { display: flex; flex-wrap: wrap; gap: 6px; } .pv span { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; display: inline-flex; gap: 5px; align-items: center; } .pv b { color: #fff; }
.estate { border: 1px solid rgba(229, 197, 90, .45); border-radius: 12px; padding: 10px 12px; margin-top: 10px; background: rgba(229, 197, 90, .06); } .estate h3 { margin-top: 0; } .estate label { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); } .estate input { width: 100%; max-width: 320px; display: block; margin-top: 3px; }
.prog { position: relative; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; } .prog b { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c9a227, #f4d978); } .prog span { position: relative; display: block; text-align: center; font-size: 12px; font-weight: 800; line-height: 22px; text-shadow: 0 1px 2px #000; }
.lvls { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 7px; } .lvls > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; } .lvls small { color: var(--muted); font-size: 12px; } .lvls em { font-style: normal; font-weight: 800; color: var(--gold); } .lvls .done { border-color: rgba(143, 224, 160, .6); background: rgba(80, 180, 110, .1); } .lvls .next { border-color: var(--gold); }
.res { margin: 0 0 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 13.5px; }
.fade { position: fixed; inset: 0; background: #fff8ea; opacity: 0; pointer-events: none; z-index: 9; }
.islno { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; margin-right: 4px; border-radius: 6px; background: linear-gradient(180deg, #f4d978, #c9a227); color: #1a1300; font: 900 12px/1 Georgia, serif; }
@media (max-width: 600px) { .gstats { grid-template-columns: 1fr; } .gs { grid-template-columns: 88px 24px 1fr 40px; } .studs { grid-template-columns: 1fr; } }

/* ---------------- market: auction ring, sales ring, clockers, mail, trainers corner, dealership ---------------- */
.panel.wide .pcard { width: min(900px, 100%); }
.panel.ring .pcard { width: min(1100px, 100%); }
.salehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; margin: 4px 0 8px; background: linear-gradient(135deg, #1b2c44, #0e1a2a); border: 1px solid rgba(229, 197, 90, .35); }
.salehead > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .salehead small { font-size: 10.5px; letter-spacing: .12em; color: var(--gold); font-weight: 800; } .salehead b { font-family: Georgia, serif; font-size: 18px; color: #fff3c4; } .salehead span { font-size: 12.5px; color: var(--muted); }
.salehead.select { background: linear-gradient(135deg, #3a2a10, #1a1206); border-color: var(--gold); } .salehead.deals { background: linear-gradient(135deg, #3d2449, #1c1024); } .salehead.clk { background: linear-gradient(135deg, #1f2a2e, #0c1214); border-color: rgba(255, 209, 0, .5); } .salehead.tcorn { background: linear-gradient(135deg, #34482a, #141e10); } .salehead.dealer { background: linear-gradient(135deg, #3a2414, #171009); border-color: rgba(224, 112, 42, .55); }
.lot { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); margin-bottom: 7px; flex-wrap: wrap; }
.lot.done { opacity: .6; } .lot.sold .hip b { color: #8fe0a0; }
.lot .hip { flex: none; width: 50px; text-align: center; font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; } .lot .hip b { display: block; font-family: Georgia, serif; font-size: 22px; color: #fff3c4; letter-spacing: 0; }
.lot .ph, .lot img.thumb, .lot > img { flex: none; }
.lotb { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; } .lotb > b { font-size: 15px; } .lotb small { font-size: 12px; color: var(--muted); line-height: 1.4; } .lotb small b { color: #f3efe6; }
.lotr { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; margin-left: auto; } .lotr b { font-size: 15px; color: var(--gold); }
.proxy { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .proxy input { width: 110px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: #fff; }
.stag { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c, #888) 30%, transparent); border: 1px solid var(--c, #888); color: #fff; }
.bullet { color: #ffd100; font-weight: 800; }
.rtable { font-size: 12.5px; border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 52vh; }
.rtable > div { display: grid; grid-template-columns: 1.3fr .5fr 1.6fr 1.2fr 1fr 1.2fr; gap: 6px; padding: 6px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); align-items: center; min-width: 560px; }
.rtable.works > div { grid-template-columns: .9fr 1.6fr .9fr .9fr .8fr .6fr .7fr; }
.rtable .rh { position: sticky; top: 0; background: #14241e; color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; z-index: 1; }
.rtable .me { background: rgba(229, 197, 90, .1); } .rtable .bul { background: rgba(255, 209, 0, .07); } .rtable small { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; align-items: center; } .filters select { padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); color: #fff; border: 1px solid var(--line); font-size: 13px; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.ringwrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; } .ring3d { position: relative; min-height: 340px; border-radius: 14px; overflow: hidden; background: #1a1410; border: 1px solid rgba(229, 197, 90, .3); } .ring3d canvas { display: block; width: 100% !important; height: 100% !important; position: absolute; inset: 0; }
.ringload { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.ringside { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ringbid { display: flex; gap: 8px; } .ringbid > div { flex: 1; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); } .ringbid small { display: block; font-size: 11px; color: var(--muted); } .ringbid b { font-size: 22px; font-family: Georgia, serif; color: #fff3c4; } .ringbid span { display: block; font-size: 12px; color: var(--gold); }
.ringbid.hot b, #ringTime.hot { color: #ff7b5c; }
.ringlog { max-height: 150px; overflow: auto; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.btn.big { padding: 12px 24px; font-size: 17px; }
.mail { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; min-height: 300px; }
.mlist { display: flex; flex-direction: column; gap: 5px; max-height: 56vh; overflow: auto; }
.mrow { display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; } .mrow small { display: block; font-size: 11.5px; color: var(--muted); } .mrow.new { border-color: var(--gold); } .mrow.new b::after { content: ' •'; color: var(--gold); } .mrow.on { background: rgba(229, 197, 90, .14); }
.mview { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); font-size: 13.5px; line-height: 1.5; } .mview p { margin: 6px 0; }
.mailc { display: flex; flex-direction: column; gap: 8px; } .mailc label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); } .mailc input, .mailc select, .mailc textarea { padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); color: #fff; border: 1px solid var(--line); font: inherit; }
.gossip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.gcard { padding: 10px 12px; border-radius: 12px; background: rgba(255, 243, 196, .07); border: 1px solid rgba(229, 197, 90, .25); font-size: 13px; line-height: 1.45; } .gcard b { color: var(--gold); display: block; font-size: 12px; }
.postf { display: flex; gap: 6px; margin: 6px 0 10px; } .postf input { flex: 1; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: #fff; font: inherit; -webkit-user-select: text; user-select: text; }
.board { display: flex; flex-direction: column; gap: 7px; max-height: 44vh; overflow: auto; }
.post { padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); } .post p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; } .post small { color: var(--muted); } .post.player { border-color: rgba(229, 197, 90, .4); }
.post.reply { margin: 7px 0 0 14px; background: rgba(255, 255, 255, .03); }
.van { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); margin-bottom: 8px; flex-wrap: wrap; }
.van img { width: 180px; height: 90px; object-fit: cover; border-radius: 10px; background: #d8d2c4; flex: none; } .van > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; } .van small { color: var(--muted); font-size: 12.5px; } .van.own { border-color: var(--gold); background: rgba(229, 197, 90, .1); } .van.lock img { filter: grayscale(.8) brightness(.7); }
.vr { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; } .vr b { color: var(--gold); font-size: 16px; }
.iart { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.item .ico:has(.iart) { padding: 0; overflow: hidden; width: 56px; height: 56px; border: 2px solid rgba(255, 255, 255, .15); }
.item .ico:has(.iart.it1) { border-color: #9ec3d9; } .item .ico:has(.iart.it2) { border-color: #e5c55a; } .item .ico:has(.iart.it3) { border-color: #c58cff; }
.tc .iart { border-radius: 3px; } .tc:has(.iart) { padding: 0; overflow: hidden; }
.slot .si:has(.iart) { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; }
@media (max-width: 760px) {
  .ringwrap, .mail { grid-template-columns: 1fr; } .ring3d { min-height: 230px; } .salehead { flex-wrap: wrap; } .salehead b { font-size: 16px; }
  .van img { width: 120px; height: 60px; } .lot .hip { width: 38px; } .lotr { align-items: stretch; width: 100%; }
  .acts button span { font-size: 10px; }
}
@media (max-height: 500px) { .ringwrap { grid-template-columns: 1.2fr 1fr; } .ring3d { min-height: 220px; } }
#ringLot { display: flex; gap: 10px; align-items: center; } #ringLot .hip { width: 54px; text-align: center; font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; } #ringLot .hip b { display: block; font-family: Georgia, serif; font-size: 24px; color: #fff3c4; } #ringLot > div:last-child b { font-size: 16px; display: block; } #ringLot small { display: block; font-size: 12px; color: var(--muted); }
.lotr .btns { margin: 0; } .lotr { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 260px; } .lotr > small:first-child, .lotr > b { width: 100%; text-align: right; }
.rtable span small { margin-left: 5px; }

.money .gpm { margin-left: 8px; padding: 4px 9px; border-radius: 999px; background: linear-gradient(180deg, #3a2f7a, #241c55); border: 1px solid #9d8cff; color: #e6e0ff; text-decoration: none; font-weight: 800; font-size: 13px; white-space: nowrap; }

/* compact past performances (buy screens, racing form) */
.ppm { border-collapse: collapse; font-size: 11.5px; margin-top: 5px; width: 100%; max-width: 520px; font-variant-numeric: tabular-nums; }
.ppm th { text-align: left; font-weight: 700; color: #d8b45a; font-size: 10.5px; padding: 1px 5px; border-bottom: 1px solid rgba(216,180,90,.35); }
.ppm td { padding: 2px 5px; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; } .ppm tr.w td { color: #9ef0a6; } .ppm i { color: #b7c7d3; font-style: normal; }
.pp-none { color: #b7c7d3; } .pprow td { border-top: 0 !important; padding-top: 0 !important; }
.money .mylogo { display: flex; margin-right: 6px; } .money .mylogo:empty { display: none; }

.race.lvr { border-left: 5px solid var(--lv, #888); }
.race .dayp { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.1); font-weight: 700; letter-spacing: .3px; }

.drivebtn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 30; padding: 10px 18px; border-radius: 14px; border: 1px solid #f3d98a; background: linear-gradient(180deg, #f3d98a, #b8933d); color: #1b1305; font: 800 15px system-ui; box-shadow: 0 6px 18px rgba(0,0,0,.4); cursor: pointer; }
body:has(.panel.show) .w2w-help, body:has(.panel.show) .w2w-coach { display: none; }
.pitch { margin: 8px 0; padding: 9px 13px; border-left: 4px solid #c9a24b; background: rgba(201,162,75,.1); border-radius: 0 10px 10px 0; font-style: italic; line-height: 1.45; } .pitch cite { display: block; margin-top: 4px; font-size: 12px; font-style: normal; opacity: .7; }
.majorban { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 10px; border-radius: 12px; border: 1px solid #d8b45a; background: linear-gradient(120deg, rgba(216,180,90,.18), rgba(11,29,43,.6)); }
.majorban.live { border-color: #3fae6a; background: linear-gradient(120deg, rgba(63,174,106,.22), rgba(11,29,43,.6)); }
.majorban small { display: block; font: 700 10px system-ui; letter-spacing: 1.2px; color: #f3d98a; } .majorban b { display: block; font: 700 15px Georgia, serif; } .majorban span { font-size: 12px; opacity: .8; }
.ridebtn { bottom: calc(205px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #e8f3d8, #8fbf5a); border-color: #cfe9b0; }
.ponycard { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px; border: 1px solid #8fbf5a; background: linear-gradient(120deg, rgba(143,191,90,.16), rgba(11,29,43,.5)); }
.ponycard .ico { font-size: 40px; text-align: center; } .ponycard small { display: block; opacity: .85; margin: 2px 0 6px; }
@media (max-width: 560px) { .ponycard { grid-template-columns: 48px 1fr; } .ponycard > .btn { grid-column: 1 / -1; } }
/* Ride / Dismount: right-hand side, above the action buttons, thumb-friendly */
.drivebtn.ridebtn { left: auto; right: calc(14px + var(--safeR, 0px)); transform: none; bottom: calc(92px + var(--safeB, 0px) + var(--bb, 0px)); padding: 14px 20px; font-size: 17px; border-radius: 18px; min-width: 132px; }
@media (max-width: 760px) { .drivebtn.ridebtn { bottom: calc(96px + var(--safeB, 0px) + var(--bb, 0px)); } }
/* rival barns: public form only */
.rvh{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.rvh>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.rvh small{line-height:1.35}
.rvh .give{margin-top:4px}

/* chat moderation: report / mute buttons and the small chooser */
.log .cact { opacity: .0; transition: opacity .15s; white-space: nowrap; } .log p:hover .cact, .log p:focus-within .cact { opacity: .9; } @media (hover: none) { .log .cact { opacity: .7; } }
.log .cact button { border: 0; background: none; padding: 0 2px; font-size: 12px; cursor: pointer; }
.log .cmod { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: rgba(8,24,38,.92); border: 1px solid rgba(216,180,90,.5); border-radius: 8px; padding: 6px; margin: 2px 0 6px; font-size: 11.5px; }
.log .cmod b { width: 100%; color: #f3d98a; } .log .cmod button { border: 1px solid #2f5574; background: #16324a; color: #e9f0f5; border-radius: 6px; padding: 3px 7px; font-size: 11px; cursor: pointer; } .log .cmod span { display: inline-flex; gap: 4px; align-items: center; } .log .cmod a { color: #f3d98a; margin-left: auto; }