:root {
  --bg: #1d1410;
  --panel: #2a1f18;
  --panel2: #382a1f;
  --line: #4d3a2a;
  --text: #f3e9dc;
  --dim: #b09a85;
  --accent: #e67e22;
  --accent2: #f1c40f;
  --green: #2fbf6b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden; -webkit-user-select: none; user-select: none;
}

.screen { display: none; position: fixed; inset: 0; }
.screen.active { display: block; }

/* ---- auth / look screens ---- */
#screen-auth, #screen-look {
  display: none;
  place-items: center;
  background: radial-gradient(ellipse at 50% 30%, #33241a 0%, var(--bg) 70%);
}
#screen-auth.active, #screen-look.active { display: grid; }

.tabs { display: flex; gap: 6px; margin: 16px 0 4px; }
.tab {
  flex: 1; padding: 9px; background: var(--panel2); color: var(--dim);
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: .9rem;
}
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
input[type=email], input[type=password] {
  width: 100%; padding: 11px 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; font-size: 1rem; font-family: inherit;
}
input[type=email]:focus, input[type=password]:focus { outline: none; border-color: var(--accent); }
.msg { color: #ff8a7a; font-size: .85rem; margin-top: 10px; min-height: 18px; }
.link { color: var(--accent2); cursor: pointer; text-decoration: underline; }
.hide { display: none; }
.card {
  width: min(440px, 92vw); background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.title { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 700; letter-spacing: .5px; }
.glow { color: var(--green); text-shadow: 0 0 16px rgba(47,191,107,.6); }
/* real BEN'S logo on the auth/lobby header */
.bens-logo { display: block; width: min(340px, 78vw); margin: 0 auto 2px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.title.amp { font-size: 1.5rem; text-align: center; margin-top: -2px; color: var(--dim); }
/* avatar tokens (original 2D sprite art) */
.avtok { display: inline-block; flex: 0 0 auto; border-radius: 7px; background-repeat: no-repeat; background-color: rgba(0,0,0,.28); vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.avtok-init { display: inline-grid; place-items: center; color: #fff; font-weight: 800; border-radius: 50%; }
.sub { color: var(--dim); font-size: .92rem; margin-top: 6px; line-height: 1.4; }
.hint { font-size: .8rem; }
label { display: block; margin: 16px 0 6px; font-size: .8rem; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
input[type=text] {
  width: 100%; padding: 11px 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; font-size: 1rem; font-family: inherit;
}
input[type=text]:focus { outline: none; border-color: var(--accent); }

.look-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.look {
  padding: 9px 4px; background: var(--panel2); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  font-size: .82rem; font-family: inherit; transition: .12s;
}
.look:hover { border-color: var(--accent); }
.look.sel { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
/* locked (unowned) looks — show a padlock + price, dimmed, clicking opens the shop */
.look.locked { color: var(--dim); border-style: dashed; }
.look.locked:hover { border-color: var(--accent2); }
.look .lock { display: block; margin-top: 3px; font-size: .72rem; color: var(--accent2); }

/* gold tag on the look-screen label */
.wallet-tag { float: right; color: var(--accent2); font-weight: 600; letter-spacing: 0; text-transform: none; }

button.full {
  width: 100%; padding: 13px; background: var(--accent); border: none;
  border-radius: 10px; color: #fff; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: .12s;
}
button.full:hover { filter: brightness(1.08); }
button.full:disabled { opacity: .6; cursor: default; }

/* ---- game ---- */
#game-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.hud-top { position: fixed; top: 10px; left: 10px; display: flex; gap: 8px; pointer-events: none; }
.pill {
  background: rgba(42,31,24,.82); border: 1px solid var(--line); color: var(--text);
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; backdrop-filter: blur(3px);
}

.chat { position: fixed; left: 10px; bottom: 12px; width: min(360px, 70vw); pointer-events: none; }
.chat-log { max-height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.chat-row {
  background: rgba(29,20,16,.6); border-radius: 7px; padding: 4px 9px; font-size: .85rem;
  width: fit-content; max-width: 100%; backdrop-filter: blur(2px);
}
.chat-row b { color: var(--accent2); }
.chat-row .ch { color: var(--dim); font-size: .8em; }
.chat-row.table { border-left: 3px solid var(--accent2); }
.chat-row.table .ch { color: var(--accent2); }
.chat-row.area { border-left: 3px solid var(--accent); }
.chat-row.area .ch { color: var(--accent); }
.chat-bar { display: flex; gap: 6px; pointer-events: auto; }
#chat-channel {
  padding: 0 6px; background: rgba(42,31,24,.9); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; font-size: .82rem; font-family: inherit; cursor: pointer;
}
.chat-input {
  flex: 1; padding: 9px 12px; background: rgba(42,31,24,.9); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; font-size: .95rem; font-family: inherit;
  pointer-events: auto;
}
.chat-input:focus { outline: none; border-color: var(--accent); }

/* context action button (Enter / Sit / Exit …) — hidden until something is in range */
.action-btn {
  position: fixed; right: 26px; bottom: 156px; z-index: 6;
  display: none; padding: 12px 20px; border: none; border-radius: 999px;
  background: var(--green); color: #06240f; font-weight: 700; font-size: 1rem;
  font-family: inherit; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.action-btn.show { display: block; }
.action-btn::after { content: " (E)"; opacity: .6; font-weight: 500; }
@media (hover: none) { .action-btn::after { content: ""; } }
@media (hover: hover) and (pointer: fine) { .action-btn { bottom: 26px; } }

/* emote bar (bottom-centre): dance / jump / punch / slap / hit — keys 1–5 */
.emote-bar {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 8px; padding: 6px 8px; border-radius: 999px;
  background: rgba(29,20,16,.62); border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.emote-btn {
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer; font-size: 1.2rem;
  border: 1px solid var(--line); background: rgba(42,31,24,.9); color: var(--text);
  transition: transform .08s ease, border-color .12s ease;
}
.emote-btn:hover { border-color: var(--accent2); transform: translateY(-2px); }
.emote-btn:active { transform: translateY(0) scale(.92); }
@media (hover: hover) and (pointer: fine) { .emote-bar { bottom: 74px; } }

/* lobby: persistent chat + presence on the look screen; presence on login */
.lobby { display: grid; grid-template-columns: 1fr 150px; gap: 10px; margin-top: 14px; text-align: left; }
.lobby-chat { display: flex; flex-direction: column; gap: 6px; }
.lobby-log { height: 130px; overflow-y: auto; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-size: .86rem; }
.lobby-log .lmsg { margin-bottom: 3px; line-height: 1.3; }
.lobby-log .lmsg b { color: var(--accent2); }
#lobby-input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); font-family: inherit; }
.lobby-h { margin: 0 0 6px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: #b09a85; }
.presence-list { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; max-height: 150px; overflow-y: auto; text-align: left; }
.presence-list .prow { display: flex; align-items: center; gap: 6px; }
.presence-list .prow .dim { flex: 1; }
.gift-btn { margin-left: auto; padding: 2px 7px; font-size: .85rem; line-height: 1; border-radius: 7px; border: 1px solid var(--line); background: rgba(42,31,24,.9); cursor: pointer; }
.gift-btn:hover { background: var(--accent); border-color: var(--accent); }
.presence-list .dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.presence-list .dot.on { background: #35d07f; box-shadow: 0 0 6px #35d07f; }
.presence-list .dot.idle { background: #7a6f63; }
.auth-online { margin: 14px auto 0; max-width: 360px; }
@media (max-width: 520px) { .lobby { grid-template-columns: 1fr; } }

/* admin console */
.admin-modal { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.admin-modal.show { display: flex; }
.admin-panel { width: min(860px, 95vw); max-height: 88vh; overflow: auto; background: #1d1410; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-align: left; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.admin-top h2 { margin: 0; font-size: 1.1rem; }
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.arow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.2); flex-wrap: wrap; }
.arow .ainfo { font-size: .84rem; line-height: 1.4; flex: 1 1 240px; min-width: 200px; }
.arow .aacts { display: flex; gap: 5px; align-items: center; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.arow .mini { padding: 5px 9px; font-size: .78rem; border-radius: 7px; border: 1px solid var(--line); background: rgba(42,31,24,.9); color: var(--text); cursor: pointer; font-family: inherit; white-space: nowrap; }
.arow .mini:hover { border-color: var(--accent2); }
.arow .mini:disabled { opacity: .4; cursor: default; }
.arow select.mini { max-width: 120px; }
.dot.off { background: #6a3030 !important; }

/* toast (system notices) */
.toast {
  position: fixed; top: 54px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: rgba(29,20,16,.92); border: 1px solid var(--accent); color: var(--text);
  padding: 9px 16px; border-radius: 999px; font-size: .9rem; z-index: 20;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.chat-row.sys { color: var(--accent2); font-style: italic; }

/* karaoke overlay */
.overlay {
  position: fixed; inset: 0; z-index: 30; display: none; place-items: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
}
.overlay.show { display: grid; }
.kara-card {
  width: min(780px, 94vw); background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.kara-card .title { font-size: 1.5rem; text-align: center; }
.kara-hud { text-align: center; color: var(--accent2); font-size: 1.1rem; font-weight: 600; margin: 8px 0; }
#kara-canvas { width: 100%; height: auto; background: rgba(0,0,0,.35); border-radius: 12px; border: 1px solid var(--line); touch-action: none; }
.row { display: flex; gap: 10px; margin-top: 12px; }
.row .full { flex: 2; } .row .ghost { flex: 1; }
button.ghost { padding: 12px; background: transparent; border: 1px solid var(--line); color: var(--dim); border-radius: 10px; cursor: pointer; font-family: inherit; }
button.ghost:hover { border-color: var(--accent); color: var(--text); }
.kara-result { margin-top: 14px; text-align: center; }
.kara-result h2 { font-family: Georgia, serif; }
.kara-result .dim, .dim { color: var(--dim); }
.leaderboard { text-align: left; margin: 12px auto; max-width: 320px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.lb-title { color: var(--accent2); font-weight: 600; margin-bottom: 6px; }
.lb-row { display: flex; justify-content: space-between; padding: 2px 0; font-size: .92rem; }
.lb-row b { color: var(--accent2); }

/* in-game shop button (top-right) */
.shop-btn-hud {
  position: fixed; top: 10px; right: 10px; z-index: 6;
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  background: rgba(42,31,24,.82); border: 1px solid var(--line); color: var(--text);
  font-size: 1.15rem; backdrop-filter: blur(3px);
}
.shop-btn-hud:hover { border-color: var(--accent2); }

/* in-game character-sheet button (top-right, left of the shop button) */
.rpg-btn-hud {
  position: fixed; top: 10px; right: 60px; z-index: 6;
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  background: rgba(42,31,24,.82); border: 1px solid var(--line); color: var(--text);
  font-size: 1.15rem; backdrop-filter: blur(3px);
}
.rpg-btn-hud:hover { border-color: var(--green); }

/* in-game jukebox button (top-right, left of the character-sheet button) */
.jukebox-btn-hud {
  position: fixed; top: 10px; right: 110px; z-index: 6;
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  background: rgba(42,31,24,.82); border: 1px solid var(--line); color: var(--text);
  font-size: 1.15rem; backdrop-filter: blur(3px);
  animation: jbPulse 2s ease-in-out infinite;
}
.jukebox-btn-hud:hover { border-color: #ff7ad9; }
@keyframes jbPulse { 0%,100% { box-shadow: 0 0 0 rgba(255,120,220,0); } 50% { box-shadow: 0 0 12px rgba(255,120,220,.5); } }

/* in-game notes button (top-right, left of the jukebox button) */
.notes-btn-hud {
  position: fixed; top: 10px; right: 160px; z-index: 6;
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  background: rgba(42,31,24,.82); border: 1px solid var(--line); color: var(--text);
  font-size: 1.1rem; backdrop-filter: blur(3px);
}
.notes-btn-hud:hover { border-color: var(--accent2); }
.notes-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 8px rgba(230,126,34,.7);
}

/* notes panel */
.notes-card {
  width: min(520px, 94vw); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55); position: relative;
}
.notes-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.ntab { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.2); color: var(--dim); cursor: pointer; font-family: inherit; font-weight: 700; }
.ntab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.notes-list { overflow-y: auto; max-height: 56vh; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.nrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
.nrow:last-child { border-bottom: 0; }
.nwhere { font-weight: 700; }
.nflags { letter-spacing: 2px; }
.nacts { display: flex; gap: 6px; flex: 0 0 auto; }
.nacts .mini { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: rgba(42,31,24,.9); color: var(--text); cursor: pointer; font-family: inherit; }
.nacts .mini:hover { border-color: var(--accent2); }
#notes-new label { display: block; margin: 10px 2px 4px; font-size: .82rem; color: var(--dim); }
#note-target, #note-body, #note-ttl, #note-pw { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.28); color: var(--text); font-family: inherit; font-size: .95rem; }
#note-body { min-height: 90px; resize: vertical; }
.note-flags { display: flex; flex-direction: column; gap: 8px; margin: 12px 2px; }
.nflag { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text); }
.nflag input[type=password] { flex: 1; }
.nflag select { flex: 0 0 auto; }
/* the read-a-note overlay panel (sits over the card) */
.note-reader {
  position: absolute; inset: 12px; z-index: 2; overflow-y: auto;
  background: linear-gradient(180deg, #322418, #241a10); border: 1px solid var(--accent);
  border-radius: 12px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.nbody { white-space: pre-wrap; word-break: break-word; font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.nburn { color: #ff9d6b; font-weight: 800; margin-bottom: 10px; text-shadow: 0 0 10px rgba(255,120,0,.5); }

/* house menu — real BEN'S menu on paper */
.hm-card { width: min(560px, 94vw); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.hm-body { overflow-y: auto; padding: 22px 26px; border-radius: 10px; background: radial-gradient(120% 90% at 50% 0%, #fbf6ea, #efe4cf); color: #3a2a1a; font-family: Georgia, "Times New Roman", serif; }
.hm-head { text-align: center; border-bottom: 2px solid #a5201a; padding-bottom: 12px; margin-bottom: 14px; }
.hm-cn { color: #2e7d32; letter-spacing: 4px; font-size: 1.05rem; }
.hm-name { color: #2e7d32; font-size: 2.6rem; font-weight: 700; line-height: 1; }
.hm-sub { color: #a5201a; font-weight: 700; letter-spacing: 2px; font-size: .8rem; }
.hm-tag { color: #6a4a2a; font-size: .76rem; margin-top: 4px; font-style: italic; }
.hm-sec-title { text-align: center; color: #a5201a; font-weight: 700; letter-spacing: 2px; margin: 16px 0 8px; text-transform: uppercase; font-size: .92rem; }
.hm-note { text-align: center; font-style: italic; color: #6a4a2a; font-size: .78rem; margin-bottom: 8px; }
.hm-banquet { border: 1px solid #d8c4a0; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: rgba(255,255,255,.35); }
.hm-b-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.02rem; }
.hm-b-min { font-size: .74rem; color: #6a4a2a; font-style: italic; margin: 2px 0 6px; }
.hm-course { font-size: .86rem; padding: 1px 0 1px 12px; }
.hm-item { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; }
.hm-dots { flex: 1; border-bottom: 1px dotted #b09a70; transform: translateY(-3px); }
.hm-mprice, .hm-price { color: #a5201a; font-weight: 700; flex: 0 0 auto; }
.hm-foot { text-align: center; margin-top: 16px; padding-top: 10px; border-top: 1px solid #d8c4a0; font-size: .74rem; color: #6a4a2a; font-style: italic; }

/* direct messages */
.dm-btn-hud { position: fixed; top: 10px; right: 210px; z-index: 6; width: 42px; height: 42px; border-radius: 999px; cursor: pointer; background: rgba(42,31,24,.82); border: 1px solid var(--line); color: var(--text); font-size: 1.1rem; backdrop-filter: blur(3px); }
.dm-btn-hud:hover { border-color: var(--green); }
/* proximity voice mic button (top-right, left of messages) */
.voice-btn-hud { position: fixed; top: 10px; right: 260px; z-index: 6; width: 42px; height: 42px; border-radius: 999px; cursor: pointer; background: rgba(42,31,24,.82); border: 1px solid var(--line); color: var(--text); font-size: 1.1rem; backdrop-filter: blur(3px); }
.voice-btn-hud:hover { border-color: var(--green); }
.voice-btn-hud.on { background: rgba(47,191,107,.28); border-color: var(--green); box-shadow: 0 0 12px rgba(47,191,107,.6); animation: voicePulse 1.4s ease-in-out infinite; }
@keyframes voicePulse { 0%,100% { box-shadow: 0 0 6px rgba(47,191,107,.4); } 50% { box-shadow: 0 0 16px rgba(47,191,107,.8); } }
.dm-card { width: min(500px, 94vw); height: min(640px, 88vh); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
#dm-list-view, #dm-thread-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dm-h { margin-bottom: 10px; }
.dm-new { display: flex; gap: 8px; margin-bottom: 10px; }
.dm-new input { flex: 1; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.28); color: var(--text); }
.dm-convos { flex: 1; overflow-y: auto; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.dm-convo { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; }
.dm-convo:hover { background: rgba(47,191,107,.12); }
.dm-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 8px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; }
.dm-last { font-size: .8rem; margin-top: 2px; }
.dm-thread-top { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dm-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px; }
.dm-msg { max-width: 78%; align-self: flex-start; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; }
.dm-msg.mine { align-self: flex-end; background: rgba(47,191,107,.2); border-color: rgba(47,191,107,.4); }
.dm-text { display: block; word-break: break-word; }
.dm-ts { display: block; font-size: .66rem; color: var(--dim); margin-top: 2px; text-align: right; }
.dm-compose { display: flex; gap: 8px; margin-top: 8px; }
.dm-compose input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.28); color: var(--text); }
.dm-new .mini, .dm-compose .mini, .dm-thread-top .mini { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(42,31,24,.9); color: var(--text); cursor: pointer; font-family: inherit; }
.dm-compose .mini:hover, .dm-new .mini:hover { border-color: var(--green); }

/* photos — shared town album */
.photos-card { width: min(720px, 96vw); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.photos-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ph-upload { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--accent); background: rgba(230,126,34,.16); color: var(--text); cursor: pointer; font-weight: 700; white-space: nowrap; }
.ph-upload:hover { background: var(--accent); }
.photos-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 4px; }
.ph-cell { cursor: pointer; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.ph-cell img { width: 100%; height: 118px; object-fit: cover; display: block; }
.ph-cell:hover { border-color: var(--accent2); }
.ph-meta { font-size: .72rem; color: var(--dim); padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-view { position: absolute; inset: 0; z-index: 3; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0,0,0,.93); border-radius: 16px; padding: 18px; }
.photo-view.show { display: flex; }
.photo-view img { max-width: 100%; max-height: 80%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.photo-view-bar { display: flex; align-items: center; gap: 8px; width: 100%; }
.photo-view-bar .mini { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(42,31,24,.9); color: var(--text); cursor: pointer; font-family: inherit; }
.photo-view-bar #photo-view-del:hover { border-color: #ff8a7a; }

/* jukebox overlay: search + playlist */
.jb-card {
  width: min(560px, 94vw); max-height: 86vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #241a2e, #17101f); border: 1px solid #6a3fb0;
  border-radius: 16px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(125,60,255,.3);
}
.jb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.jb-head .title { font-size: 1.4rem; }
.jb-now-wrap { text-align: right; font-size: .82rem; line-height: 1.3; max-width: 60%; }
.jb-now-wrap b { color: #ffcf6a; }
#jb-search { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: 1rem; }
.jb-sub { font-size: .78rem; color: var(--dim); margin: 8px 2px 6px; }
.jb-list { flex: 1; overflow-y: auto; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.22); }
.jb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.05); }
.jb-row:hover { background: rgba(125,60,255,.16); }
.jb-row.playing { background: rgba(255,120,220,.14); }
.jb-row.playing .jb-title { color: #ff9de0; font-weight: 700; }
.jb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-dur { color: var(--dim); font-variant-numeric: tabular-nums; font-size: .85rem; flex: 0 0 auto; }
.jb-star { color: #ffd257; font-size: .8rem; }
.jb-def { flex: 0 0 auto; cursor: pointer; font-size: 1.05rem; opacity: .55; }
.jb-def.on { opacity: 1; color: #ffd257; }
.jb-adminbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; background: rgba(40,26,16,.96); border-bottom: 1px solid rgba(255,210,87,.25); font-size: .9rem; }
.jb-adminbtns { display: flex; gap: 6px; }

/* admin guest-list / invite controls */
.admin-invite-row { display: flex; gap: 6px; align-items: center; margin: 6px 0 10px; flex-wrap: wrap; }
.admin-invite-row input[type=email] { flex: 1 1 160px; min-width: 120px; }
.admin-invite-row select { flex: 0 0 auto; }
.mini.primary { background: #2fbf6b; color: #05130a; font-weight: 700; }
.mini.danger { background: #7c2b22; color: #ffdcd6; }
.mini.danger:disabled { opacity: .4; }

/* notice board app */
.board-card { width: min(560px, 95vw); max-height: 90vh; display: flex; flex-direction: column; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.board-list { flex: 1; overflow-y: auto; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; min-height: 80px; max-height: 46vh; }
.bp { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.bp.burn { border-color: #e0632e; background: rgba(224,99,46,.08); }
.bp-head { font-size: .92rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bp-burn { color: #ff7a45; font-weight: 700; }
.bp-del { margin-left: auto; font-size: .82rem; }
.bp-body { margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.bp-img { max-width: 100%; border-radius: 8px; margin: 6px 0; display: block; }
.bp-cmts { display: flex; flex-direction: column; gap: 3px; margin: 4px 0; }
.bp-cmt { font-size: .88rem; padding-left: 8px; border-left: 2px solid var(--line); }
.bp-addcmt { display: flex; gap: 6px; margin-top: 6px; }
.bp-cmt-in { flex: 1; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); }
.board-compose { border-top: 1px solid var(--line); padding-top: 10px; }
.board-compose textarea { width: 100%; min-height: 56px; resize: vertical; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); }
.board-compose-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.board-photo-lbl { cursor: pointer; }

/* action chooser (overlapping interactions) */
.action-menu-card { width: min(340px, 90vw); }
.action-menu-list { display: flex; flex-direction: column; gap: 8px; }
.action-menu-list button { text-align: left; }

/* inspect lore panel (haunted-mansion props) */
.inspect-card { width: min(460px, 92vw); text-align: center; }
.inspect-icon { font-size: 3.2rem; line-height: 1; margin-bottom: 6px; }
.inspect-body { margin: 10px 2px 2px; color: var(--text); font-size: 1.02rem; line-height: 1.55; font-family: Georgia, "Times New Roman", serif; }

/* cinema theatre overlay */
.cinema-card { width: min(880px, 95vw); }
.cinema-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.cinema-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.cinema-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cinema-controls input { flex: 1 1 200px; min-width: 140px; }

/* transporter beam-in/out flash — a cyan shimmer that washes the screen */
#beam-fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background:
    repeating-linear-gradient(0deg, rgba(180,240,255,.10) 0 2px, transparent 2px 5px),
    radial-gradient(120% 80% at 50% 50%, rgba(150,230,255,.55), rgba(90,200,255,.22) 55%, transparent 78%);
  mix-blend-mode: screen; }
#beam-fx.on { opacity: 1; animation: beamShimmer .7s linear infinite; }
@keyframes beamShimmer { from { background-position: 0 0, 0 0; } to { background-position: 0 7px, 0 0; } }

/* character sheet overlay (reuses .overlay/.card) */
#rpg .card { width: min(440px, 92vw); }
.rpg-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.rpg-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.rpg-row.maxed { opacity: .8; }
.rpg-info { flex: 1; }
.rpg-name { font-weight: 600; }
.rpg-level { color: var(--accent2); font-weight: 600; font-size: .85rem; }
.rpg-perk { color: var(--dim); font-size: .8rem; margin-top: 2px; }
.rpg-btn {
  padding: 7px 12px; border: none; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .82rem; white-space: nowrap;
}
.rpg-btn.train { background: var(--green); color: #06240f; }
.rpg-btn.train:hover { filter: brightness(1.08); }
.rpg-btn.train:disabled { opacity: .45; cursor: default; filter: none; }
.rpg-btn.maxed { background: transparent; border: 1px solid var(--accent2); color: var(--accent2); cursor: default; }

/* look shop overlay (reuses .overlay/.card) */
#shop .card { width: min(440px, 92vw); }
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-head .title { font-size: 1.6rem; }
.pill.wallet { color: var(--accent2); font-weight: 600; }
.shop-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.shop-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.shop-row.owned { opacity: .8; }
.shop-name { flex: 1; font-weight: 600; }
.shop-price { color: var(--accent2); font-size: .9rem; }
.shop-btn {
  padding: 7px 14px; border: none; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .85rem;
}
.shop-btn.buy { background: var(--accent); color: #fff; }
.shop-btn.buy:hover { filter: brightness(1.08); }
.shop-btn.buy:disabled { opacity: .45; cursor: default; filter: none; }
.shop-btn.owned { background: transparent; border: 1px solid var(--green); color: var(--green); cursor: default; }

/* Esc pause menu */
#menu .card { max-height: 88vh; overflow-y: auto; }
.menu-btns { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.menu-h { margin: 16px 0 6px; font-size: .9rem; color: var(--accent2); border-top: 1px solid var(--line); padding-top: 12px; }
.slider { width: 100%; accent-color: var(--accent); margin: 4px 0; }
.menu-online { display: flex; flex-direction: column; gap: 3px; max-height: 150px; overflow-y: auto; }
.online-row { display: flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; font-size: .9rem; }
.online-row .dim { color: var(--dim); font-size: .8em; }

/* ===== pokies: RedBrick "Mega Drums" 5×3 jackpot slot ===== */
#pokie { background: rgba(6,2,10,.72); backdrop-filter: blur(4px); }
.pk-machine {
  position: relative; width: min(760px, 96vw); padding: 16px 16px 18px;
  border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #3a1150 0%, transparent 60%),
    linear-gradient(180deg, #241033 0%, #150a24 60%, #0d0618 100%);
  border: 2px solid #7d3cff;
  box-shadow: 0 0 0 4px #12081f, 0 0 40px rgba(125,60,255,.6), 0 24px 70px rgba(0,0,0,.7);
}
/* neon marquee + live jackpot */
.pk-marquee { text-align: center; margin-bottom: 10px; }
.pk-title {
  font-size: 1.7rem; letter-spacing: 2px; font-weight: 900;
  text-shadow: 0 0 10px #ff4fd8, 0 0 24px #7d3cff;
}
.pk-title .glow { color: #ffd93b; text-shadow: 0 0 12px #ffb800, 0 0 30px #ff7a00; }
.pk-jackpot {
  margin: 8px auto 0; display: inline-flex; flex-direction: column; align-items: center;
  padding: 6px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #2a0f12, #1a0a1e);
  border: 2px solid #ffcf3a; box-shadow: 0 0 22px rgba(255,180,0,.55), inset 0 0 18px rgba(255,120,0,.25);
  animation: pkGlow 1.6s ease-in-out infinite;
}
@keyframes pkGlow { 0%,100% { box-shadow: 0 0 18px rgba(255,180,0,.45), inset 0 0 16px rgba(255,120,0,.2); } 50% { box-shadow: 0 0 34px rgba(255,210,0,.85), inset 0 0 22px rgba(255,140,0,.4); } }
.pk-jp-label { font-size: .68rem; letter-spacing: 3px; color: #ffcf6a; font-weight: 800; }
.pk-jp-amount {
  font-size: 2.3rem; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums;
  color: #fff6c9; text-shadow: 0 0 14px #ffb300, 0 0 30px #ff7a00;
}
/* machine status row: warmth (adaptive looseness) + golden ticket count */
.pk-status { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.pk-temp, .pk-tickets { font-size: .74rem; font-weight: 800; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px; background: rgba(125,60,255,.16); border: 1px solid rgba(125,60,255,.4); color: #e7d6ff; }
.pk-temp.hot { background: rgba(255,90,0,.22); border-color: #ff7a2a; color: #ffd0a0; box-shadow: 0 0 14px rgba(255,120,0,.5); animation: pkGlow 1.2s ease-in-out infinite; }
.pk-temp.cold { background: rgba(60,120,255,.18); border-color: #4a8aff; color: #bcd6ff; }
.pk-tickets { background: rgba(255,200,0,.16); border-color: #ffcf3a; color: #ffe9a8; }
/* the cabinet holding the 5 reels */
.pk-cabinet {
  position: relative; display: flex; align-items: stretch; justify-content: center; gap: 6px;
  padding: 12px; border-radius: 16px;
  background: linear-gradient(180deg, #0a0512, #05030a);
  border: 2px solid #4a2b7a; box-shadow: inset 0 6px 26px rgba(0,0,0,.8);
}
.pk-grid { display: flex; gap: 8px; flex: 0 1 auto; }
.pk-reel {
  width: min(108px, 17vw); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #17101f, #0d0715);
  border: 2px solid #6a3fb0; box-shadow: inset 0 3px 14px rgba(0,0,0,.7);
}
.pk-strip { display: flex; flex-direction: column; }
.pk-cell {
  height: min(96px, 15vw); display: grid; place-items: center;
  font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: transform .12s ease, filter .12s ease;
}
.pk-cell:last-child { border-bottom: 0; }
.pk-reel.spinning { animation: pkReelPulse .5s ease-in-out infinite; }
.pk-reel.spinning .pk-cell { filter: blur(3px) brightness(1.15); animation: pkReelRoll .09s linear infinite; }
@keyframes pkReelRoll { from { transform: translateY(-7px); } 50% { transform: translateY(7px); } to { transform: translateY(-7px); } }
@keyframes pkReelPulse { 0%,100% { box-shadow: inset 0 3px 14px rgba(0,0,0,.7); } 50% { box-shadow: inset 0 3px 14px rgba(0,0,0,.7), 0 0 16px rgba(125,60,255,.5); } }
.pk-reel.landed { animation: pkLand .34s cubic-bezier(.22,1.4,.4,1); }
@keyframes pkLand { 0% { transform: translateY(-10px); } 60% { transform: translateY(4px); } 100% { transform: translateY(0); } }
/* a "hot" reel about to decide a line — suspense */
.pk-reel.hot { border-color: #ffd93b; box-shadow: 0 0 22px rgba(255,200,0,.9), inset 0 0 18px rgba(255,140,0,.4); animation: pkHot .32s ease-in-out infinite; }
@keyframes pkHot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
/* a winning cell */
.pk-cell.win {
  filter: none; color: #fff; transform: scale(1.12);
  text-shadow: 0 0 12px #ffe14a, 0 0 26px #ff9500;
  animation: pkWinCell .55s ease-in-out infinite;
}
@keyframes pkWinCell { 0%,100% { transform: scale(1.06); } 50% { transform: scale(1.22); } }
/* a 💰 scatter cell that formed the Golden Ticket */
.pk-cell.scatter {
  color: #fff; transform: scale(1.14); border-radius: 8px;
  text-shadow: 0 0 14px #ffd93b, 0 0 30px #ff9d00;
  box-shadow: inset 0 0 22px rgba(255,200,0,.6);
  animation: pkScatter .5s ease-in-out infinite;
}
@keyframes pkScatter { 0%,100% { transform: scale(1.08) rotate(-4deg); } 50% { transform: scale(1.24) rotate(4deg); } }
/* payline row badges either side of the cabinet */
.pk-linebadges { display: flex; flex-direction: column; justify-content: space-around; padding: 4px 2px; }
.pk-lb {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  font-size: .8rem; font-weight: 800; color: #150a24;
  background: linear-gradient(180deg, #ffd93b, #ff9d00); box-shadow: 0 0 10px rgba(255,180,0,.6);
}
/* winning-line glow bars overlaid on the cabinet */
.pk-winlines { position: absolute; inset: 12px; pointer-events: none; }
.pk-winline {
  position: absolute; left: 0; height: 32%; border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,220,60,.0), rgba(255,220,60,.35), rgba(255,150,0,.15));
  box-shadow: 0 0 20px rgba(255,200,0,.7); animation: pkLineFlash .6s ease-in-out infinite;
}
.pk-winline.row0 { top: 0; } .pk-winline.row1 { top: 34%; } .pk-winline.row2 { top: 68%; }
.pk-winline.jackpot { background: linear-gradient(90deg, rgba(255,80,216,.3), rgba(255,220,60,.5), rgba(125,60,255,.3)); box-shadow: 0 0 30px rgba(255,120,255,.9); }
@keyframes pkLineFlash { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
/* message + paytable */
.pk-msg { text-align: center; font-size: 1.05rem; min-height: 26px; margin: 12px 0 8px; font-weight: 700; color: var(--text); }
.pk-msg.win { color: #ffe14a; text-shadow: 0 0 14px rgba(255,180,0,.7); }
.pk-msg.jackpot { color: #fff; font-size: 1.35rem; text-shadow: 0 0 16px #ff4fd8, 0 0 32px #ffd000; animation: pkJpMsg .5s ease-in-out infinite; }
.pk-msg.golden { color: #fff7cf; font-size: 1.3rem; text-shadow: 0 0 16px #ffb300, 0 0 34px #ff7a00; animation: pkJpMsg .5s ease-in-out infinite; }
@keyframes pkJpMsg { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.pk-msg.lose { color: #c9a7d8; font-weight: 600; }
.pk-paytable { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.pk-pt { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; background: rgba(125,60,255,.16); border: 1px solid rgba(125,60,255,.4); font-size: .78rem; color: #e7d6ff; }
.pk-pt-s { font-size: 1rem; }
/* controls */
.pk-controls { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pk-bet, .pk-total, .pk-wallet { display: flex; align-items: center; border-radius: 12px; padding: 6px 10px; background: rgba(0,0,0,.3); border: 1px solid #4a2b7a; }
.pk-bet { gap: 8px; }
.pk-betbtn { width: 34px; height: 34px; border-radius: 9px; border: 0; cursor: pointer; font-size: 1.3rem; font-weight: 900; color: #150a24; background: linear-gradient(180deg, #ffd93b, #ff9d00); box-shadow: 0 2px 0 #a85a00; }
.pk-betbtn:active { transform: translateY(1px); box-shadow: 0 1px 0 #a85a00; }
.pk-bet-info, .pk-total, .pk-wallet { flex-direction: column; text-align: center; }
.pk-bet-info { display: flex; }
.pk-bet-lbl, .pk-total-lbl, .pk-wallet-lbl { font-size: .6rem; letter-spacing: 1.5px; color: #b79bd6; font-weight: 700; }
.pk-bet-val, .pk-total-val, .pk-wallet-val { font-size: 1.3rem; font-weight: 900; color: #ffe14a; font-variant-numeric: tabular-nums; }
.pk-wallet-val { color: #7dffb0; }
/* spin + cash out */
.pk-buttons { display: flex; gap: 12px; }
.pk-buttons .ghost { flex: 0 0 34%; }
.pk-spin {
  flex: 1; border: 0; cursor: pointer; border-radius: 14px; padding: 16px;
  font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; color: #2a0033;
  background: linear-gradient(180deg, #ffe14a 0%, #ff9d00 55%, #ff5e00 100%);
  box-shadow: 0 5px 0 #a83a00, 0 0 26px rgba(255,150,0,.7);
  animation: pkSpinIdle 1.8s ease-in-out infinite;
}
.pk-spin:active { transform: translateY(3px); box-shadow: 0 2px 0 #a83a00, 0 0 20px rgba(255,150,0,.6); }
.pk-spin.busy { animation: pkSpinBusy .5s linear infinite; filter: saturate(1.3); pointer-events: none; }
.pk-spin.disabled { filter: grayscale(.7) brightness(.7); pointer-events: none; box-shadow: 0 5px 0 #444; animation: none; }
@keyframes pkSpinIdle { 0%,100% { box-shadow: 0 5px 0 #a83a00, 0 0 22px rgba(255,150,0,.6); } 50% { box-shadow: 0 5px 0 #a83a00, 0 0 40px rgba(255,190,0,.95); } }
@keyframes pkSpinBusy { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
/* full-machine celebration */
.pk-machine.shake { animation: pkShake .5s ease; }
@keyframes pkShake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-6px,3px) rotate(-.6deg); } 40% { transform: translate(6px,-3px) rotate(.6deg); } 60% { transform: translate(-4px,2px); } 80% { transform: translate(4px,-2px); } }
.pk-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 3; }
.pk-flash.show { animation: pkFlash .9s ease-out; }
.pk-flash.show.big { background: radial-gradient(circle at 50% 40%, rgba(255,215,60,.55), transparent 60%); }
.pk-flash.show.small { background: radial-gradient(circle at 50% 40%, rgba(255,215,60,.3), transparent 60%); }
.pk-flash.show.jackpot { background: radial-gradient(circle at 50% 40%, rgba(255,90,220,.6), rgba(255,215,60,.4) 40%, transparent 70%); animation: pkFlashJp 2.3s ease-out; }
.pk-flash.show.golden { background: radial-gradient(circle at 50% 40%, rgba(255,205,60,.75), rgba(255,150,0,.45) 45%, transparent 72%); animation: pkFlashJp 2.3s ease-out; }
@keyframes pkFlash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pkFlashJp { 0% { opacity: 0; } 10% { opacity: 1; } 30% { opacity: .5; } 45% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 520px) { .pk-controls { flex-wrap: wrap; } .pk-paytable { display: none; } }

/* touch joystick (hidden on devices with a fine pointer / hover) */
.stick {
  position: fixed; right: 26px; bottom: 26px; width: 116px; height: 116px;
  border-radius: 50%; background: rgba(42,31,24,.5); border: 2px solid var(--line);
  touch-action: none; z-index: 5;
}
.stick i {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: rgba(230,126,34,.85); border: 2px solid #fff3;
}
@media (hover: hover) and (pointer: fine) { .stick { display: none; } }
