:root {
  --bg: #121418; --bg2: #181b21; --card: #1d2128; --line: #2a2f38; --line2: #353b46;
  --text: #eef1f5; --muted: #8e97a5; --gold: #f5b83d; --gold2: #ffcf6b; --gold-ink: #2a1d05;
  --red: #ff4b4b; --green: #3ed58a; --blue: #3fd0ff;
  --r: 16px; --r2: 12px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; }
body { min-height: 100vh; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h4 { margin-top: 1.4em; color: var(--muted); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.center { justify-content: center; }

/* ---------- top bar & tabs ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(18, 20, 24, .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 40px; max-width: 520px; margin-left: auto; color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.search svg { width: 18px; height: 18px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
main { max-width: 1180px; margin: 0 auto; padding: 16px 16px calc(96px + var(--safe-b)); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + var(--safe-b)); background: rgba(18, 20, 24, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 12px; }
.tabs a.on { color: var(--gold); }
.tabs a svg { width: 23px; height: 23px; }
@media (min-width: 900px) {
  .tabs { position: sticky; top: 61px; bottom: auto; justify-content: center; gap: 6px; border-top: 0; border-bottom: 1px solid var(--line); padding: 4px; }
  .tabs a { flex-direction: row; gap: 8px; font-size: 14px; max-width: none; flex: none; padding: 8px 16px; }
  .tabs a svg { width: 18px; height: 18px; }
  main { padding-bottom: 40px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn.primary { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.btn.primary:hover { background: var(--gold2); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--card); }
.btn.big { height: 54px; font-size: 17px; width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn.danger, .danger { color: #ff8a8a; }
.btn.liked { color: #ff6b8a; border-color: #ff6b8a55; }
.btn.liked svg { fill: currentColor; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip svg { width: 15px; height: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--gold); color: var(--gold-ink); }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #2b2412; border: 1px solid #5c4716; color: var(--gold2); padding: 10px 14px; border-radius: var(--r2); margin-bottom: 14px; }
.banner svg { width: 20px; }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; gap: 20px; padding: 26px 24px; margin-bottom: 18px; border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, #3a2c10 0%, #1d2128 55%); border: 1px solid #3b3220; overflow: hidden; }
.hero h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; max-width: 16ch; }
.hero p { color: #c6cbd3; max-width: 46ch; line-height: 1.5; }
.hero-art { margin-left: auto; filter: drop-shadow(0 20px 40px rgba(245, 184, 61, .25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (max-width: 640px) { .hero-art { display: none; } .hero { padding: 22px 18px; } }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; } }
.card { display: block; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--line2); }
.thumb { position: relative; aspect-ratio: 16 / 11; background: linear-gradient(#2a3140, #20252e); display: grid; place-items: center; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .size { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; }
.card .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.card .meta b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta small { color: var(--muted); display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; font-size: 12.5px; }
.card .meta small svg { width: 13px; height: 13px; margin-left: 4px; }
.card.skel .thumb, .card.skel i, .skel-text { background: linear-gradient(90deg, #20252d 25%, #2a303a 50%, #20252d 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.card.skel i { display: block; height: 12px; border-radius: 6px; margin: 4px 0; } .card.skel i + i { width: 60%; }
.skel-text { height: 120px; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }
.empty svg { width: 40px; height: 40px; color: var(--gold); }
.empty h3 { color: var(--text); margin-top: 8px; }
.more { text-align: center; margin-top: 16px; }

/* ---------- detail ---------- */
.detail { display: grid; gap: 18px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.4fr 1fr; align-items: start; } .detail .pv { position: sticky; top: 130px; } }
.pv { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #3a4a63, #1b2029 75%); border: 1px solid var(--line); }
.pv canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.pv-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.pv.small { aspect-ratio: 4 / 3; }
.info h1 { font-size: 30px; font-weight: 800; margin-top: 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.by { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.by img, .by svg { width: 26px; height: 26px; border-radius: 50%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin: 18px 0; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px; }
.stats b { display: block; font-size: 16px; white-space: nowrap; }
.stats small { color: var(--muted); font-size: 12px; }
.actions { display: grid; gap: 10px; }
.actions .row .btn { flex: 1; }
.desc { line-height: 1.55; color: #cdd2da; white-space: pre-wrap; }
.mats { display: flex; flex-wrap: wrap; gap: 6px; }
.mats span { font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; text-transform: capitalize; }
.mats b { color: var(--muted); font-weight: 600; margin-left: 4px; }
.small-actions { margin-top: 18px; }

/* ---------- worlds ---------- */
.page-title { font-size: 26px; font-weight: 800; margin: 6px 0 14px; }
.drop { text-align: center; padding: 32px 18px; border: 2px dashed #4a4130; border-radius: 22px; background: #1a1812; outline: none; }
.drop.over { border-color: var(--gold); background: #241f12; }
.drop > svg { width: 44px; height: 44px; color: var(--gold); }
.drop p { color: var(--muted); }
.wlist { display: grid; gap: 10px; }
.witem { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.witem > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.witem b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.witem small { color: var(--muted); }
.witem .icon-btn { background: transparent; color: var(--muted); }
.wthumb { width: 76px; height: 50px; border-radius: 10px; overflow: hidden; background: #26303d; display: grid; place-items: center; color: var(--muted); flex: none; }
.wthumb img { width: 100%; height: 100%; object-fit: cover; }
.help { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; }
.help summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.help p { color: #c4cad3; line-height: 1.55; }
code { font-size: 12.5px; background: #0f1114; padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- me ---------- */
.profile { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.profile > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.profile small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pf-av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #2a3140; display: grid; place-items: center; }
.pf-av img { width: 100%; height: 100%; }
.signin { text-align: center; padding: 30px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.signin #gbtn { display: flex; justify-content: center; min-height: 44px; margin: 14px 0; }
.btn.google { background: #fff; color: #1f1f1f; }
.btn.google .g { font-weight: 800; color: #4285f4; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.field b { color: var(--gold); }
.input { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; color: var(--text); outline: none; font-weight: 400; }
.input:focus { border-color: var(--gold); }
input[type=range] { accent-color: var(--gold); width: 100%; }
.pub { display: grid; gap: 16px; }
@media (min-width: 760px) { .pub { grid-template-columns: 1fr 1fr; } }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; }
.sheet-wrap { background: rgba(0, 0, 0, 0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap.open { background: rgba(0, 0, 0, .55); }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 10px 20px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.sheet.wide { max-width: 900px; }
.sheet-wrap.open .sheet { transform: none; }
@media (min-width: 760px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; transform: translateY(30px) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; } .sheet-wrap.open .sheet { opacity: 1; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 14px; }
.sheet h3 { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.sheet h3 svg { color: var(--gold); }
.sheet p { line-height: 1.5; color: #c9ced6; }
.steps { line-height: 1.7; color: #c9ced6; padding-left: 20px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.mini { display: flex; flex-direction: column; text-align: left; gap: 2px; padding: 0 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; }
.mini img, .mini > svg { width: 100%; aspect-ratio: 16/11; object-fit: cover; background: #26303d; }
.mini b, .mini small { padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { color: var(--muted); font-size: 12px; }
.prog { background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.prog-card { width: min(320px, 86vw); background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; text-align: center; }
.pbar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }
.spinner { width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #f4f6f8; color: #14161a; font-weight: 600; padding: 12px 18px; border-radius: 14px; max-width: min(92vw, 460px); text-align: center; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--green); color: #052414; }
.toast.err { background: #ff6b6b; color: #2a0505; }

/* =================== 3D WORLD SCREEN =================== */
.world { position: fixed; inset: 0; z-index: 50; display: none; background: #9cc9ff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.world.on { display: block; }
body.in-world { overflow: hidden; }
body.in-world .top, body.in-world .tabs { display: none; }
.wcanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; background: #fff; mix-blend-mode: difference; }
.crosshair::before { left: 10px; top: 0; width: 2px; height: 22px; } .crosshair::after { top: 10px; left: 0; height: 2px; width: 22px; }
.wtop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); color: #fff; }
.wtitle { display: flex; flex-direction: column; min-width: 0; flex: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.wtitle b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtitle small { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.wdim { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .2); color: #fff; border-radius: 999px; height: 38px; padding: 0 10px; }
.wtop .save { height: 42px; position: relative; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.wtop .save.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(245, 184, 61, .35); } }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-style: normal; display: grid; place-items: center; padding: 0 5px; }
@media (max-width: 560px) { .wtop .save span { display: none; } .wtop .save { width: 48px; padding: 0; } }
.rail { position: absolute; right: 10px; top: calc(70px + var(--safe-t)); display: flex; flex-direction: column; gap: 8px; }
.rail button, .vpad button, .tp-col button, .dpad button { border: 0; cursor: pointer; color: #fff; background: rgba(15, 17, 21, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rail button { width: 64px; padding: 8px 0 6px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; }
.rail button:disabled { opacity: .4; }
.world.mode-place .rail, .world.mode-select .rail { display: none; }
.joy { position: absolute; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(26px + var(--safe-b)); width: 132px; height: 132px; border-radius: 50%; background: rgba(15, 17, 21, .35); border: 2px solid rgba(255, 255, 255, .25); touch-action: none; }
.joy .knob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); pointer-events: none; }
.vpad { position: absolute; right: 14px; bottom: calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vpad button { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; touch-action: none; }
.vpad button.mode { width: 62px; height: 46px; border-radius: 14px; display: flex; flex-direction: column; gap: 0; font-size: 11px; font-weight: 700; }
.vpad button.mode svg { width: 18px; height: 18px; }
.world.walking [data-hold=down] { display: none; }
.world.mode-place .vpad, .world.mode-select .vpad { display: none; }
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: #fff; font-size: 12.5px; background: rgba(0, 0, 0, .45); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
@media (pointer: coarse) { .desktop-only { display: none; } }
@media (pointer: fine) { .joy { display: none; } .vpad [data-hold] { display: none; } .world.mode-place .hint, .world.mode-select .hint { display: none; } }

/* placement / selection panel */
.toolpanel { position: absolute; right: 10px; bottom: calc(12px + var(--safe-b)); width: min(560px, calc(100vw - 170px)); background: rgba(15, 17, 21, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 10px 12px; color: #fff; }
@media (max-width: 700px) { .toolpanel { left: 8px; right: 8px; width: auto; bottom: calc(8px + var(--safe-b)); } .world.mode-place .joy, .world.mode-select .joy { bottom: calc(240px + var(--safe-b)); width: 104px; height: 104px; } .world.mode-place .joy .knob, .world.mode-select .joy .knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; } }
.tp-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.tp-head .chip { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; font-weight: 500; }
.toolpanel .info b, .toolpanel .sinfo b { font-weight: 700; margin-right: 4px; }
.switch { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.switch input { width: 18px; height: 18px; accent-color: var(--gold); }
.tp-body { display: flex; align-items: center; gap: 8px; }
.dpad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 40px); gap: 2px; flex: none; }
.dpad button { border-radius: 12px; display: grid; place-items: center; touch-action: none; }
.dpad .d-up { grid-column: 2; grid-row: 1; } .dpad .d-left { grid-column: 1; grid-row: 2; } .dpad .d-right { grid-column: 3; grid-row: 2; } .dpad .d-down { grid-column: 2; grid-row: 3; }
.tp-col { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.tp-col button { height: 58px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 600; touch-action: none; }
.tp-col button svg { width: 21px; height: 21px; }
.tp-col button.danger { color: #ff9b9b; }
.place-btn { flex: none; width: 84px; height: 122px; border-radius: 18px; border: 0; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; box-shadow: 0 6px 20px rgba(245, 184, 61, .35); }
.place-btn svg { width: 34px; height: 34px; stroke-width: 3; }
.tp-tip { margin: 8px 2px 0; font-size: 12px; color: rgba(255, 255, 255, .7); }
.toolpanel .seg { background: rgba(255, 255, 255, .08); border: 0; }
.toolpanel .seg button { color: #ddd; }
.toolpanel .seg button.on { background: var(--blue); color: #05222c; }
@media (max-width: 420px) { .dpad { grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 36px); } .place-btn { width: 70px; } .tp-col button { font-size: 10.5px; } }
