* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: #17130e;
  color: #f0e2c0;
  font: 13px/1.35 Verdana, sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  user-select: none;
}

main {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #3e3529;
  border: 3px solid #5d5140;
}

#left { width: max(400px, min(960px, calc(100vw - 260px), calc((100vh - 225px) * 4 / 3))); }
#view { position: relative; }
#game { display: block; width: 100%; background: #000; cursor: pointer; }
/* Names and numbers sit exactly over the picture, which still takes the clicks. */
#hud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#amount { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 6; padding: 10px 16px; background: #cbb98f; color: #1d160c; border: 3px solid #5d5140; text-align: center; font-weight: bold; }
#amount input { display: block; margin-top: 6px; width: 160px; text-align: center; }
body.full #amount { bottom: 200px; }
#panel.magic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: min-content; gap: 3px; }
#panel.magic button.prayer { height: 36px; border-radius: 6px; }
.doll .column { gap: 2px; }
.doll { padding: 0; }
#panel.equipment { padding: 4px 6px; gap: 2px; }
#panel.equipment .stats { padding: 3px 8px; gap: 0 8px; }
.doll .worn small { line-height: 11px; }
/* The warning before an update, just above the chat box. */
#update { position: absolute; left: 8px; bottom: 6px; z-index: 4; pointer-events: none; font-weight: bold; font-size: 14px; color: #ffff00; text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
body.full #update { bottom: 192px; }
/* Prayers that are switched on, above the tabs. */
#praybar { flex: none; height: 42px; display: flex; justify-content: center; align-items: stretch; gap: 2px; padding: 2px; background: #2b251d; border: 2px solid #1e1a14; }
#praybar .none { align-self: center; font-size: 10px; color: #8f836a; }
#praybar button { position: relative; width: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; background: radial-gradient(circle, #fff3b0, #8a6d1c 75%); border: 1px solid #ffe135; border-radius: 4px; }
#praybar canvas { transform: scale(0.8); margin: -4px 0 -3px; }
#praybar small { font-size: 8px; line-height: 9px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
#praybar i { position: absolute; top: -2px; right: 2px; font-style: normal; font-size: 8px; color: #fff; text-shadow: 1px 1px 0 #000; }
button.prayer.chosen { border-color: #3dee55; box-shadow: inset 0 0 0 2px #3dee55; }
button.prayer.chosen::after { content: '✔'; position: absolute; left: 1px; bottom: -2px; color: #3dee55; font-size: 13px; text-shadow: 1px 1px 0 #000; }
#panel.prayer .choice { grid-column: 1 / -1; }
.recipes + .metals, .metals { display: flex; flex-wrap: wrap; gap: 3px; }
#hover {
  position: absolute; top: 6px; left: 8px; pointer-events: none;
  font-weight: bold; text-shadow: 1px 1px 0 #000; color: #fff;
}
.target { color: #ffe135; }

#chat {
  height: 130px; overflow-y: auto; margin-top: 8px; padding: 6px 8px;
  background: #cbb98f; color: #1d160c; border: 2px solid #5d5140;
}
#chat .level { color: #00359e; font-weight: bold; }
#chat .bad { color: #a3120d; font-weight: bold; }

aside { width: 226px; display: flex; flex-direction: column; gap: 6px; }
#mapbox { position: relative; align-self: center; line-height: 0; }
#minimap { width: 192px; height: 192px; border-radius: 50%; border: 4px solid #6b5f4a; box-shadow: 0 0 0 2px #1e1a14; background: #1e1a14; cursor: pointer; }
#compass { position: absolute; top: -2px; left: -8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; }
#compass canvas { width: 44px; height: 44px; }
#compass:hover { filter: brightness(1.2); }
.mapzoom { position: absolute; bottom: -2px; width: 24px; height: 24px; padding: 0; border-radius: 50%; font: bold 16px/1 Verdana, sans-serif; background: radial-gradient(circle at 35% 30%, #6d604c, #2a241b 75%); border: 2px solid #8a7a5c; box-shadow: 0 0 0 1px #1e1a14; }
#minout { left: -8px; }
#minin { right: -8px; }
.mapzoom:hover { filter: brightness(1.25); }

/* Round status buttons under the minimap. */
#orbs { display: flex; justify-content: center; gap: 4px; }
.orb {
  position: relative; width: 41px; height: 41px; padding: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #6d604c, #2a241b 75%);
  border: 3px solid #8a7a5c; box-shadow: 0 0 0 2px #1e1a14;
  display: grid; place-items: center;
}
.orb canvas { margin-bottom: 8px; filter: grayscale(0.8) brightness(0.8); }
.orb small { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: bold; text-shadow: 1px 1px 0 #000; }
button.orb.on { border-color: #ffe135; }
button.orb.on canvas { filter: none; }
#run.on { background: radial-gradient(circle at 35% 30%, #c9a52c, #5c4708 75%); }
#pvp.on { background: radial-gradient(circle at 35% 30%, #d0463a, #56100b 75%); }
#prayorb i { position: absolute; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 35% 20%, #8fe9ff, #176a8e 80%); opacity: 0.75; }
#prayorb canvas, #prayorb small { position: relative; }
#prayorb small { position: absolute; }
#prayorb.on { border-color: #8fe9ff; box-shadow: 0 0 6px 2px #8fe9ff; }
#prayorb canvas { filter: none; }
#hpbar { background: #2a0806; }
#hpbar i { position: absolute; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 35% 20%, #ff5a4e, #8e130d 80%); }
#hpbar span { position: relative; font-size: 9px; font-weight: bold; text-shadow: 1px 1px 0 #000; }

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
.choice { background: #544734; border: 1px solid #1d160c; padding: 4px 6px; }
.choice:hover { background: #65563f; }
.choice.on { background: #7a2e22; }

.tabs { display: flex; gap: 1px; padding: 3px 2px 0; background: #2b251d; border: 2px solid #1e1a14; border-bottom: 0; margin-bottom: -6px; }
.tabs button {
  flex: 1; height: 36px; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(#5c5142, #40382c); border: 1px solid #1e1a14; border-bottom: 0; border-radius: 5px 5px 0 0;
}
.tabs button:hover { filter: brightness(1.15); }
.tabs button.on { background: linear-gradient(#9c3b2c, #6a2318); }
.tabs canvas { filter: drop-shadow(1px 1px 0 #00000080); }

/* Stone-coloured interface panel. */
#panel {
  height: 306px; overflow-y: auto; padding: 6px; align-content: start; display: grid; gap: 3px;
  background:
    radial-gradient(circle at 20% 30%, #ffffff0a 0 18%, transparent 40%),
    radial-gradient(circle at 80% 70%, #00000030 0 20%, transparent 45%),
    #4a4134;
  border: 2px solid #1e1a14; box-shadow: inset 0 0 0 2px #6b5f4a;
}
#panel.inventory { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 40px; gap: 1px; }
#panel.skills { grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; gap: 2px; }
#panel.skills .wide { padding: 0; }
#panel.combat, #panel.equipment { grid-template-columns: 1fr; }
.wide { grid-column: 1 / -1; text-align: center; padding: 5px 0 2px; white-space: pre-wrap; }
.heading { color: #ff9a1f; font-weight: bold; }
#panel.inventory .slot { background: none; border: 0; border-radius: 3px; touch-action: none; }
#panel.inventory .slot:not(:disabled):hover { background: #ffffff18; }
#panel.inventory .slot:not(:disabled):active canvas { opacity: 0.55; }
#panel .slot canvas { filter: drop-shadow(1px 2px 0 #00000090); }
#window .slot.resale { border-color: #e0b23a; background: #e0b23a20; }
#window .slot.dear .price { color: #ff6a55; }
.slot.movable { cursor: grab; touch-action: none; }
#panel.inventory .slot.selected { background: #ffffff30; box-shadow: inset 0 0 0 2px #fff; }
#ghost { position: fixed; z-index: 15; width: 36px; height: 36px; margin: -18px 0 0 -18px; opacity: 0.8; pointer-events: none; }

.style { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; text-align: left; padding: 5px 8px; background: #2e271d; border: 2px solid #1e1a14; }
.style canvas { width: 32px; height: 32px; }
.style b { display: block; font-size: 12px; }
.style small { font-size: 10px; color: #c9bb98; }
.style.on { background: #7a2e22; border-color: #ffe135; }

.doll { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; justify-items: center; padding: 2px 0; }
.column { display: flex; flex-direction: column; gap: 4px; }
.column.middle { align-items: center; gap: 6px; }
.middle > canvas { width: 80px; height: 100px; background: radial-gradient(ellipse, #00000050, transparent 70%); }
.worn { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.worn small { font-size: 10px; color: #c9bb98; }
#panel .worn .slot { width: 34px; height: 34px; background: #2e271d; border: 2px solid #1e1a14; box-shadow: inset 0 0 0 1px #7d6e54; }
#panel .worn .slot:not(:disabled):hover { background: #45392a; }
.worn .slot.empty::after { content: ''; width: 18px; height: 18px; border: 2px dashed #7d6e5480; border-radius: 4px; }
.stats { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 8px; background: #2e271d; font-size: 11px; }
.stats dd { color: #ffe135; text-align: right; }

.slot {
  position: relative; height: 38px; display: grid; place-items: center;
  background: #ffffff0c; border: 1px solid #00000040;
}
.slot canvas { width: 32px; height: 32px; }
#window .slot canvas { width: 40px; height: 40px; }
.slot:not(:disabled):hover { background: #ffffff25; }
.qty { position: absolute; top: 0; left: 2px; font-size: 10px; color: #ffe135; text-shadow: 1px 1px 0 #000; }

#panel.tasks { grid-template-columns: 1fr; }
.task { position: relative; background: #2e271d; padding: 6px 6px 9px; display: grid; grid-template-columns: 1fr auto; gap: 3px 6px; align-items: center; }
.task b { color: #ffe135; font-size: 11px; }
.task span { font-size: 11px; text-align: right; }
.task small { font-size: 9px; color: #c9bb98; }
.task .choice { font-size: 9px; padding: 1px 5px; }
.task i { position: absolute; left: 0; bottom: 0; height: 3px; background: #39b54a; }

.skill, .total {
  position: relative; height: 41px; display: grid; place-items: center; padding: 0;
  background: linear-gradient(#4b4235, #383026);
  border: 1px solid #14100a; border-radius: 2px;
  box-shadow: inset 1px 1px 0 #7a6c52, inset -1px -1px 0 #241e16;
}
.skill:hover { background: linear-gradient(#5c5140, #463c2f); }
.skill.on { background: linear-gradient(#6a5a38, #4a3f28); box-shadow: inset 0 0 0 1px #ffe135; }


#tip {
  position: fixed; z-index: 12; padding: 4px 8px; pointer-events: none; font-size: 11px;
  background: #ffffa0; color: #000; border: 1px solid #000; white-space: nowrap;
}
#tip div { display: flex; justify-content: space-between; gap: 12px; }
/* Item details: dark, so that the colours stand out. */
#tip.item { background: #1d1710f5; color: #f0e2c0; border: 1px solid #8a7a5c; white-space: normal; max-width: 220px; padding: 5px 8px; }
#tip.item .name { color: #ff9a1f; font-weight: bold; }
#tip.item .good { color: #3dee55; font-weight: bold; }
#tip.item .waste { color: #ffd23f; }
#tip.item .bad { color: #ff6a55; }
#tip.item .note { color: #c9bb98; font-size: 10px; }

#panel.prayer { grid-template-columns: repeat(4, 1fr); grid-auto-rows: min-content; gap: 4px; }
.prayer { grid-auto-rows: min-content; }
button.prayer {
  position: relative; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: #2e271d; border: 1px solid #14100a; border-radius: 50%;
}
button.prayer:hover { background: #453a2a; }
button.prayer.on { background: radial-gradient(circle, #fff3b0, #b8942a 70%); border-color: #ffe135; }
button.prayer.locked canvas { filter: grayscale(1) brightness(0.45); }
button.prayer i { position: absolute; top: -1px; left: 0; right: 0; font-style: normal; font-size: 10px; line-height: 8px; color: #fff; text-shadow: 1px 1px 0 #000; }
button.prayer small { position: absolute; right: 3px; bottom: 0; font-size: 9px; color: #ffff00; text-shadow: 1px 1px 0 #000; }
.hint { font-size: 10px; color: #c9bb98; }
.buttons span { align-self: center; font-size: 11px; }
.guide { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.unlock { display: grid; grid-template-columns: 30px 34px 1fr; gap: 6px; align-items: center; padding: 3px 6px; background: #00000030; }
.unlock .at { text-align: center; font-weight: bold; color: #ffff00; text-shadow: 1px 1px 0 #000; }
.unlock canvas { width: 32px; height: 32px; }
.unlock b { display: block; font-size: 12px; color: #ffe135; }
.unlock small { font-size: 10px; color: #d8ccac; }
.unlock.locked { opacity: 0.5; }
.unlock.locked .at { color: #ff8a75; }
#window.reading { overflow: hidden; }

#window {
  position: absolute; inset: 8% 10%; overflow-y: auto; padding: 10px;
  background: #4a3f30f5; border: 3px solid #1d160c;
  display: flex; flex-direction: column; gap: 8px;
}
#window header { display: flex; justify-content: space-between; align-items: center; color: #ff9a1f; font-size: 15px; }
#window .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; flex: 1; align-content: start; }
#window .grid p { grid-column: 1 / -1; }
#window .slot { height: 50px; }
.price { position: absolute; bottom: 0; right: 2px; font-size: 9px; color: #fff; text-shadow: 1px 1px 0 #000; }

#menu { position: fixed; z-index: 10; min-width: 140px; background: #5d5140; border: 2px solid #000; white-space: nowrap; }
#menu .title { background: #000; color: #b8a57c; padding: 2px 6px; font-weight: bold; }
#menu .row { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 3px 6px; color: #fff; }
#menu .row:hover { background: #00000045; }

#chat .note { color: #5b4a22; font-style: italic; }
#chat .said { color: #00359e; }
#chatForm input { width: 100%; margin-top: 4px; }
input {
  font: inherit; padding: 5px 7px; user-select: text;
  background: #efe3c4; color: #1d160c; border: 2px solid #5d5140;
}
#online { text-align: center; color: #ffe135; font-size: 11px; }
#banner {
  position: absolute; top: 6px; left: 6px; z-index: 5; padding: 5px 10px;
  background: #000; border: 1px solid #fff; line-height: 0;
}
#banner canvas { image-rendering: pixelated; }

#auth { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: #17130ef2; padding: 16px; }
#authForm {
  width: min(320px, 100%); display: flex; flex-direction: column; gap: 10px;
  padding: 20px; background: #3e3529; border: 3px solid #5d5140;
}
#authForm h1 { text-align: center; color: #ff9a1f; font-size: 24px; }
#authForm h2 { text-align: center; font-size: 14px; }
#authForm label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
#authForm .choice { padding: 8px; }
#note { font-size: 11px; color: #c9bb98; }
#error { min-height: 1.35em; text-align: center; color: #ff8a75; font-size: 12px; }
.link { background: none; border: 0; color: #ffe135; text-decoration: underline; }

#footer {
  height: 306px; display: flex; flex-direction: column; gap: 8px; padding: 14px;
  background: #4a4134; border: 2px solid #1e1a14; box-shadow: inset 0 0 0 2px #6b5f4a;
}
#footer .choice { padding: 9px; }
#soundRow { display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 12px; background: #2e271d; border: 1px solid #1d160c; padding: 8px; }
#soundRow b { color: #ffe135; }
#soundRow input { grid-column: 1 / -1; width: 100%; padding: 0; border: 0; background: none; accent-color: #e0b23a; cursor: pointer; }
.slot.offered canvas, .slot.offered .qty { opacity: 0.25; }
#chat button { color: #fff; font-size: 11px; padding: 0 8px; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.offers section { display: flex; flex-direction: column; gap: 5px; min-width: 0; background: #00000030; padding: 6px; }
.offers h3 { font-size: 12px; color: #ffe135; text-align: center; }
.offers .grid, .offers .list { flex: 1; }
.offers .list { white-space: pre-line; text-align: center; overflow-y: auto; }
.offers small { text-align: center; color: #c9bb98; font-size: 10px; }
#window .warning { color: #ff8a75; font-weight: bold; text-align: center; }
#window .warning:empty { display: none; }
#window .status { text-align: center; }
.buttons { display: flex; gap: 8px; justify-content: center; }
.buttons .choice { min-width: 110px; padding: 6px; }
.choice.yes { background: #23662b; }
.choice.yes:disabled { background: #3a4a36; color: #9aa88f; }

.parchment {
  background: radial-gradient(ellipse at 50% 40%, #f1e2b4, #cfb77c); color: #2b1d0a; text-align: center;
  padding: 18px 20px; border: 3px solid #7a5a28; border-radius: 6px; box-shadow: inset 0 0 18px #7a5a2880;
}
.parchment p { font-size: 14px; font-weight: bold; }
.parchment small { display: block; margin-top: 8px; font-size: 11px; color: #6a4a1c; }
#window > .column { align-items: stretch; gap: 5px; }
#window > .column .choice:disabled { background: #3a4a36; color: #9aa88f; }

.recipes { display: flex; flex-direction: column; gap: 4px; }
.recipe { display: grid; grid-template-columns: 50px 1fr auto auto auto; gap: 6px; align-items: center; background: #00000030; padding: 3px 6px 3px 3px; }
.recipe b { display: block; font-size: 12px; color: #ffe135; }
.recipe small { font-size: 10px; color: #c9bb98; }
.recipe .choice { min-width: 32px; }
.recipe.locked { opacity: 0.55; }
#window .recipe .slot { height: 44px; }

/* Full-window view: the game fills the browser and the interface floats on top. */
body.full { display: block; overflow: hidden; }
body.full main { position: fixed; inset: 0; width: auto; padding: 0; border: 0; background: #000; }
body.full #left, body.full #view { position: absolute; inset: 0; width: auto; }
body.full #game { width: 100%; height: 100%; }
body.full #chat, body.full #chatForm { position: absolute; left: 8px; width: min(520px, calc(100% - 250px)); }
body.full #chat { bottom: 46px; height: 140px; margin: 0; background: #cbb98fe6; }
body.full #chatForm { bottom: 8px; }
body.full #chatForm input { margin: 0; }
body.full aside { position: absolute; z-index: 3; top: 8px; right: 8px; bottom: 8px; pointer-events: none; }
body.full aside > * { pointer-events: auto; }
body.full #online { text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; pointer-events: none; }
body.full #praybar { margin-top: auto; }
body.full #panel, body.full #footer { flex: none; }
body.full #window { z-index: 2; inset: 6vh max(240px, 18vw) 200px max(8px, 18vw); }
@media (max-height: 720px) {
  body.full #minimap { width: 140px; height: 140px; }
}

#maporb canvas { filter: none; }
#worldmap { position: fixed; inset: 0; z-index: 14; display: grid; place-items: center; background: #000a; padding: 12px; }
#worldmap .sheet {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #3e3529; border: 3px solid #5d5140;
  width: min(1500px, calc(100vw - 24px)); height: min(900px, calc(100vh - 24px));
}
#worldmap header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
#worldmap header b { color: #ff9a1f; font-size: 16px; }
#worldmap header span { display: flex; gap: 4px; }
#mapin, #mapout { min-width: 30px; font-weight: bold; }
.mapbody { flex: 1; min-height: 0; display: flex; gap: 8px; }
.mapview { position: relative; flex: 1; min-width: 0; border: 2px solid #1e1a14; background: #0b0806; }
#mapcanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#mapcanvas:active { cursor: grabbing; }
.mapview p { position: absolute; left: 6px; bottom: 4px; font-size: 10px; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; pointer-events: none; }
#maptip { position: absolute; z-index: 1; padding: 3px 8px; pointer-events: none; font-size: 11px; white-space: nowrap; background: #ffffa0; color: #000; border: 1px solid #000; }
#legend { width: 172px; overflow-y: auto; list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 4px; background: #2e271d; border: 2px solid #1e1a14; }
#legend button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 2px 4px; font-size: 11px; text-align: left; background: none; border: 1px solid transparent; }
#legend button:hover { background: #ffffff14; }
#legend button.on { background: #6a5a38; border-color: #ffe135; }
#legend canvas { width: 22px; height: 22px; flex: none; }
@media (max-width: 680px) {
  .mapbody { flex-direction: column; }
  #legend { width: auto; max-height: 30%; flex-direction: row; flex-wrap: wrap; }
  #legend li { width: 48%; }
}

#window.dressing { inset: 2% 3%; overflow: hidden; }
.preview { align-self: center; width: 288px; max-width: 100%; height: auto; flex: none; background: #4e8a34; border: 2px solid #1e1a14; }
.wardrobe { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 104px 1fr; gap: 5px 8px; align-items: center; align-content: start; font-size: 11px; }
.options { display: flex; flex-wrap: wrap; gap: 3px; }
.options .choice { font-size: 11px; padding: 2px 7px; }
.swatch { width: 20px; height: 20px; border: 2px solid #1e1a14; border-radius: 3px; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px #ffe135; }

/* Narrow screens: panel goes under the game. */
@media (max-width: 680px) {
  body:not(.full) main { flex-direction: column; align-items: center; width: 100%; }
  body:not(.full) #left { width: 100%; }
}

/* The second row of tabs hangs below the panel. */
#tabs2 { padding: 0 2px 3px; border: 2px solid #1e1a14; border-top: 0; margin: -6px 0 0; }
#tabs2 button { border: 1px solid #1e1a14; border-top: 0; border-radius: 0 0 5px 5px; }
/* On shorter screens the panel and minimap shrink so nothing runs off the page. */
#panel, #footer { height: clamp(180px, calc(100vh - 460px), 306px); }
@media (max-height: 800px) {
  #minimap, body.full #minimap { width: 144px; height: 144px; }
  #panel, #footer { height: clamp(150px, calc(100vh - 405px), 306px); }
}
