/* ============================================================
   NeanderTale 2D — interfaccia
   Pietra, cuoio e osso: desaturato, leggibile, niente cartone.
   ============================================================ */
:root {
  --bg: #15130f;
  --panel: rgba(24, 21, 16, 0.94);
  --panel2: rgba(38, 33, 25, 0.95);
  --line: #5a4a34;
  --line2: #8a7250;
  --text: #e8dcc4;
  --dim: #a8987c;
  --gold: #e6c170;
  --hp: #b8342a;
  --cp: #c8a040;
  --mp: #3a6ab8;
  --exp: #7aa84a;
  --good: #8fd06a;
  --bad: #ff7060;
  --warn: #ffc860;
  --radius: 6px;
  --font: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Alegreya SC", Georgia, "Palatino Linotype", serif;
  --emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 13px/1.32 var(--font); user-select: none; font-variant-numeric: tabular-nums; }
h1, h3, h4, h5 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .toast, #poisonbox { animation: none !important; } }
canvas#game { position: fixed; inset: 0; display: block; cursor: default; }
[hidden] { display: none !important; }
button { font: inherit; color: var(--text); background: linear-gradient(#4a3d2a, #2e261a); border: 1px solid var(--line2); border-radius: 4px; padding: 4px 9px; cursor: pointer; }
button:hover:not(:disabled) { background: linear-gradient(#5e4d33, #3a3020); border-color: var(--gold); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: linear-gradient(#7a5a26, #4a3614); border-color: var(--gold); color: #fff3d6; }
button.small { padding: 2px 7px; font-size: 12px; }
button.danger { background: linear-gradient(#6a2a22, #3a1812); }
input, select { font: inherit; color: var(--text); background: #1c1812; border: 1px solid var(--line2); border-radius: 4px; padding: 6px 8px; }
.emo { font-family: var(--emoji); }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); } .dim { color: var(--dim); } .gold { color: var(--gold); }

/* ---------------- HUD ---------------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
#bars { position: absolute; left: 10px; top: 10px; width: 216px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; }
#bars .who { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; font-size: 11.5px; }
#bars .who b { font-family: var(--serif); font-size: 13.5px; color: var(--gold); }
.bar { position: relative; height: 12px; background: #0c0b08; border: 1px solid #3a3226; border-radius: 3px; margin: 3px 0; overflow: hidden; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; transition: width 0.15s; }
.bar > span { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 11px; text-shadow: 0 1px 2px #000; }
.bar > span.lab { position: absolute; left: 4px; right: auto; top: 0; bottom: auto; text-align: left; font-size: 9px; line-height: 11px; font-weight: bold; opacity: 0.85; text-shadow: 0 1px 2px #000; }
.bar.cp > i { background: linear-gradient(#e0b850, #8a6a20); } .bar.cp { opacity: 0.55; }
.bar.hp > i { background: linear-gradient(#d8483a, #7a1a12); }
.bar.mp > i { background: linear-gradient(#4a84d8, #1a3a78); }
.bar.exp > i { background: linear-gradient(#9ac85a, #4a6a22); }
#buffs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; min-height: 0; }
.buff { font-family: var(--emoji); font-size: 12px; background: #221c14; border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; position: relative; }
.buff small { font-family: var(--font); font-size: 9px; color: var(--dim); margin-left: 2px; }
#poisonbox { margin-top: 6px; padding: 5px; text-align: center; background: rgba(40,90,20,0.85); border: 1px solid #8ad060; border-radius: 4px; font-weight: bold; animation: pulse 0.8s infinite alternate; }
@keyframes pulse { from { filter: brightness(1); } to { filter: brightness(1.35); } }

#target { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 8px; text-align: center; }
#target .tn { font-family: var(--serif); font-size: 12.5px; }
#target .tsub { font-size: 10px; color: var(--dim); }

#mmwrap { position: absolute; right: 10px; top: 10px; width: 156px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; text-align: center; }
#minimap { display: block; margin: 0 auto; width: 144px; height: 144px; }
#mminfo { font-size: 10px; line-height: 1.25; color: var(--dim); margin-top: 3px; }
#mminfo b { color: var(--text); }
#clock { font-size: 10.5px; margin-top: 2px; }

#quests { position: absolute; right: 10px; top: 214px; width: 156px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 7px; font-size: 11px; max-height: 28vh; overflow: auto; }
#quests h4 { margin: 0 0 3px; font-family: var(--serif); font-size: 11px; color: var(--gold); cursor: pointer; }
#quests .q { margin-bottom: 6px; }
#quests .q b { display: block; font-size: 11px; }
#quests .row { display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; }
#quests .row.ok { color: var(--good); }

#skillbar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px; }
.slot { position: relative; width: 44px; height: 44px; background: #1c1812; border: 1px solid var(--line2); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-family: var(--emoji); font-size: 22px; cursor: pointer; overflow: hidden; }
.slot:hover { border-color: var(--gold); }
.slot .key { position: absolute; left: 3px; top: 1px; font: bold 9px var(--font); color: var(--dim); }
.slot .cdv { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.72); }
.slot .cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: bold 12px var(--font); color: #fff; text-shadow: 0 1px 2px #000; }
.slot.nomana { box-shadow: inset 0 0 0 40px rgba(20,40,120,0.55); }
.slot.over { border-color: var(--gold); box-shadow: 0 0 10px var(--gold); }
.slot .cnt { position: absolute; right: 3px; bottom: 1px; font: bold 10px var(--font); color: #fff; text-shadow: 0 1px 2px #000; }
#potbar { position: absolute; bottom: 10px; left: calc(50% - 157px); transform: translateX(-100%); display: flex; gap: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px; }
#potbar .slot { width: 36px; height: 36px; font-size: 18px; }

/* la fila rapida: lo zaino e i tre pannelli che si aprono di continuo, accanto al Menu */
/* la scelta del mondo, nella schermata d'ingresso */
.mondi { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.mondi .mondo { flex: 1 1 150px; text-align: left; padding: 7px 9px; line-height: 1.35; }
.mondi .mondo.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.mondi .mondo b { display: block; font-family: var(--serif); font-size: 13px; }
.mondi .mondo small { display: block; font-size: 11px; color: var(--dim); }
.mondi .mondo small.buono { color: #7ad07a; }
.mondi .mondo small.spento { color: #b8706a; }

.verriga { margin-top: 8px; font: 12px var(--font); color: var(--gold); letter-spacing: 0.02em; }

/* la fila rapida sta sopra il MENU, e lo zaino - quello che si apre piu' spesso - e' al
   centro, proprio sopra il tasto (il giocatore, 2026-09-24) */
#quickbar { position: absolute; right: 12px; bottom: 44px; display: flex; gap: 5px; justify-content: center; }
#quickbar .qbtn { position: relative; width: 38px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center; }
#quickbar .qi { font-size: 19px; line-height: 1; }
#quickbar .qk { position: absolute; right: 3px; bottom: 1px; font: bold 9px var(--font); color: var(--dim); }
#quickbar .qbtn:hover { border-color: var(--gold); }

#menubtn { position: absolute; right: 10px; bottom: 10px; }
#menubtn > button { font-size: 12.5px; padding: 7px 12px; font-family: var(--serif); }
#menu { position: absolute; right: 0; bottom: 40px; width: 196px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); padding: 6px; display: flex; flex-direction: column; gap: 3px; }
#menu button { text-align: left; }
#menu .sep { height: 1px; background: var(--line); margin: 3px 0; }
#menu button kbd { float: right; color: var(--dim); font: 11px var(--font); }
#menu .mgo { float: right; color: var(--dim); font-size: 14px; line-height: 1; }
#menu .mback { color: var(--gold); font-family: var(--serif); }
/* il personaggio: il 🧍 accanto al nome nelle barre; la sua fila (Scheda, Equip, Zaino, Skill)
   si apre sotto le barre, a sinistra, lontano dal nome del bersaglio in alto al centro */
#bars .who { align-items: center; cursor: pointer; }
#bars .who b { margin-right: auto; }
#pgToggle { flex: none; width: 22px; height: 22px; min-width: 0; margin-right: 5px; padding: 0; border-radius: 50%; font-family: var(--emoji); font-size: 12px; line-height: 1; }
#pgmenu { position: absolute; z-index: 2; display: flex; gap: 5px; }
#pgmenu button { width: 40px; height: 40px; min-width: 0; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--panel); border: 2px solid var(--line2); box-shadow: 0 3px 10px rgba(0,0,0,0.45); }
#pgmenu .emo { font-size: 18px; line-height: 1; }
@media (max-height: 520px) {
  body.touch #pgToggle { width: 20px; height: 20px; font-size: 11px; margin-right: 4px; }
  body.touch #pgmenu { gap: 4px; }
  body.touch #pgmenu button { width: 36px; height: 36px; }
  body.touch #pgmenu .emo { font-size: 16px; }
}

/* le impostazioni: una scelta per riga (grafica) o affiancate (audio, controlli); quella attiva è d'oro */
.setlist { display: grid; gap: 6px; }
.setrow { display: flex; flex-wrap: wrap; gap: 6px; }
.setrow .setopt { flex: 1 1 110px; }
.setopt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 9px; text-align: left; }
.setopt small { color: var(--dim); font-size: 11px; line-height: 1.25; }
.setopt.on { border-color: var(--gold); background: linear-gradient(#5e4d33, #3a3020); box-shadow: inset 0 0 0 1px rgba(230,193,112,0.35); }
.setopt.on b { color: var(--gold); }

#log { position: absolute; left: 10px; bottom: 64px; width: 290px; max-height: 118px; overflow: hidden; background: rgba(15,13,10,0.5); border: 1px solid rgba(90,74,52,0.45); border-radius: var(--radius); padding: 4px 7px; font-size: 11px; line-height: 1.28; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px); mask-image: linear-gradient(to bottom, transparent 0, #000 34px); }
#log div { text-shadow: 0 1px 2px #000; }
#log .chat { color: #f0e6c8; }
#log .loot { color: #d8c890; } #log .info { color: #b8c8e0; } #log .good { color: var(--good); } #log .bad { color: var(--bad); } #log .warn { color: var(--warn); } #log .dim { color: #857a66; }

#toasts { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast { font-family: var(--serif); font-size: 18px; color: #fff2d0; text-shadow: 0 2px 6px #000, 0 0 12px rgba(0,0,0,0.7); padding: 4px 16px; animation: toastIn 0.3s ease-out; transition: opacity 0.6s; }
.toast.level { font-size: 26px; color: #ffe08a; }
.toast.bad { color: #ff8a70; }
.toast.quest { color: #d8f0a0; }
.toast.region { font-size: 21px; letter-spacing: 1px; }
@keyframes toastIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#prompt { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line2); border-radius: 4px; padding: 4px 10px; font-size: 12px; pointer-events: none; }
#prompt kbd { background: #3a3020; border: 1px solid var(--line2); border-radius: 3px; padding: 0 5px; font: bold 12px var(--font); }

/* ---------------- Pannelli ---------------- */
#panels { position: fixed; inset: 0; pointer-events: none; }
.panel { position: absolute; pointer-events: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 7px; box-shadow: 0 8px 28px rgba(0,0,0,0.55); display: flex; flex-direction: column; max-height: calc(100vh - 120px); min-width: 260px; font-size: 12.5px; }
.panel .ph { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid var(--line); cursor: move; background: linear-gradient(rgba(70,56,36,0.5), rgba(40,32,22,0.3)); border-radius: 8px 8px 0 0; }
.panel .ph h3 { margin: 0; font: 13.5px var(--serif); color: var(--gold); letter-spacing: 0.5px; }
.panel .ph .x { background: none; border: none; font-size: 16px; padding: 0 4px; color: var(--dim); }
.panel .ph .x:hover { color: #fff; background: none; }
.panel .pb { padding: 8px 10px; overflow: auto; }
.panel h4 { margin: 8px 0 4px; font: 12px var(--serif); color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.panel h4:first-child { margin-top: 0; }
.panel p { margin: 4px 0; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.55); pointer-events: auto; }

.grid { display: grid; grid-template-columns: repeat(6, 44px); gap: 4px; }
.cell { position: relative; width: 44px; height: 44px; background: #1c1812; border: 1px solid #4a3d2c; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--emoji); font-size: 21px; cursor: pointer; }
.cell:hover { border-color: var(--gold); background: #2a2218; }
.cell .q { position: absolute; right: 3px; bottom: 1px; font: bold 11px var(--font); color: #fff; text-shadow: 0 1px 2px #000; }
.cell.empty { cursor: default; opacity: 0.5; }
.cell.locked { opacity: 0.35; }
.cell.cant { box-shadow: inset 0 0 0 30px rgba(120,20,20,0.35); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 1px 0; }
.kv span:first-child { color: var(--dim); }
.cols { display: flex; gap: 16px; }
.cols > div { flex: 1; min-width: 0; }
.list .it { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 4px; border: 1px solid transparent; }
.list .it:hover { background: rgba(80,64,40,0.35); border-color: var(--line); }
.list .it .ic { font-family: var(--emoji); font-size: 20px; width: 26px; text-align: center; }
.list .it .nm { flex: 1; min-width: 0; }
.list .it .nm small { display: block; color: var(--dim); font-size: 11px; }
/* 🖼️ Le iconcine dipinte dei menu: stanno al posto dell'emoji, stessa riga, stesso peso */
/* il primo posto della barra, sul telefono, è il cerchio grande sotto il pollice */
body.touch .slot.grande { border-color: var(--gold); box-shadow: 0 0 12px rgba(230,193,112,0.35); border-width: 2px; }
/* la spunta «ricordami» nella schermata d'ingresso */
.spunta { display: flex; align-items: center; gap: 7px; margin: 6px 0 2px; font-size: 12.5px; color: var(--dim); cursor: pointer; }
.spunta input { width: 16px; height: 16px; accent-color: #8a6a2a; }
/* il primo posto della barra, sul telefono, e' il cerchio grande sotto il pollice */
body.touch .slot.grande { border-color: var(--gold); box-shadow: 0 0 12px rgba(230,193,112,0.35); border-width: 2px; }
.micona { width: 22px; height: 22px; border-radius: 5px; vertical-align: -5px; margin-right: 2px; border: 1px solid #4a3d2c; object-fit: cover; }
#menuToggle .micona { width: 18px; height: 18px; vertical-align: -4px; }
#pgmenu .micona { width: 26px; height: 26px; margin: 0; vertical-align: middle; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.tabs button.on { border-color: var(--gold); color: var(--gold); background: linear-gradient(#5e4d33, #3a3020); }
/* 🧍 Il PG in piedi dietro l'elenco dei pezzi: si vede fra una riga e l'altra, e le righe
   gli stanno sopra un po' trasparenti. Non si tocca e non prende click. */
.panel[data-id="equip"] .pb { position: relative; }
.eqpg { position: absolute; top: 2px; right: 4px; width: 42%; height: 330px; background-repeat: no-repeat; background-position: top center; background-size: contain; pointer-events: none; z-index: 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6)); }
.panel[data-id="equip"] .pb > *:not(.eqpg) { position: relative; z-index: 1; }
/* le righe degli slot gli stanno accanto, non addosso: lui a destra, i pezzi a sinistra */
.panel[data-id="equip"] .eqslot { width: 57%; background: rgba(20,17,12,0.82); }
.panel[data-id="equip"] .eqslot.empty { background: rgba(20,17,12,0.55); }
@media (max-width: 560px) { .eqpg { width: 36%; height: 290px; } .panel[data-id="equip"] .eqslot { width: 62%; } }
.eqslot { display: flex; align-items: center; gap: 7px; padding: 4px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 5px; background: rgba(20,17,12,0.6); }
.eqslot .ic { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-family: var(--emoji); font-size: 24px; background: #1c1812; border: 1px solid #4a3d2c; border-radius: 4px; }
.eqslot.empty .ic { opacity: 0.3; filter: grayscale(1); }
.eqslot .nm { flex: 1; }
.eqslot .nm small { display: block; color: var(--dim); font-size: 11px; }
.tag { display: inline-block; font-size: 10px; padding: 0 5px; border-radius: 8px; border: 1px solid var(--line2); color: var(--dim); margin-left: 4px; }
.skrow { display: flex; align-items: center; gap: 7px; padding: 4px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 4px; background: rgba(20,17,12,0.6); }
.skrow .ic { width: 34px; height: 34px; font-family: var(--emoji); font-size: 19px; display: flex; align-items: center; justify-content: center; background: #1c1812; border: 1px solid var(--line2); border-radius: 5px; cursor: grab; }
.skrow.locked .ic { filter: grayscale(1); opacity: 0.45; cursor: default; }
.skrow .nm { flex: 1; }
.skrow .nm small { display: block; color: var(--dim); font-size: 11px; }
.tree { position: relative; height: 290px; margin: 6px 0; }
.node { position: absolute; width: 56px; height: 56px; margin-left: -28px; margin-top: -28px; border-radius: 50%; border: 2px solid var(--line2); background: #1c1812; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-size: 10px; text-align: center; }
.node .ic { font-family: var(--emoji); font-size: 20px; }
.node.have { border-color: var(--gold); background: #3a2e18; box-shadow: 0 0 10px rgba(230,193,112,0.4); }
.node.can { border-color: var(--good); }
.node.no { opacity: 0.5; }
.tree svg { position: absolute; inset: 0; pointer-events: none; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice .card { border: 1px solid var(--line2); border-radius: 8px; padding: 10px; background: rgba(40,32,22,0.7); cursor: pointer; }
.choice .card:hover { border-color: var(--gold); background: rgba(70,56,36,0.7); }
.choice .card .big { font-family: var(--emoji); font-size: 28px; }
.choice .card h5 { margin: 4px 0; font: 14px var(--serif); color: var(--gold); }
.lookpick { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.lookpick .sexes { display: flex; gap: 6px; }
.lookpick .swrow { display: flex; align-items: center; gap: 5px; }
.lookpick .swrow > span { width: 56px; font-size: 12px; }
.lookpick .sw { width: 22px; height: 22px; min-width: 0; padding: 0; border-radius: 50%; border: 2px solid rgba(0,0,0,0.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); cursor: pointer; }
.lookpick .sw.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(230,200,120,0.35); }
.lookpick .sw:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.note { background: rgba(90,60,20,0.35); border: 1px solid var(--line2); border-radius: 5px; padding: 6px 8px; font-size: 12px; margin: 6px 0; }
.pbar { height: 8px; background: #0c0b08; border: 1px solid #3a3226; border-radius: 3px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(#9ac85a, #4a6a22); }
table.t { border-collapse: collapse; width: 100%; font-size: 12px; }
table.t td, table.t th { padding: 3px 5px; border-bottom: 1px solid rgba(90,74,52,0.4); text-align: left; }
table.t th { color: var(--gold); font-weight: normal; font-family: var(--serif); }

#tooltip { position: fixed; z-index: 50; pointer-events: none; max-width: 290px; background: rgba(16,13,9,0.97); border: 1px solid var(--line2); border-radius: 5px; padding: 7px 9px; font-size: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.6); }
#tooltip b { color: var(--gold); font-family: var(--serif); font-size: 12px; }
#ctx { position: fixed; z-index: 45; background: var(--panel); border: 1px solid var(--line2); border-radius: 5px; padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 170px; box-shadow: 0 6px 20px rgba(0,0,0,0.6); }
#ctx button { text-align: left; }
#ctx .hd { padding: 3px 6px; color: var(--gold); font-family: var(--serif); border-bottom: 1px solid var(--line); margin-bottom: 2px; }

/* ---------------- Schermata del titolo ---------------- */
#title { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(20,17,12,0.55), rgba(8,7,5,0.94)); z-index: 30; }
/* margin auto: al centro quando ci sta, e quando è più alto dello schermo (telefono) parte dall'alto e si scorre */
#title { overflow-y: auto; padding: 8px 0; }
#title .box { margin: auto; width: min(560px, 92vw); background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 26px 30px; text-align: center; box-shadow: 0 16px 50px rgba(0,0,0,0.7); }
#title h1 { margin: 0; font: 46px var(--serif); color: var(--gold); letter-spacing: 2px; text-shadow: 0 3px 12px #000; }
#title h1 .emo { font-size: 38px; }
#title .sub { color: var(--dim); font-style: italic; margin: 4px 0 18px; }
#title .row { display: flex; gap: 8px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
#title label { display: block; text-align: left; color: var(--dim); margin: 8px 0 3px; }
#title input, #title select { width: 100%; }
#title .gen { margin: 14px 0 4px; font-size: 12px; color: var(--dim); }
#title .credit { margin-top: 16px; font-size: 11px; color: #7a6c58; }
#title .altver { display: inline-block; margin-top: 10px; color: var(--gold); font-family: var(--serif); font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(230,193,112,0.4); }
#title .altver:hover { border-bottom-color: var(--gold); }

@media (max-width: 900px) {
  #log { width: 230px; max-height: 96px; bottom: 108px; }
  #potbar { left: 10px; transform: none; }
  #quests { width: 140px; font-size: 10.5px; max-height: 22vh; top: 196px; }
  #mmwrap { width: 140px; }
  #minimap { width: 128px; height: 128px; }
  #bars { width: 196px; }
}

/* ---------------- In rete ---------------- */
#chatIn { position: absolute; left: 12px; bottom: 212px; width: 360px; background: rgba(15,13,10,0.92); border: 1px solid var(--gold); }
.titletabs { justify-content: center; margin: 0 0 6px; }
.titletabs button { min-width: 120px; }
#title .onnew { text-align: left; margin: 10px 0 2px; color: var(--dim); }
#title .onnew summary { cursor: pointer; color: var(--gold); font-family: var(--serif); }
#title .onmsg { min-height: 1.3em; margin-top: 6px; color: var(--warn); }
@media (max-width: 900px) { #chatIn { width: 250px; bottom: 206px; } }

/* ---------------- Comandi touch (telefono, tablet, APK) ---------------- */
#tpad, #tbtns, #trotate { display: none; }
body.touch canvas { touch-action: none; }
body.touch #tpad { display: block; position: absolute; left: 0; bottom: 0; width: 36vw; height: 46vh; touch-action: none; }
#tpad .tbase { position: absolute; left: 84px; top: calc(100% - 84px); width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; background: rgba(20,17,12,0.3); border: 2px solid rgba(230,193,112,0.3); pointer-events: none; }
#tpad .tbase.live { background: rgba(20,17,12,0.45); border-color: rgba(230,193,112,0.65); }
#tpad .tknob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f0d890, #9a7a40); box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
body.touch #tbtns { display: block; position: absolute; right: 10px; bottom: 58px; width: 150px; height: 140px; pointer-events: none; }
#tbtns .tb { position: absolute; pointer-events: auto; width: 50px; height: 50px; min-width: 0; border-radius: 50%; padding: 0; font-family: var(--emoji); font-size: 22px; background: rgba(24,21,16,0.82); border: 2px solid var(--line2); touch-action: manipulation; }
#tbtns .tb:active { background: rgba(90,70,40,0.9); }
#tbtns .tatk { width: 68px; height: 68px; font-size: 30px; right: 0; bottom: 0; border-color: var(--gold); }
#tbtns [data-t="tgt"] { right: 78px; bottom: 0; }
#tbtns [data-t="use"] { right: 9px; bottom: 78px; }
#tbtns .tjump { right: 72px; bottom: 60px; width: 48px; height: 48px; font-size: 21px; }
#tbtns .tchat { right: 134px; bottom: 36px; width: 40px; height: 40px; font-size: 17px; display: none; }
body.online #tbtns .tchat { display: block; }
body.touch #potbar { left: 10px; top: 116px; bottom: auto; transform: none; }
body.touch #log { left: 10px; top: 166px; bottom: auto; width: 240px; max-height: 58px; }
body.touch #mmwrap { width: 124px; padding: 4px; }
body.touch #minimap { width: 112px; height: 112px; }
body.touch #quests { width: 124px; top: 186px; max-height: 18vh; }
body.touch #chatIn { left: 50%; bottom: 72px; transform: translateX(-50%); width: min(420px, 70vw); }
body.touch #prompt { pointer-events: auto; cursor: pointer; bottom: 66px; font-size: 14px; padding: 7px 14px; }
body.touch .panel { max-height: calc(100vh - 16px); }
@media (max-height: 520px) { body.touch #quests, body.touch #mminfo { display: none; } }
#trotate { position: fixed; inset: 0; z-index: 100; background: rgba(10,9,7,0.95); color: var(--gold); font-family: var(--serif); font-size: 20px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }
#trotate span { font-size: 52px; font-family: var(--emoji); }
@media (orientation: portrait) { body.touch #trotate { display: flex; } }
/* col dito il tasto F non c'è: la scritta mostra la mano ✋ (e si tocca) */
body.touch #prompt kbd { font-size: 0; padding: 0 3px; }
body.touch #prompt kbd::after { content: '✋'; font-size: 13px; font-family: var(--emoji); }

/* il fiato della corsa: una barra sottile sotto l'EXP */
.bar.st { height: 5px; margin-top: 2px; }
.bar.st > i { background: linear-gradient(#f0e6a8, #b0963c); }
.bar.st.out > i { background: linear-gradient(#d88a5a, #8a4a2a); }

/* ---------------- Il registro a schede (in rete) ---------------- */
#logLines { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; overflow: hidden; }
#logTabs { display: none; gap: 3px; margin-top: 4px; }
body.online #logTabs { display: flex; }
#logTabs .ltab { font-size: 10.5px; padding: 1px 7px; background: rgba(24,21,16,0.85); border-color: var(--line); color: var(--dim); }
#logTabs .ltab.on { color: var(--gold); border-color: var(--gold); }
#logTabs .ltab b { color: #fff; background: #8a2a1e; border-radius: 6px; padding: 0 4px; font-size: 9.5px; }
#log .ch-local { color: #f0e6c8; }
#log .ch-party { color: #8ad0ff; }
#log .ch-clan { color: #a8e07a; }
#logTabs .ch-party.on { color: #8ad0ff; border-color: #8ad0ff; }
#logTabs .ch-clan.on { color: #a8e07a; border-color: #a8e07a; }
/* il riquadro del party, sotto le barre */
#party { position: absolute; left: 10px; top: 118px; width: 216px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 7px; font-size: 11px; }
#party .phd { display: flex; align-items: center; gap: 4px; color: #8ad0ff; font-family: var(--serif); }
#party .phd span { flex: 1; }
#party .phd button { font-size: 10px; padding: 0 6px; }
#party .pm { display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; align-items: center; margin-top: 4px; }
#party .pm .pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#party .pm .pn small { color: var(--dim); }
#party .pm .pb2 { grid-column: 1 / -1; height: 4px; background: #0c0b08; border-radius: 2px; overflow: hidden; }
#party .pm .pb2 i { display: block; height: 100%; background: linear-gradient(#5ac85a, #2a7a2a); }
#party .pm button { font-size: 9px; padding: 0 4px; }
#party .pm[data-pa="sel"] { cursor: pointer; border-radius: 3px; }
#party .pm[data-pa="sel"]:hover { background: rgba(138,208,255,0.08); }
#party .pm.sel { background: rgba(255,210,74,0.14); box-shadow: inset 2px 0 0 #ffd24a; }
#party .pm.me .pn { color: var(--gold); }
#party .pinv { display: flex; gap: 4px; margin-top: 5px; }
#party .pinv input { flex: 1; min-width: 0; font-size: 11px; padding: 2px 5px; }
#party .pinv button { font-size: 10px; padding: 1px 6px; }
body.touch #party { left: 234px; top: 10px; width: 170px; }
/* i membri del clan nel pannello */
.clanm { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 3px 6px; align-items: center; font-size: 12px; }
.clanm .dot { width: 8px; height: 8px; border-radius: 50%; background: #4a4438; }
.clanm .dot.on { background: #6ad05a; box-shadow: 0 0 4px #6ad05a; }

/* i CP: la seconda barra si accende quando un giocatore li consuma */
.bar.cp.live { opacity: 1; box-shadow: 0 0 6px rgba(224,184,80,0.5); }
#target .tsub button { font-size: 10px; padding: 0 6px; margin-left: 4px; }

/* ---------------- Telefono in orizzontale: l'interfaccia raccolta ----------------
   Uno schermo di telefono è alto 350-430 punti: le finestre del computer ne coprivano metà.
   Qui i riquadri si stringono ai bordi e lasciano libero il mondo: le barre più sottili
   (i CP solo quando servono), la minimappa più piccola, i tasti più vicini agli angoli,
   il registro senza fondo che si spegne da solo, e le finestre in scala, mai più alte
   dello schermo. */
@media (max-height: 520px) {
  body.touch #bars { left: 6px; top: 6px; width: 170px; padding: 3px 6px 4px; }
  body.touch #bars .who { font-size: 10.5px; margin-bottom: 1px; }
  body.touch #bars .who b { font-size: 12px; }
  body.touch .bar { height: 10px; margin: 2px 0; }
  body.touch .bar > span { font-size: 9px; line-height: 9px; }
  body.touch .bar > span.lab { font-size: 8px; line-height: 9px; }
  body.touch .bar.cp:not(.live) { display: none; }
  body.touch .bar.st { height: 4px; margin-top: 1px; }
  body.touch #buffs { gap: 2px; margin-top: 3px; }
  body.touch .buff { font-size: 10.5px; }
  body.touch #poisonbox { margin-top: 4px; padding: 2px; font-size: 11px; }
  body.touch #potbar { left: 182px; top: 6px; padding: 3px; gap: 3px; }
  body.touch #potbar .slot { width: 30px; height: 30px; font-size: 15px; }
  body.touch #potbar .slot .key { font-size: 8px; }
  /* il registro in basso al centro (la barra delle skill lì non c'è più): a sinistra ci sono le barre e il party */
  body.touch #log { left: calc(36vw + 8px); top: auto; bottom: 6px; width: min(270px, 34vw); max-height: 46px; font-size: 10.5px; line-height: 1.22; background: none; border: none; padding: 0 2px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
  body.touch #logLines { transition: opacity 1.2s; }
  body.touch #logLines.quiet { opacity: 0; }
  body.touch #logTabs .ltab { font-size: 10px; padding: 0 6px; }
  /* il party sotto le barre, compatto: fino a cinque righe, sopra la zona del joystick */
  body.touch #party { left: 6px; top: 82px; width: 158px; padding: 3px 5px 4px; font-size: 10.5px; background: rgba(24,21,16,0.74); z-index: 2; }
  body.touch #party .phd button { font-size: 9.5px; padding: 0 5px; }
  /* una riga per compagno: nome · vita · ✕ (cinque righe stanno sopra il joystick) */
  body.touch #party .pm { margin-top: 2px; gap: 0 4px; grid-template-columns: minmax(0, 1fr) 44px auto; align-items: center; min-height: 17px; }
  body.touch #party .pm .pn { grid-column: 1; grid-row: 1; }
  body.touch #party .pm .pb2 { grid-column: 2; grid-row: 1; height: 5px; }
  body.touch #party .pm > button, body.touch #party .pm > span:empty { grid-column: 3; grid-row: 1; }
  body.touch #party .pm > button { font-size: 8.5px; padding: 0 4px; line-height: 1.4; }
  body.touch #party .pm .pcls { display: none; }
  body.touch #mmwrap { right: 6px; top: 6px; width: 98px; padding: 3px; }
  body.touch #minimap { width: 90px; height: 90px; }
  body.touch #clock { font-size: 9px; line-height: 1.15; margin-top: 1px; }
  body.touch #target { top: 5px; min-width: 150px; padding: 2px 7px; }
  body.touch #target .tn { font-size: 11.5px; }
  body.touch #menubtn > button { font-size: 11px; padding: 4px 9px; }
  body.touch #menu { max-height: calc(100vh - 42px); gap: 2px 4px; padding: 4px; }
  body.touch #menu button { padding: 3px 7px; font-size: 12px; }
  body.touch #tpad .tbase { left: 70px; top: calc(100% - 70px); width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  body.touch #tpad .tknob { width: 40px; height: 40px; }
  body.touch #prompt { bottom: 58px; font-size: 12px; padding: 4px 10px; }
  body.touch #chatIn { bottom: 58px; }
  body.touch #toasts { top: 17%; gap: 3px; }
  body.touch .toast { font-size: 14px; padding: 2px 12px; }
  body.touch .toast.level { font-size: 20px; }
  body.touch .toast.region { font-size: 16px; }
  body.touch #tooltip { max-width: 230px; font-size: 11px; padding: 5px 7px; }
  body.touch #ctx { min-width: 150px; }
  /* le finestre: in scala dal loro angolo in alto a sinistra (così le coordinate restano giuste),
     mai più larghe né più alte dello schermo */
  body.touch .panel { transform: scale(0.8); transform-origin: 0 0; max-height: calc((100vh - 8px) / 0.8); max-width: calc((100vw - 8px) / 0.8); min-width: 0; }
  body.touch #title .box { padding: 12px 18px; font-size: 12.5px; }
  body.touch #title .row { margin: 6px 0; }
  body.touch #title label { margin: 5px 0 2px; }
  body.touch #title .gen, body.touch #title .credit { margin-top: 8px; }
  body.touch #title h1 { font-size: 30px; }
  body.touch #title h1 .emo { font-size: 26px; }
  body.touch #title .sub { margin: 2px 0 8px; }
}

/* ---------------- Telefono: i cerchi a destra ----------------
   Niente barra delle skill in basso al centro: attorno al pulsante d'attacco ci sono salta,
   bersaglio e usa, e più fuori, su un arco, le skill 1-6 (le mette al loro posto
   NT.Touch.layout, secondo l'altezza dello schermo). Il Menu sale in alto, accanto alla
   minimappa, e si apre verso il basso. */
body.touch #tbtns, body.touch #skillbar { position: absolute; left: 0; top: 0; right: auto; bottom: auto; width: 0; height: 0; padding: 0; border: 0; background: none; transform: none; display: block; pointer-events: none; }
body.touch #tbtns .tb { right: auto; bottom: auto; line-height: 1; }
body.touch #tbtns .tb.down, body.touch #skillbar .slot.down, body.touch #potbar .slot.down { background: rgba(110,86,48,0.95); transform: scale(0.93); }
body.touch #skillbar .slot { position: absolute; pointer-events: auto; border-radius: 50%; background: rgba(24,21,16,0.82); border: 2px solid var(--line2); touch-action: manipulation; transition: transform 0.08s; }
body.touch #skillbar .slot .key { display: none; }
body.touch #skillbar .slot:not([data-tip-skill]) { opacity: 0.35; }
body.touch #skillbar .slot:not([data-tip-skill])::after { content: '+'; font: 16px var(--font); color: var(--dim); }
body.touch #skillbar .slot .cdt { font-size: 13px; }
body.touch #menubtn { right: 112px; top: 6px; bottom: auto; z-index: 3; }
body.touch #quickbar { right: 112px; top: 34px; bottom: auto; z-index: 3; }
body.touch #quickbar .qbtn { width: 32px; height: 32px; }
body.touch #quickbar .qk { display: none; }
body.touch #quickbar .qtarget { display: none; }   /* sul telefono il f3af sta gia' fra i tasti tondi */
/* verso il basso, dal Menu in alto */
body.touch #menu { top: 30px; bottom: auto; right: 0; width: 210px; max-height: calc(100vh - 44px); overflow: auto; }
body.touch #menu button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 5px; padding-bottom: 5px; }
body.touch #menu button kbd { display: none; }

/* la pagina 3D che non è riuscita a partire: il motivo, in alto, sopra tutto */
#no3d { position: fixed; left: 50%; top: 6px; transform: translateX(-50%); z-index: 200; max-width: min(560px, 92vw); background: rgba(40,16,12,0.96); border: 1px solid var(--bad); border-radius: var(--radius); padding: 6px 10px; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.6); }
#no3d b { color: var(--bad); }
#no3d button { margin-left: 6px; }

/* la politica: i moduli per proporre, una proposta per riga */
.polform { display: grid; gap: 6px; margin: 4px 0; }
.polform label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.polform label input:not([type=number]) { flex: 1; min-width: 120px; }
.polform label button { flex: none; }

/* il party: sotto la vita, il mana (blu) e i CP (oro) */
.pm .pb2.mp i { background: #4a8ae0; }
.pm .pb2.cp i { background: #e0b84a; }
.pm .pb2.mp, .pm .pb2.cp { height: 3px; margin-top: 1px; }
/* la barra delle skill si sposta tenendo premuto il bordo sinistro */
#skillbar .grip { width: 8px; cursor: grab; align-self: stretch; border-radius: 3px; background: repeating-linear-gradient(0deg, rgba(210,190,140,0.5) 0 2px, transparent 2px 5px); }
body.touch #skillbar .grip { display: none; }

/* il nuovo inizio: la tappa della prima notte, in basso al centro */
#introHint { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: min(560px, 92vw); padding: 7px 10px; background: var(--panel); border: 1px solid #c8a24a; border-radius: var(--radius); box-shadow: 0 0 14px rgba(255,210,74,0.25); z-index: 20; font-size: 14px; }
#introHint .ih-ic { font-size: 22px; }
#introHint .ih-n { color: #c8a24a; font-size: 12px; }
#introHint button { padding: 2px 7px; }
body.touch #introHint { top: 58px; font-size: 13px; }

/* ---- le icone disegnate (skill e mestieri) ----
   Un medaglione di pietra disegnato al volo da js/ui/icone.js: riempie la casella e
   l'emoji resta sotto, trasparente, come rete di sicurezza. */
.slot .ic.disegnata { color: transparent; background-size: 100% 100%; background-repeat: no-repeat; }
img.icona { width: 30px; height: 30px; vertical-align: middle; }
img.icona.grande { width: 38px; height: 38px; }
.skrow .ic img.icona, .list .it .ic img.icona { width: 100%; height: 100%; display: block; }
.skrow .ic, .list .it .ic { overflow: hidden; }

/* ---- la nascita del personaggio ---- */
/* L'ominide non deve mangiarsi lo schermo: al telefono (schermo basso) rimpicciolisce,
   e sotto i 560 px di larghezza si mette sopra ai comandi invece che di fianco.
   (il giocatore, 2026-09-23: «il PG sul cellulare occupa tutta la schermata») */
.nascita h3 { font-family: var(--serif); font-size: 18px; margin: 2px 0 6px; color: var(--gold); }
.nasbox { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.nasbox canvas { width: 168px; height: 230px; flex: 0 0 auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, #2a3320, #47562e); }
.nascol { flex: 1 1 auto; min-width: 0; }
.nasnome { font-family: var(--serif); font-size: 16px; color: var(--gold); padding: 1px 0 3px; }
.nastabs { margin: 6px 0; flex-wrap: wrap; }
.nastabs button { font-size: 12px; padding: 4px 9px; }
.lookpick .swrow.pezzi { flex-wrap: wrap; gap: 4px; }
.lookpick .pezzo { padding: 3px 8px; font-size: 11px; }
@media (max-width: 560px) {
  .nasbox { flex-direction: column; align-items: center; }
  .nasbox canvas { width: 120px; height: 164px; }
}
@media (max-height: 620px) {
  .nascita h3 { font-size: 15px; margin: 0 0 4px; }
  .nasbox canvas { width: 112px; height: 153px; }
  .nastabs button { font-size: 11px; padding: 3px 7px; }
}
@media (max-height: 460px) {
  .nasbox canvas { width: 88px; height: 120px; }
}

/* Schermo basso (il telefono in orizzontale): la schermata di nascita deve STARCI,
   senza scorrere. Si stringe il titolo, sparisce il sottotitolo, e l'ominide si mette
   di fianco ai comandi invece che sopra. */
@media (max-height: 560px) {
  #title .box { padding: 10px 16px; width: min(760px, 96vw); }
  #title h1 { font-size: 24px; letter-spacing: 1px; }
  #title h1 .emo { font-size: 20px; }
  #title .sub, #title .credit, #title .verriga { display: none; }
  .nascita h3 { font-size: 14px; margin: 0 0 4px; }
  .nascita p.dim { display: none; }
  .nasbox { flex-direction: row; align-items: flex-start; gap: 10px; }
  .nasbox canvas { width: 104px; height: 142px; }
  #title .row { margin-top: 6px; }
}
@media (max-height: 560px) {
  /* il riquadro non esce mai dallo schermo: al massimo scorre lui, non la pagina */
  #title .box { max-height: 96vh; overflow: auto; }
  #title label { margin-top: 4px; font-size: 11px; }
  #title input, #title select { padding: 4px 8px; font-size: 13px; }
  #title .row button { font-size: 13px !important; padding: 5px 14px !important; }
  .lookpick .swrow { margin: 2px 0; }
  .lookpick .sw { width: 18px; height: 18px; }
}
@media (max-height: 400px) {
  #title h1 { font-size: 19px; }
  .nasbox canvas { width: 84px; height: 115px; }
  .nastabs { margin: 4px 0; }
  .nascita h3 { display: none; }
}

/* ---- i tre slot del personaggio ---- */
.slots { display: flex; gap: 8px; margin: 8px 0; }
.slot-pg { flex: 1 1 0; min-width: 0; text-align: center; padding: 13px 9px; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(0,0,0,0.25); }
.slot-pg.pieno { border-color: var(--line2); background: rgba(70,55,30,0.22); }
.slot-pg.vuoto { border-style: dashed; }
.slot-pg .sp-ic { font-size: 30px; line-height: 1.1; }
.slot-pg .sp-nome { font-family: var(--serif); font-size: 15.5px; color: var(--gold); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-pg.vuoto .sp-nome { color: var(--dim); }
.slot-pg .sp-sub { font-size: 11.5px; color: var(--dim); margin-bottom: 7px; min-height: 14px; }
@media (max-width: 520px) { .slots { flex-direction: column; } .slot-pg { display: flex; align-items: center; gap: 8px; text-align: left; }
  .slot-pg .sp-ic { font-size: 20px; } .slot-pg .sp-sub { margin: 0; } .slot-pg .sp-nome { flex: 0 0 auto; } }

/* il ritratto del personaggio negli slot */
.ritratto { width: 92px; height: 108px; display: block; margin: 0 auto 3px; border-radius: 6px;
  background: linear-gradient(180deg, #2a3320, #47562e); border: 1px solid var(--line); object-fit: cover; }
.ritratto.vuoto { display: flex; align-items: center; justify-content: center; font-size: 26px; }
.slot-pg .sp-fila { display: flex; gap: 4px; justify-content: center; }
.slot-pg .cestino { padding: 3px 7px; opacity: 0.75; }
.slot-pg .cestino:hover { opacity: 1; border-color: #b8342a; }
@media (max-width: 520px) { .ritratto { width: 44px; height: 52px; margin: 0; } }

/* La versione sotto i tre slot: e' l'unica scritta rimasta li' sotto (il giocatore,
   2026-09-25: «lascia SOLO la Versione, la scritta centrata»), e deve vedersi ANCHE sul
   telefono — percio' ha una classe sua e non .verriga, che sugli schermi bassi sparisce. */
.verscelta { margin-top: 9px; text-align: center; font: 12px var(--font); color: var(--gold); letter-spacing: 0.02em; }
@media (max-height: 560px) { .verscelta { margin-top: 6px; font-size: 11px; } }
/* Il telefono in orizzontale e' alto 350-430 punti: gli slot cresciuti non ci starebbero,
   e il riquadro comincerebbe a scorrere. Su schermo basso tornano della misura di prima. */
@media (max-height: 560px) {
  .slot-pg { padding: 8px 6px; }
  .ritratto { width: 66px; height: 78px; }
  .slot-pg .sp-nome { font-size: 13.5px; }
  .slot-pg .sp-sub { font-size: 10.5px; margin-bottom: 4px; }
}
@media (max-height: 430px) {
  .ritratto { width: 54px; height: 64px; }
  .slot-pg .sp-sub { display: none; }
}

