﻿/* GLOOP â€” cozy pastel UI over the canvas world. */

/* One self-hosted font everywhere (UI + canvas) so type is identical on every
   device, desktop and mobile - no more Segoe-vs-Georgia mismatch. */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/nunito-400.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/nunito-600.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/nunito-800.woff2') format('woff2'); }
:root { --font: 'Nunito', system-ui, -apple-system, sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #1c1812;
  font-family: var(--font);
  user-select: none;
  -webkit-user-select: none;
}

input, textarea { user-select: text; -webkit-user-select: text; }

#game { display: block; position: fixed; inset: 0; }

/* â”€â”€ login â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

#login[hidden], #hud[hidden] { display: none; }

#login {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(140, 220, 180, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 80%, rgba(120, 180, 230, 0.2), transparent 55%),
    linear-gradient(160deg, #2d5a52, #1d3a44);
}

.login-card {
  text-align: center;
  background: rgba(255, 252, 240, 0.97);
  border-radius: 22px;
  padding: 30px 42px 26px;
  max-width: 360px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.login-card h1 {
  font-size: 42px;
  letter-spacing: 0.18em;
  color: #4a3a22;
  margin: 4px 0 2px;
}

.login-tag { color: #7a6a4d; font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
.login-rule { margin-top: 14px; font-size: 13px; color: #7a6a4d; }

/* buy $GLOOP block on the login gate */
.login-buy[hidden] { display: none; }
.login-buy {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(122, 106, 77, 0.22);
}
.login-buy__label { font-size: 12px; color: #7a6a4d; margin-bottom: 8px; }
.login-buy__ca {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  background: rgba(122, 106, 77, 0.09); border-radius: 9px;
  padding: 7px 9px; margin-bottom: 10px;
}
.login-buy__ca code { font-size: 11px; color: #5a4d33; word-break: break-all; line-height: 1.3; }
.login-buy__copy {
  flex: none; cursor: pointer; border: none; background: #6aa84c; color: #fff;
  font-family: inherit; font-weight: 700; font-size: 11px;
  padding: 5px 10px; border-radius: 7px;
}
.login-buy__copy:hover { background: #5c9341; }
.login-buy__btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.login-buy__btn {
  text-decoration: none; font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: 10px;
}
.login-buy__btn--pump { background: #6aa84c; color: #fff; box-shadow: 0 3px 0 #4e7d38; }
.login-buy__btn--pump:active { transform: translateY(2px); box-shadow: 0 1px 0 #4e7d38; }
.login-buy__btn--chart { background: rgba(122, 106, 77, 0.14); color: #5a4d33; }

/* â”€â”€ buttons & inputs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.btn {
  border: 0; cursor: pointer;
  background: #7a5c34;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 12px;
  box-shadow: 0 3px 0 #543f22;
  transition: transform 0.06s, box-shadow 0.06s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #543f22; }
.btn:disabled { background: #a89878; box-shadow: 0 3px 0 #8a7c62; cursor: default; transform: none; }
.btn--big { width: 100%; padding: 13px 18px; font-size: 16px; margin-top: 10px; }
.btn--small { padding: 5px 12px; font-size: 12px; border-radius: 9px; }
.btn--gold { background: #c79a3a; box-shadow: 0 3px 0 #8a6a1d; }
.btn--gold:active { box-shadow: 0 1px 0 #8a6a1d; }

.input {
  display: block; width: 100%;
  margin: 8px 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 2px solid #c9b78c;
  font-size: 14px;
  background: #fff;
}

/* â”€â”€ HUD â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }

/* unit frame — MMO-style player card, top-left */
.unitframe {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 10px; align-items: center;
  background: linear-gradient(180deg, rgba(48, 38, 24, 0.94), rgba(30, 24, 14, 0.94));
  border: 1px solid #6b5638;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.15), 0 4px 18px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 8px 14px 8px 8px;
  min-width: 240px;
}
#uf-portrait {
  background: radial-gradient(circle at 50% 35%, #3d4f33, #232b1c);
  border: 1px solid #6b5638;
  border-radius: 9px;
}
.unitframe__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.unitframe__row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.unitframe__row b { color: #f0dfae; font-size: 14px; letter-spacing: 0.02em; }
.unitframe__cmb {
  color: #e3b758; font-size: 12px; font-weight: 800;
  background: rgba(0,0,0,0.3); padding: 1px 8px; border-radius: 99px;
}
.uf-hpbar {
  position: relative; height: 14px;
  background: #1c150c;
  border: 1px solid #5a4730;
  border-radius: 7px;
  overflow: hidden;
}
.uf-hpbar__fill {
  height: 100%; width: 100%;
  background: linear-gradient(180deg, #6fc46a, #3f8a3c);
  transition: width 0.25s ease;
}
.uf-hpbar__text {
  position: absolute; inset: 0;
  text-align: center; font-size: 10px; font-weight: 800; line-height: 14px;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.unitframe__row--sub { font-size: 11px; color: #d6c79e; justify-content: flex-start; gap: 12px; }
.uf-slime #hud-slime { color: #9fdc7a; font-weight: 800; }
.uf-online { margin-left: auto; color: #a6967a; }
.uf-buff {
  color: #9fdc7a; font-weight: 800; font-size: 10px;
  background: rgba(120, 200, 90, 0.14);
  border: 1px solid rgba(120, 200, 90, 0.4);
  padding: 1px 7px; border-radius: 99px;
}
.uf-buff[hidden] { display: none; }

/* combat style picker */
.stylebox {
  position: absolute; top: 108px; left: 12px;
  display: flex; gap: 5px;
}
.style-chip {
  position: relative;
  border: 1px solid #5a4730; border-radius: 9px;
  background: linear-gradient(180deg, rgba(48, 38, 24, 0.92), rgba(30, 24, 14, 0.92));
  color: #d6c79e; font-size: 11px; font-weight: 700;
  padding: 6px 11px; cursor: pointer;
  transition: border-color 0.1s, box-shadow 0.1s;
}
.style-chip:hover { border-color: #c79a3a; }
.style-chip--on {
  border-color: #e3b758; color: #f0dfae;
  box-shadow: 0 0 9px rgba(199, 154, 58, 0.5), inset 0 0 7px rgba(199, 154, 58, 0.25);
}
.style-chip::after {
  content: attr(data-tip);
  position: absolute; top: 110%; left: 0;
  background: #1c150c; color: #f0dfae;
  font-size: 10px; font-weight: 600;
  padding: 4px 9px; border-radius: 7px;
  border: 1px solid #6b5638;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.12s;
  z-index: 20;
}
.style-chip:hover::after { opacity: 1; }
.stylebox--pulse .style-chip {
  border-color: #ffd76e;
  animation: abpulse 1.1s ease-in-out infinite;
}

.story-quest {
  background: #e4d3aa;
  border-left: 3px solid #c79a3a;
  border-radius: 11px;
  padding: 9px 13px;
  display: flex; flex-direction: column; gap: 3px;
}
.story-quest__head { display: flex; justify-content: space-between; align-items: center; }

/* trade window */
.tradewin { width: min(96vw, 560px); z-index: 45; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-col { display: flex; flex-direction: column; gap: 7px; }
.trade-col h3 { font-size: 14px; }
.trade-status { text-align: center; font-size: 12px; color: #8a7a5c; font-style: italic; }
.gear-cluster { display: flex; align-items: center; gap: 7px; }
@media (max-width: 600px) { .trade-cols { grid-template-columns: 1fr; } }

/* action bar — framed grid, bottom-right */
.actionbar {
  position: absolute; right: 14px; bottom: 14px;
  display: grid; grid-template-columns: repeat(8, 46px);
  gap: 5px;
  background: linear-gradient(180deg, rgba(48, 38, 24, 0.94), rgba(30, 24, 14, 0.94));
  border: 1px solid #6b5638;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.15), 0 4px 18px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 7px;
}
.ab-btn {
  position: relative;
  width: 46px; height: 44px;
  border: 1px solid #5a4730;
  border-radius: 9px;
  background: linear-gradient(180deg, #44361f, #2c2316);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.06s, box-shadow 0.1s, border-color 0.1s;
}
/* the open tab stays lit, OSRS-style */
.ab-btn--active {
  background: linear-gradient(180deg, #7a6238, #5a4730) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 0 1px #c9a85e !important;
}
.ab-btn:hover {
  border-color: #c79a3a;
  box-shadow: 0 0 10px rgba(199, 154, 58, 0.45), inset 0 0 6px rgba(199, 154, 58, 0.2);
  transform: translateY(-2px);
}
.ab-btn__emoji { font-size: 21px; }
.ab-btn__icon { width: 23px; height: 23px; display: flex; color: #e6cd92; transition: color 0.1s; }
.ab-btn__icon svg { width: 100%; height: 100%; }
.ab-btn:hover .ab-btn__icon { color: #ffe9a8; }
.ab-btn--active .ab-btn__icon { color: #fff1c4; }

/* free-look recenter control - only visible while the camera is unlocked */
.recenter-btn {
  position: fixed; top: 12px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 30; display: none;
  padding: 7px 14px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: #f0dfae; cursor: pointer;
  background: linear-gradient(180deg, #7a6238, #5a4730);
  border: 1px solid #c9a85e; border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 94, 0.3);
  opacity: 0; transition: opacity 0.15s, transform 0.15s;
}
.recenter-btn.show { display: block; opacity: 1; transform: translateX(-50%) translateY(0); }
.recenter-btn:hover { border-color: #ffd97a; box-shadow: 0 0 12px rgba(199, 154, 58, 0.5); }
.ab-btn kbd {
  position: absolute; right: 3px; bottom: 2px;
  font-size: 8px; color: #a6967a; font-family: inherit;
}
.ab-btn::after {
  content: attr(data-tip);
  position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%) translateY(3px);
  background: #1c150c; color: #f0dfae;
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 7px;
  border: 1px solid #6b5638;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.12s, transform 0.12s;
}
.ab-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* â”€â”€ chat â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.chatdock {
  position: absolute; left: 12px; bottom: 14px;
  width: 330px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(48, 38, 24, 0.92), rgba(30, 24, 14, 0.92));
  border: 1px solid #6b5638;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.15), 0 4px 18px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 0.25s;
}
.chatdock:not(:hover):not(:focus-within) { opacity: 0.88; }
.chatdock__head {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid #5a4730;
}
.chatdock__title {
  flex: 1;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  color: #e3b758; text-transform: uppercase;
}
.chatdock__btn {
  border: 0; background: none; cursor: pointer;
  color: #d6c79e; font-size: 13px;
  padding: 2px 6px; border-radius: 6px;
}
.chatdock__btn:hover { background: rgba(255, 255, 255, 0.1); }
.chatdock--collapsed .chatlog,
.chatdock--collapsed .chatinput { display: none; }
/* folded = JUST the 💬 toggle bubble, so it never overlaps the action bar on phones (ekingloop's ask) */
.chatdock--collapsed .chatdock__head > :not(#chat-toggle) { display: none; }
.chatdock--collapsed { width: auto; }
.chatdock--collapsed .chatdock__head { padding: 2px; }
.chatdock--collapsed #chat-toggle { font-size: 18px; padding: 6px 9px; }

.chatlog {
  height: 138px; overflow-y: auto;
  font-size: 12px; color: #ece1c4;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.chatline { line-height: 1.4; word-wrap: break-word; }
.chatline b { color: #9fc9ff; font-weight: 700; }
.chatline b.chatline--self { color: #e3b758; }
.chatline--sys { color: #b9ab86; font-style: italic; }
.chatinput {
  border: 0;
  border-top: 1px solid #5a4730;
  padding: 9px 12px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.28);
  color: #ece1c4;
  outline: none;
}
.chatinput::placeholder { color: #a6967a; }
.chatinput:focus { background: rgba(0, 0, 0, 0.45); }

/* custom scrollbars */
.chatlog::-webkit-scrollbar, .panel__body::-webkit-scrollbar { width: 8px; }
.chatlog::-webkit-scrollbar-thumb, .panel__body::-webkit-scrollbar-thumb {
  background: #6b5638; border-radius: 6px;
}
.chatlog::-webkit-scrollbar-track, .panel__body::-webkit-scrollbar-track { background: transparent; }

/* â”€â”€ panels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* OSRS-style interface pane: docked above the tab strip, world stays visible.
   Open a tab -> the pane swaps in place; same tab -> closes. */
.panel {
  position: fixed; z-index: 30;
  right: 14px; bottom: 132px;
  width: min(94vw, 420px);
  max-height: calc(100vh - 220px);
  display: flex; flex-direction: column;
  background: #efe2c0;
  border: 1px solid #6b5638;
  border-radius: 14px;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: panelIn 0.13s ease-out;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* small screens: the pane takes the stage like before */
@media (max-width: 700px), (max-height: 560px) {
  .panel {
    right: 50%; bottom: auto; top: 50%;
    transform: translate(50%, -50%);
    width: min(94vw, 460px);
    max-height: 84vh;
    animation: none;
  }
}

.panel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, #5a4730, #44351f);
  font-weight: 800; font-size: 16px; color: #f0dfae;
  border-bottom: 2px solid #2e2414;
}
.panel__close {
  border: 0; background: none; cursor: pointer;
  font-size: 16px; color: #d6c79e;
  padding: 4px 8px; border-radius: 8px;
}
.panel__close:hover { background: rgba(255, 255, 255, 0.12); }

.panel__body {
  padding: 16px 18px;
  overflow-y: auto;
  color: #3d3122;
  font-size: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.panel__body h3 { color: #4a3a22; font-size: 15px; margin-top: 6px; }

.muted { color: #8a7a5c; }
.tiny { font-size: 12px; }
.error { color: #c45d5d; font-size: 13px; min-height: 1em; }

.tag {
  display: inline-block;
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tag--green { background: #7a5c34; }

/* â”€â”€ eggs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.egg-row { display: flex; gap: 12px; }
.egg-card {
  flex: 1;
  text-align: center;
  background: #e4d3aa;
  border-radius: 14px;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.egg-card--gold { background: #e9d29a; }
.egg-art { font-size: 42px; }
.odds { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 11px; font-weight: 700; }

/* â”€â”€ pets / bag / listings â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.pet-grid { display: flex; flex-direction: column; gap: 10px; }
.pet-card {
  display: flex; align-items: center; gap: 12px;
  background: #e4d3aa;
  border-radius: 14px;
  padding: 10px 14px;
}
.pet-card--active { outline: 3px solid #c79a3a; }
.pet-card__info { flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.gloop-canvas { flex-shrink: 0; }

.bar { width: 100%; height: 7px; background: #cdbb90; border-radius: 99px; overflow: hidden; }
.bar__fill { height: 100%; background: linear-gradient(90deg, #c79a3a, #7a5c34); border-radius: 99px; }

.bag-row {
  display: flex; align-items: center; gap: 10px;
  background: #e4d3aa;
  border-radius: 11px;
  padding: 8px 13px;
  font-size: 13px;
}
.bag-row > span:nth-child(2), .bag-row > span:first-child + span { flex: 1; }
.bag-row__icon { font-size: 18px; }
.bag-row--limited { background: #e9d29a; }
.stepper { display: flex; align-items: center; gap: 8px; font-weight: 700; }
/* collection-log completion bar */
.collbar { height: 10px; background: #2c241a; border-radius: 6px; overflow: hidden; margin: 2px 0 6px; }
.collbar__fill { height: 100%; background: linear-gradient(90deg, #c79a4b, #f3d27a); transition: width .4s ease; }

.listing {
  display: flex; align-items: center; gap: 12px;
  background: #e4d3aa;
  border-radius: 12px;
  padding: 8px 13px;
}
.listing__info { flex: 1; }
.listing__icon { font-size: 26px; }

.merchant-status { display: flex; flex-direction: column; gap: 4px; }
.race-info { display: flex; flex-direction: column; gap: 4px; }
.tabs { display: flex; gap: 8px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: #e4d3aa;
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
}
.stat b { font-size: 17px; color: #4a3a22; }
code { font-size: 11px; word-break: break-all; }

/* â”€â”€ quest tracker / dialogue / skills / dex â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.quest-tracker {
  position: absolute; top: 152px; right: 14px;
  max-width: 230px;
  background: rgba(30, 24, 14, 0.85);
  border-left: 3px solid #ffd76e;
  border-radius: 10px;
  padding: 9px 13px;
  color: #ece1c4;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.quest-tracker:hover { background: rgba(74, 58, 38, 0.94); }
.qt-title { font-size: 12px; font-weight: 800; color: #ffd76e; margin-bottom: 3px; }
.qt-hint { font-size: 11px; color: #d6c79e; line-height: 1.4; }
.qt-hint--done { color: #9fdc7a; }
.qt-prog { font-size: 11px; font-weight: 700; color: #9fdc7a; margin-top: 2px; }

/* Deep Maw run HUD - top-centre so it clears the minimap + quest tracker */
.maw-hud {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 35; min-width: 184px; text-align: center;
  background: rgba(28, 14, 26, 0.88);
  border: 1px solid #7a3a6a; border-top: 3px solid #ff5cd6;
  border-radius: 10px; padding: 8px 14px; color: #f1dcec;
  backdrop-filter: blur(4px); pointer-events: auto;
}
.maw-hud__title { font-size: 12px; font-weight: 800; color: #ff9be0; }
.maw-hud__title span { font-weight: 600; color: #d6a9cd; }
.maw-hud__wave { font-size: 15px; margin-top: 2px; }
.maw-hud__mod { font-size: 11px; color: #e0b7d8; margin-top: 1px; }
.maw-hud__alive { font-size: 12px; color: #ffd76e; margin-top: 2px; }
.maw-hud__flee {
  margin-top: 6px; font-size: 11px; padding: 3px 10px; cursor: pointer;
  background: #3a1f33; color: #f1c7e6; border: 1px solid #7a3a6a; border-radius: 6px;
}
.maw-hud__flee:hover { background: #52273f; }
.maw-hud__sup { font-size: 12px; color: #9fe87a; margin-top: 2px; }
@media (max-width: 760px) { .maw-hud { top: 60px; min-width: 150px; padding: 6px 10px; } }

/* persistent skill-XP progress widget - last skill trained + bar to next level */
.xp-hud {
  position: absolute; top: 156px; left: 12px; z-index: 34; /* below the stance box (top 108) */
  min-width: 140px; padding: 6px 9px;
  background: rgba(12, 20, 15, 0.72); border: 1px solid #2a4a3c; border-radius: 9px;
  color: #dceae3; pointer-events: none;
}
.xp-hud__top { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.xp-hud__icon { font-size: 14px; }
.xp-hud__lvl { margin-left: auto; color: #ffd76e; font-weight: 700; }
.xp-hud__bar { height: 6px; background: #14241c; border-radius: 4px; margin: 4px 0 2px; overflow: hidden; }
.xp-hud__fill { height: 100%; background: linear-gradient(90deg, #6fcf5a, #a6ef82); transition: width .25s ease; }
.xp-hud__sub { font-size: 10px; color: #9aa7a0; }
@media (max-width: 760px) { .xp-hud { top: 128px; min-width: 116px; padding: 4px 7px; } }

.dialogue {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  z-index: 40;
  animation: slidein 0.2s;
}
.dialogue__card {
  display: flex; align-items: center; gap: 12px;
  background: #efe2c0;
  border-radius: 16px;
  padding: 12px 18px;
  max-width: 480px;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
}
.dialogue__text { flex: 1; font-size: 13px; color: #3d3122; }
.dialogue__text b { color: #4a3a22; display: block; margin-bottom: 2px; }
.dialogue__text p { line-height: 1.45; }

.skill-row {
  background: #e4d3aa;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.skill-row__head { display: flex; justify-content: space-between; }

.dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 6px;
}
.dex-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: #e4d3aa;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
}
.dex-cell--unknown { color: #a89878; font-weight: 800; font-size: 18px; }

/* Collection Log chips */
.coll-grid { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 8px; }
.coll-chip {
  font-size: 11px; padding: 3px 8px; border-radius: 8px;
  background: rgba(122, 106, 77, 0.14); color: #a89878;
  border: 1px solid transparent; text-transform: capitalize; white-space: nowrap;
}
.coll-chip--on { background: #6aa84c; color: #fff; border-color: #4e7d38; }

.bag-row--dim { opacity: 0.55; }

/* â”€â”€ reveal + toasts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.reveal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 25, 22, 0.75);
  animation: fadein 0.25s;
}
.reveal__card {
  text-align: center;
  background: #efe2c0;
  border-radius: 20px;
  padding: 26px 38px;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  animation: pop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.reveal__card h2 { letter-spacing: 0.08em; }

#toasts {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 70;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  pointer-events: none;
}

/* objective pulse on action-bar buttons */
.ab-btn--pulse {
  border-color: #ffd76e !important;
  animation: abpulse 1.1s ease-in-out infinite;
}
@keyframes abpulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255, 215, 110, 0.35); }
  50% { box-shadow: 0 0 16px rgba(255, 215, 110, 0.85), inset 0 0 8px rgba(255, 215, 110, 0.3); }
}

/* welcome modal */
.welcome {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 14, 8, 0.78);
  animation: fadein 0.3s;
}
.welcome__card {
  background: #efe2c0;
  border-radius: 18px;
  padding: 24px 28px;
  max-width: 560px; width: 92vw;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.welcome__card h2 { color: #4a3a22; text-align: center; font-family: var(--font); }
.welcome__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.welcome__item {
  background: #e4d3aa; border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center;
}
.welcome__emoji { font-size: 26px; }
.welcome__item b { color: #4a3a22; font-size: 13px; }
.welcome__item p { font-size: 11px; color: #6b5b40; line-height: 1.4; }

/* guide */
.guide-sec { display: flex; flex-direction: column; gap: 5px; }
.guide-p { font-size: 13px; line-height: 1.55; color: #3d3122; }
.guide-p b { color: #4a3a22; }

/* responsive: the pond fits every screen */
@media (max-width: 1100px) {
  .chatdock { width: 270px; }
  .chatlog { height: 110px; }
  .actionbar { grid-template-columns: repeat(8, 40px); }
  .ab-btn { width: 42px; height: 40px; }
  .ab-btn__emoji { font-size: 17px; }
  .ab-btn__icon { width: 21px; height: 21px; }
  .unitframe { min-width: 200px; }
  .quest-tracker { top: 130px; max-width: 190px; }
}
@media (max-width: 760px) {
  .unitframe { min-width: 0; padding: 6px 10px 6px 6px; gap: 7px; }
  #uf-portrait { width: 44px; height: 44px; }
  .unitframe__row b { font-size: 12px; }
  .unitframe__row--sub { font-size: 10px; gap: 7px; }
  .stylebox { top: 86px; }
  .style-chip { font-size: 10px; padding: 5px 8px; }
  .chatdock { width: min(62vw, 250px); }
  .chatlog { height: 84px; font-size: 11px; }
  .actionbar { grid-template-columns: repeat(8, 40px); gap: 4px; padding: 6px; right: 8px; bottom: 8px; }
  .ab-btn { width: 40px; height: 38px; border-radius: 8px; }
  .ab-btn__emoji { font-size: 16px; }
  .ab-btn__icon { width: 20px; height: 20px; }
  .ab-btn kbd { display: none; }
  .quest-tracker { top: 108px; max-width: 150px; padding: 7px 10px; right: 8px; }
  .qt-hint { font-size: 10px; }
  .panel { width: 96vw; max-height: 88vh; }
  .toast { font-size: 12px; max-width: 78vw; }
  .dialogue { bottom: 120px; width: 94vw; }
  .dialogue__card { padding: 10px 12px; gap: 8px; }
}

/* right-click context menu */
.ctxmenu {
  position: fixed; z-index: 80;
  min-width: 170px;
  background: linear-gradient(180deg, rgba(48, 38, 24, 0.98), rgba(26, 20, 12, 0.98));
  border: 1px solid #6b5638;
  border-radius: 9px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: ctxpop 0.08s ease-out;
}
.ctxmenu__head {
  padding: 5px 12px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #e3b758;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #5a4730;
}
.ctxmenu__item {
  display: block; width: 100%;
  text-align: left;
  border: 0; background: none; cursor: pointer;
  padding: 6px 12px;
  font-size: 13px;
  color: #ece1c4;
  font-family: inherit;
}
.ctxmenu__item b { color: #9fd9ff; font-weight: 700; }
.ctxmenu__item:hover { background: rgba(199, 154, 58, 0.22); }
@keyframes ctxpop { from { transform: scale(0.92); opacity: 0; } }

/* boot screen */
#boot {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(90, 120, 70, 0.25), transparent 60%),
    linear-gradient(170deg, #20281a, #14110b);
  transition: opacity 0.5s;
}
#boot.boot--out { opacity: 0; pointer-events: none; }
#boot h1 {
  font-size: 52px; letter-spacing: 0.22em; color: #f0dfae;
  text-shadow: 0 3px 0 rgba(0,0,0,0.6), 0 0 40px rgba(227, 183, 88, 0.3);
  font-family: var(--font);
}
.boot__bar {
  width: 280px; height: 12px;
  background: #1c150c;
  border: 1px solid #6b5638; border-radius: 7px;
  overflow: hidden;
}
.boot__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #8a6a1d, #e3b758);
  transition: width 0.4s ease;
}
.boot__tip { font-size: 13px; color: #b9ab86; font-style: italic; max-width: 420px; text-align: center; line-height: 1.5; }
.toast {
  background: rgba(30, 24, 14, 0.93);
  color: #ece1c4;
  font-size: 13px; font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  max-width: 300px;
  animation: slidein 0.2s;
}
.toast--error { background: rgba(140, 50, 50, 0.94); }
.toast--gold { background: rgba(160, 120, 20, 0.95); }
.toast--out { opacity: 0; transition: opacity 0.5s; }

@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }

