/* Sigilfall interface (on top of /css/arcade.css) */
body.game { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.sf-amove canvas.stage { cursor: crosshair; }
canvas.stage { transition: filter .6s; }
canvas.stage.grey { filter: grayscale(.85) brightness(.75); }

/* top score bar */
.sf-score { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: auto auto auto auto auto; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(14, 18, 36, .9), rgba(14, 18, 36, .7)); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px 18px; z-index: 21; }
.sf-score b { font-size: 24px; min-width: 28px; text-align: center; }
.sf-score b.blue { color: #6ab4ff; } .sf-score b.red { color: #ff6a58; }
.sf-score .clock { font-size: 18px; font-variant-numeric: tabular-nums; padding: 0 10px; color: #fff; }
.sf-score .tn { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sf-sub { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sf-kda { top: 58px; right: 14px; font-size: 14px; display: flex; gap: 6px; align-items: baseline; }
.sf-kda span { color: var(--muted); font-size: 11px; margin-right: 6px; }
.sf-invite { top: 102px; right: 14px; pointer-events: auto; cursor: pointer; font: inherit; font-weight: 700; color: var(--text); }
.sf-invite code { color: var(--accent); letter-spacing: .12em; }
.sf-invite.off { opacity: .5; }

/* kill feed */
.sf-feed { position: absolute; top: 146px; right: 14px; width: 330px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.sf-feed .row { background: rgba(10, 14, 30, .78); border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; font-size: 13px; font-weight: 600; transition: opacity .9s; text-shadow: none; }
.sf-feed .row.good { border-color: rgba(106, 180, 255, .45); } .sf-feed .row.bad { border-color: rgba(255, 106, 88, .5); }
.sf-feed .row i { font-style: normal; color: var(--muted); margin: 0 4px; }
.sf-feed .row small { color: var(--muted); }
.sf-feed .row.fade { opacity: 0; }

/* bottom bar */
.sf-bar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 12px; align-items: flex-end; pointer-events: auto;
  background: linear-gradient(180deg, rgba(20, 26, 50, .92), rgba(10, 13, 28, .94)); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); text-shadow: none; }
.sf-bar.hit { animation: sfhit .35s; }
@keyframes sfhit { 0% { box-shadow: 0 0 0 2px rgba(255, 60, 60, .9), 0 10px 40px rgba(0, 0, 0, .5); } 100% { box-shadow: 0 10px 40px rgba(0, 0, 0, .5); } }
.sf-portrait { position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; background: #1a2238; flex: none; }
.sf-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-portrait .xp { position: absolute; left: 0; bottom: 0; width: 5px; background: linear-gradient(0deg, #a070ff, #e0a0ff); }
.sf-portrait .lvl { position: absolute; right: 4px; bottom: 4px; min-width: 26px; height: 26px; border-radius: 50%; background: #0b0f20; border: 2px solid var(--accent); display: grid; place-items: center; font-size: 13px; color: var(--accent); }
.sf-mid { display: flex; flex-direction: column; gap: 6px; }
.sf-name { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.sf-name::before { content: attr(data-n); color: #fff; font-weight: 800; }
.sf-name .st { color: #ffcf6a; }
.sf-abil { display: flex; gap: 8px; }
.sf-ab { position: relative; width: 60px; height: 60px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--hc, #888) 70%, white); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--hc, #888) 45%, #1a2240), #10142a); color: #fff; padding: 0; cursor: pointer; overflow: visible; font: inherit; }
.sf-ab .ic { font-size: 28px; line-height: 56px; display: block; }
.sf-ab .cd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(5, 8, 18, .72); border-radius: 0 0 10px 10px; }
.sf-ab em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 18px; font-weight: 800; text-shadow: 0 2px 4px #000; }
.sf-ab kbd { position: absolute; left: -6px; top: -8px; min-width: 20px; padding: 1px 5px; font-size: 11px; background: #0b0f20; }
.sf-ab .mp { position: absolute; right: 3px; bottom: 2px; font-size: 10px; color: #8fc8ff; font-weight: 800; text-shadow: 0 1px 2px #000; }
.sf-ab .pips { position: absolute; left: 0; right: 0; bottom: -8px; display: flex; gap: 3px; justify-content: center; }
.sf-ab .pips i { width: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.sf-ab .pips i.on { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.sf-ab.locked { filter: grayscale(1) brightness(.5); }
.sf-ab.nomana { box-shadow: inset 0 0 0 60px rgba(30, 60, 160, .45); }
.sf-ab .up { display: none; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: 26px; height: 22px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 900; line-height: 22px; animation: sfbob 1s infinite; filter: none; }
.sf-ab .up.show { display: block; }
.sf-ab.locked .up.show { filter: none; }
@keyframes sfbob { 50% { transform: translateX(-50%) translateY(-3px); } }
.sf-bars { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.sf-hpbar, .sf-mpbar { position: relative; height: 16px; border-radius: 6px; background: rgba(0, 0, 0, .55); overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.sf-mpbar { height: 12px; }
.sf-hpbar i { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(180deg, #67e86a, #2fae4a); transition: width .15s; }
.sf-hpbar i.sh { background: linear-gradient(180deg, #e8f4ff, #9fc8ff); left: 0; width: 0; }
.sf-mpbar i { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(180deg, #6ab8ff, #2f6ee0); transition: width .15s; }
.sf-hpbar span, .sf-mpbar span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 16px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.sf-mpbar span { line-height: 12px; font-size: 10px; }
.sf-right { display: flex; flex-direction: column; gap: 6px; }
.sf-items { display: grid; grid-template-columns: repeat(3, 40px); gap: 5px; }
.sf-it { position: relative; width: 40px; height: 40px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); font-size: 21px; padding: 0; cursor: pointer; color: #fff; overflow: hidden; }
.sf-it.empty { background: rgba(0, 0, 0, .3); border-style: dashed; cursor: default; }
.sf-it.act { border-color: var(--accent); }
.sf-it .cd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(5, 8, 18, .7); }
.sf-it kbd { position: absolute; right: 1px; bottom: 1px; font-size: 9px; padding: 0 3px; min-width: 0; border-bottom-width: 1px; background: rgba(0, 0, 0, .6); }
.sf-gold { display: flex; align-items: center; gap: 6px; }
.sf-gold .coin { color: #ffcc40; font-size: 16px; }
.sf-gold b { color: #ffd862; font-size: 16px; min-width: 44px; }
.sf-gold button { font: 700 12px var(--font); border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; padding: 5px 7px; cursor: pointer; }
.sf-gold .sf-shopbtn.here { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sf-gold .sf-quick.ready { box-shadow: 0 0 0 2px #7dffb0; }
.sf-gold .sf-quick small { color: #ffd862; }

/* minimap */
.sf-mini { position: absolute; left: 12px; bottom: 12px; width: 220px; height: 220px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .25); pointer-events: auto; cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); background: #1f4f5e; }

/* name tags over heroes */
.sf-tags { position: absolute; inset: 0; overflow: hidden; }
.sf-tag { position: absolute; left: 0; top: 0; width: 96px; margin-left: -48px; margin-top: -26px; text-shadow: 0 1px 3px #000; will-change: transform; }
.sf-tag .nm { display: flex; gap: 4px; align-items: center; justify-content: center; font-size: 11px; white-space: nowrap; }
.sf-tag .nm b { background: #0b0f20; border-radius: 4px; padding: 0 4px; font-size: 10px; color: var(--accent); }
.sf-tag .hp { position: relative; height: 8px; background: rgba(0, 0, 0, .7); border-radius: 3px; overflow: hidden; border: 1px solid #000; margin-top: 2px; }
.sf-tag .hp i { position: absolute; left: 0; top: 0; bottom: 0; background: #4ade5a; }
.sf-tag .hp i.sh { background: #dcecff; left: 0; width: 0; }
.sf-tag.enemy .hp i:first-child { background: #ff4a3c; }
.sf-tag.me .hp i:first-child { background: #b8f04a; }
.sf-tag .mp { height: 3px; background: rgba(0, 0, 0, .7); margin-top: 1px; border-radius: 2px; overflow: hidden; }
.sf-tag .mp i { display: block; height: 100%; background: #5ab0ff; }
.sf-tag.enemy .nm span { color: #ffb0a8; } .sf-tag.ally .nm span { color: #b8dcff; } .sf-tag.me .nm span { color: #ffe680; }
.sf-tag.inv { opacity: .55; }

/* floating numbers (from fx.js) */
.sf-nums { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sf-nums b { position: absolute; left: 0; top: 0; display: none; font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 2px 3px #000, 0 0 2px #000; will-change: transform; }
.sf-nums b.mine { color: #fff3c8; font-size: 17px; }
.sf-nums b.mag { color: #c9b4ff; }
.sf-nums b.mine.mag { color: #e0d2ff; }
.sf-nums b.crit { color: #ffcf40; font-size: 22px; }
.sf-nums b.hurt { color: #ff6060; }
.sf-nums b.heal { color: #7dffa0; }
.sf-nums b.gold { color: #ffd34a; font-size: 14px; }

/* banners, dead cover, channel bar, tooltip */
.sf-banner { position: absolute; top: 22%; left: 50%; transform: translate(-50%, -10px); text-align: center; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.sf-banner.show { opacity: 1; transform: translate(-50%, 0); }
.sf-banner b { display: block; font-size: 40px; letter-spacing: .04em; text-shadow: 0 4px 18px rgba(0, 0, 0, .8); }
.sf-banner span { display: block; font-size: 15px; color: #dde3ff; margin-top: 4px; }
.sf-banner.kill b { color: #ffd862; } .sf-banner.dead b { color: #ff6a58; } .sf-banner.lvl b { color: #b8f0ff; }
.sf-dead { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); text-align: center; display: none; }
.sf-dead.show { display: block; }
.sf-dead span { display: block; color: #dde3ff; font-size: 16px; }
.sf-dead b { font-size: 64px; color: #fff; }
.sf-chan { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); width: 240px; height: 18px; border-radius: 9px; background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .25); overflow: hidden; display: none; }
.sf-chan.show { display: block; }
.sf-chan i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #4aa8ff, #b8e8ff); }
.sf-chan span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 18px; }
.sf-tip { position: absolute; width: 280px; background: rgba(10, 14, 30, .96); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 500; display: none; text-shadow: none; z-index: 30; }
.sf-tip.show { display: block; }
.sf-tip small { color: var(--muted); }
.sf-tip p { margin: 6px 0 0; color: #dde3ff; }
.sf-tip p.n { color: #ffd862; font-size: 12px; }
.sf-tip p.m { color: #8fc8ff; font-size: 12px; }

/* scoreboard */
.sf-board { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); width: min(820px, 96vw); background: rgba(10, 14, 30, .94); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: none; text-shadow: none; z-index: 25; }
.sf-board.show { display: block; }
.sf-board .hd { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 8px; }
.sf-board .team { margin: 10px 0 4px; font-size: 15px; } .sf-board .team span { color: var(--muted); font-size: 13px; }
.sf-board .t0 b { color: #6ab4ff; } .sf-board .t1 b { color: #ff6a58; }
.sf-board table { width: 100%; border-collapse: collapse; font-size: 13px; font-weight: 600; }
.sf-board th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 700; padding: 3px 6px; }
.sf-board td { padding: 5px 6px; border-top: 1px solid var(--line); }
.sf-board tr.me td { background: rgba(255, 201, 77, .12); }
.sf-board tr.dead td { opacity: .5; }
.sf-board small { color: var(--muted); }

/* shop */
.sf-shop { position: absolute; right: 14px; bottom: 140px; width: min(520px, 94vw); max-height: 70vh; overflow: auto; background: rgba(10, 14, 30, .96); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: none; pointer-events: auto; text-shadow: none; z-index: 24; }
.sf-shop.show { display: block; }
.sf-shop.far::after { content: 'You can browse here, but items are bought at your fountain.'; display: block; margin-top: 8px; font-size: 12px; color: #ffcf6a; }
.sf-shop .hd { display: flex; align-items: baseline; gap: 10px; }
.sf-shop .hd b { font-size: 18px; } .sf-shop .hd span { flex: 1; font-size: 12px; font-weight: 500; }
.sf-shop .x { background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; }
.sf-shop .lbl { margin: 10px 0 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sf-shop .rec, .sf-shop .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.sf-shop .rec { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.sf-shop .card { width: auto; padding: 7px 8px; border-radius: 10px; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #fff; font: inherit; cursor: pointer; box-shadow: none; }
.sf-shop .card:hover { border-color: var(--accent); }
.sf-shop .card i { font-style: normal; font-size: 22px; grid-row: span 3; }
.sf-shop .card b { font-size: 12px; } .sf-shop .card span { font-size: 11px; color: var(--muted); font-weight: 500; } .sf-shop .card em { font-style: normal; font-size: 12px; color: #ffd862; font-weight: 800; }
.sf-shop .rec .card { grid-template-columns: 1fr; text-align: center; } .sf-shop .rec .card i { grid-row: auto; }
.sf-shop .card.poor em { color: #ff7a6a; } .sf-shop .card.own { opacity: .45; }

/* lobby */
.sf-lobby .card.wide { width: min(100%, 860px); max-height: 94vh; overflow: auto; padding: 22px 24px; }
.sf-lobby .lrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.sf-lobby .seg { display: flex; gap: 6px; }
.sf-lobby .teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.sf-lobby .team { border-radius: 14px; padding: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.sf-lobby .team.t0 { border-color: rgba(106, 180, 255, .45); } .sf-lobby .team.t1 { border-color: rgba(255, 106, 88, .45); }
.sf-lobby .th { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sf-lobby .t0 .th b { color: #6ab4ff; } .sf-lobby .t1 .th b { color: #ff6a58; }
.sf-lobby .slot { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; align-items: center; padding: 5px 6px; border-radius: 8px; font-size: 14px; }
.sf-lobby .slot.me { background: rgba(255, 201, 77, .14); }
.sf-lobby .slot.bot span { color: var(--muted); }
.sf-lobby .lbl { margin: 14px 0 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; }
.sf-lobby .heroes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sf-lobby .hero { border-radius: 12px; border: 2px solid var(--line); background: rgba(255, 255, 255, .05); padding: 4px 4px 6px; color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.sf-lobby .hero img { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #1a2238; }
.sf-lobby .hero b { font-size: 13px; margin-top: 4px; } .sf-lobby .hero span { font-size: 10px; color: var(--muted); }
.sf-lobby .hero.on { border-color: var(--accent); background: rgba(255, 201, 77, .12); }
.sf-lobby .hinfo { text-align: left; margin-top: 10px; font-size: 13px; }
.sf-lobby .hinfo p { margin: 4px 0 8px; }
.sf-lobby .abl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sf-lobby .abl .a { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.sf-lobby .abl .a span { grid-column: 2; font-size: 11px; color: var(--muted); }
.sf-lobby p.small { font-size: 12px; margin-top: 12px; }
.sf-lobby .btns { flex-direction: row; justify-content: center; }
.sf-lobby .btns .btn { min-width: 160px; }

/* touch controls */
.sf-touch { position: absolute; right: 16px; bottom: 16px; width: 250px; height: 250px; pointer-events: none; }
.sf-touch .tb { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); background: rgba(20, 26, 50, .78); color: #fff; font-size: 26px; pointer-events: auto; touch-action: none; padding: 0; }
.sf-touch .tb.on { background: var(--accent); }
.sf-touch .tb.cool { filter: brightness(.55); } .sf-touch .tb.cool::after { content: attr(data-cd); position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.sf-touch .tb.locked { filter: grayscale(1) brightness(.45); }
.sf-touch .tb .up { display: none; position: absolute; top: -10px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 900; line-height: 24px; filter: none; }
.sf-touch .tb .up.show { display: block; }
.sf-touch .atk { right: 0; bottom: 0; width: 86px; height: 86px; font-size: 34px; }
.sf-touch .t0 { right: 104px; bottom: 6px; } .sf-touch .t1 { right: 98px; bottom: 82px; } .sf-touch .t2 { right: 36px; bottom: 110px; } .sf-touch .t3 { right: 104px; bottom: 156px; border-color: var(--accent); }
.sf-touch .rc { right: 176px; bottom: 6px; width: 48px; height: 48px; font-size: 20px; }
body.sf-touchui .sf-abil .sf-ab { width: 46px; height: 46px; } body.sf-touchui .sf-ab .ic { font-size: 20px; line-height: 42px; }
body.sf-touchui .sf-bar { left: 12px; transform: none; bottom: auto; top: 54px; padding: 6px 8px; gap: 8px; }
body.sf-touchui .sf-portrait { width: 56px; height: 56px; }
body.sf-touchui .sf-abil { display: none; }
body.sf-touchui .sf-mini { width: 150px; height: 150px; bottom: 12px; }
body.sf-touchui .sf-kda, body.sf-touchui .sf-invite { display: none; }
body.sf-touchui .sf-feed { top: 60px; width: 230px; }

@media (max-width: 900px) {
  .sf-mini { width: 150px; height: 150px; }
  .sf-feed { width: 240px; }
  .sf-lobby .heroes { grid-template-columns: repeat(4, 1fr); }
  .sf-lobby .teams, .sf-lobby .abl { grid-template-columns: 1fr; }
}

body:not(.sf-inmatch) .sf-score, body:not(.sf-inmatch) .sf-bar, body:not(.sf-inmatch) .sf-mini, body:not(.sf-inmatch) .sf-kda, body:not(.sf-inmatch) .sf-feed, body:not(.sf-inmatch) .sf-touch, body:not(.sf-inmatch) .sf-tags { display: none; }
.sf-banner { top: 15%; }
.sf-banner.lvl b { font-size: 26px; }
.sf-banner.lvl span { font-size: 13px; }
/* below ~1100 px the page's top bar (chat, invite, pause, coins) reaches the middle: drop the score under it */
@media (max-width: 1100px) { .sf-score { top: 50px; } }
@media (max-width: 760px) {
  .sf-score { top: 50px; padding: 4px 10px 16px; gap: 6px; }
  .sf-score b { font-size: 18px; } .sf-score .clock { font-size: 15px; } .sf-score .tn { display: none; }
  .sf-kda { top: 100px; font-size: 12px; padding: 6px 10px; }
  .sf-invite { display: none; }
  .sf-feed { top: 140px; width: 210px; } .sf-feed .row { font-size: 11px; }
  .sf-bar { transform: translateX(-50%) scale(.64); transform-origin: 50% 100%; bottom: 6px; }
  .sf-mini { left: 10px; top: 100px; bottom: auto; width: 130px; height: 130px; }
  .sf-banner b { font-size: 28px; } .sf-banner span { font-size: 12px; }
  .sf-shop { bottom: 110px; right: 8px; max-height: 60vh; }
  .sf-board { top: 96px; font-size: 11px; } .sf-board table { font-size: 11px; }
}
@media (max-height: 560px) {
  .sf-bar { transform: translateX(-50%) scale(.72); transform-origin: 50% 100%; }
  .sf-mini { width: 150px; height: 150px; }
}
/* touch layout (phones and tablets) */
body.sf-touchui .sf-bar { left: 8px; right: auto; max-width: calc(100vw - 16px); top: 92px; bottom: auto; transform: none; padding: 6px 8px; gap: 6px 8px; flex-wrap: wrap; align-items: center; }
body.sf-touchui .sf-portrait { width: 46px; height: 46px; border-radius: 10px; }
body.sf-touchui .sf-portrait .lvl { min-width: 20px; height: 20px; font-size: 11px; right: 2px; bottom: 2px; }
body.sf-touchui .sf-mid { flex: 1; min-width: 130px; }
body.sf-touchui .sf-name { display: none; }
body.sf-touchui .sf-bars { margin-top: 0; }
body.sf-touchui .sf-right { flex-direction: row; align-items: center; gap: 6px; }
body.sf-touchui .sf-items { grid-template-columns: repeat(6, 28px); gap: 3px; }
body.sf-touchui .sf-it { width: 28px; height: 28px; font-size: 15px; border-radius: 7px; }
body.sf-touchui .sf-it kbd { display: none; }
body.sf-touchui .sf-mini { top: auto; bottom: 12px; left: 8px; width: 116px; height: 116px; }
body.sf-touchui .sf-feed { top: 200px; width: 200px; }
body.sf-touchui .sf-chan { bottom: 270px; }
/* touch, landscape phone: the kill feed sat on top of the ability buttons; the top-right corner under the page bar is free */
@media (max-height: 560px) and (min-width: 700px) { body.sf-touchui .sf-feed { top: 50px; width: 190px; } }
