:root {
  --blue: #2f7fd0; --blue-l: #e3f0ff;
  --green: #35a457; --green-l: #e2f5e6;
  --red: #d8443b; --red-l: #fde5e2;
  --purple: #8a4cc2; --purple-l: #f0e4fb;
  --landmark: #c8692a; --landmark-l: #fdeedd;
  --bonus: #a98425; --bonus-l: #fbf3dc;
  --ink: #2b2b3a;
  --muted: #6b6f80;
  --panel: rgba(255, 255, 255, 0.92);
  --gold: #f5c542;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(30, 50, 90, 0.18);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: linear-gradient(180deg, #6fb8ea 0%, #a9d8f5 45%, #fbefd5 100%); background-attachment: fixed; overflow-x: hidden; }
button { font: inherit; cursor: pointer; border: none; border-radius: 10px; padding: 8px 14px; font-weight: 700; color: #fff; background: #3d7be0; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); transition: transform .08s, filter .15s, box-shadow .08s; }
button:hover:not(:disabled) { filter: brightness(1.08); }
button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); box-shadow: none; }
button.big { font-size: 18px; padding: 12px 22px; border-radius: 14px; }
button.green { background: #2fa560; }
button.orange { background: #ee8a2b; }
button.purple { background: #8a4cc2; }
button.gray { background: #8b90a0; }
button.red { background: #d8443b; }
input, select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 2px solid #d4dbe8; background: #fff; }
input:focus, select:focus { outline: none; border-color: #3d7be0; }

/* ---------- 天空背景 ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; background: #fff; border-radius: 100px; opacity: .75; filter: blur(.5px); animation: drift 90s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 180px; height: 48px; top: 12%; left: -200px; }
.cloud.c1::before { width: 80px; height: 80px; top: -40px; left: 30px; }
.cloud.c1::after { width: 60px; height: 60px; top: -26px; left: 95px; }
.cloud.c2 { width: 240px; height: 60px; top: 30%; left: -300px; animation-duration: 130s; animation-delay: -60s; opacity: .55; }
.cloud.c2::before { width: 110px; height: 110px; top: -55px; left: 40px; }
.cloud.c2::after { width: 80px; height: 80px; top: -38px; left: 130px; }
.cloud.c3 { width: 140px; height: 38px; top: 6%; left: -200px; animation-duration: 110s; animation-delay: -30s; }
.cloud.c3::before { width: 64px; height: 64px; top: -32px; left: 24px; }
.cloud.c3::after { width: 48px; height: 48px; top: -20px; left: 74px; }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; opacity: .22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='140'%3E%3Cpath fill='%233a5a8c' d='M0 140V90h20V60h25v30h15V40h30v50h10V70h25v70zm125 0V50h20V30h20v20h15v90zm55 0V80h30V55h25v85zm55 0V35h35v105zm35 0V75h20V60h30v80zm50 0V45h25v20h20v75zm45 0V85h15v55z'/%3E%3C/svg%3E") repeat-x bottom; background-size: 400px 140px; }

/* ---------- 顶栏 ---------- */
#topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-dice { font-size: 28px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.brand-title { font-size: 30px; font-weight: 900; color: #fff; letter-spacing: 4px; text-shadow: 0 3px 0 #2b65b8, 0 5px 10px rgba(0,0,0,.25); }
.brand-sub { font-size: 13px; color: #fff; opacity: .9; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.conn { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.7); font-weight: 700; }
.conn.ok { color: #1f8a4c; }
.conn.bad { color: #c0392b; }

#screen { padding: 0 16px 24px; }
.panel { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; backdrop-filter: blur(6px); }
.panel h2 { margin: 0 0 12px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 金币 ---------- */
.coin { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; font-weight: 900; font-size: 14px; color: #6b4a00;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0%, #f9d64c 35%, #e2a91b 100%); border: 2px solid #c98d0c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.2); }
.coin.lg { min-width: 40px; height: 40px; font-size: 20px; border-width: 3px; }
.flying-coin { position: fixed; z-index: 60; width: 22px; height: 22px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0%, #f9d64c 35%, #e2a91b 100%); border: 2px solid #c98d0c; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.float-num { position: fixed; z-index: 61; font-weight: 900; font-size: 20px; pointer-events: none; text-shadow: 0 2px 0 #fff, 0 0 6px #fff; }
.float-num.plus { color: #1f9a4b; }
.float-num.minus { color: #d0392f; }
.coin.bump { animation: coinbump .5s ease-out; }
@keyframes coinbump { 40% { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(255, 214, 90, .6), 0 0 18px 6px rgba(255, 214, 90, .95); } }
.pp.bump { animation: ppbump .6s ease-out; }
@keyframes ppbump { 40% { transform: scale(1.03); box-shadow: 0 0 0 4px var(--pc), 0 0 22px 6px rgba(255, 214, 90, .9); } }

/* ---------- 结算动画 ---------- */
.src-card { position: fixed; z-index: 58; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.src-card .card { --w: 108px; }
.src-card.quiet .card { filter: grayscale(.75); opacity: .85; }
.build-card { position: fixed; z-index: 58; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.build-card .card { --w: 180px; box-shadow: 0 0 0 4px #fff, 0 0 34px 12px rgba(255, 214, 90, .9); }
.build-cap { background: rgba(20, 28, 50, .9); color: #fff; font-weight: 900; padding: 6px 16px; border-radius: 99px; font-size: 16px; white-space: nowrap; }
.roll-pop { position: fixed; z-index: 59; width: 80px; text-align: center; pointer-events: none; font-size: 64px; font-weight: 900; color: #ffe27a; text-shadow: 0 4px 0 #8a5a2b, 0 0 22px rgba(0, 0, 0, .45); }
.dice-box.rolling .die { animation: tumble .2s linear infinite; }
@keyframes tumble { 25% { transform: translate(-4px, -8px) rotate(-8deg); } 75% { transform: translate(4px, -3px) rotate(8deg); } }
.tray.busy .acts, .tray.busy .hint { visibility: hidden; }
.anim-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }

/* ---------- 大厅 ---------- */
.lobby { display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.seat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 2px solid #eef1f6; margin-bottom: 8px; }
.seat.mine { border-color: #9cc3ff; background: #f3f8ff; }
.seat .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); cursor: pointer; }
.seat .seat-name { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #eef1f6; color: var(--muted); white-space: nowrap; }
.tag.ai { background: #f0e4fb; color: #7a3db5; }
.tag.me { background: #dcebff; color: #2563c9; }
.tag.off { background: #fde5e2; color: #c0392b; }
.tag.on { background: #e2f5e6; color: #1f8a4c; }
.seat button { padding: 5px 9px; font-size: 13px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 2px solid #eef1f6; background: #fff; margin-bottom: 8px; cursor: pointer; }
.option.on { border-color: #3d7be0; background: #f3f8ff; }
.option input { margin-top: 3px; }
.option b { display: block; }
.lan { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff8e1; border: 2px dashed #f2c94c; font-size: 13px; }
.lan code { font-size: 15px; font-weight: 800; color: #b06d00; user-select: all; word-break: break-all; }
.invite { display: flex; gap: 12px; align-items: center; }
.qr-wrap { flex: none; width: 116px; height: 116px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.qr-wrap .qr { width: 100%; height: 100%; display: block; }
.invite-info { min-width: 0; }
.room-code { font-size: 30px; font-weight: 900; letter-spacing: 6px; color: #2b65b8; margin: 4px 0 2px; font-family: ui-monospace, Menlo, monospace; }
.waiting { max-width: 520px; margin: 40px auto; text-align: center; }
#btn-leave[hidden] { display: none; }
.hero { text-align: center; margin: 8px auto 18px; max-width: 900px; }
.hero-cards { display: flex; justify-content: center; gap: 10px; margin-top: 6px; perspective: 800px; }
.hero-cards .card { --w: 112px; animation: bob 3s ease-in-out infinite; }
.hero-cards .card:nth-child(2) { animation-delay: -.6s; } .hero-cards .card:nth-child(3) { animation-delay: -1.2s; }
.hero-cards .card:nth-child(4) { animation-delay: -1.8s; } .hero-cards .card:nth-child(5) { animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(1deg); } }

/* ---------- 卡牌 ---------- */
.card { --w: 130px; --main: var(--blue); --light: var(--blue-l); width: var(--w); border-radius: calc(var(--w) * 0.08); background: var(--light); border: calc(var(--w) * 0.025) solid var(--main);
  position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 10px rgba(0,0,0,.18); user-select: none; flex: none; transition: transform .15s, box-shadow .15s; }
.card.blue { --main: var(--blue); --light: var(--blue-l); }
.card.green { --main: var(--green); --light: var(--green-l); }
.card.red { --main: var(--red); --light: var(--red-l); }
.card.purple { --main: var(--purple); --light: var(--purple-l); }
.card.landmark { --main: var(--landmark); --light: var(--landmark-l); }
.card.bonus { --main: var(--bonus); --light: var(--bonus-l); }
.card .band { background: var(--main); color: #fff; text-align: center; font-weight: 900; font-size: calc(var(--w) * 0.14); line-height: 1.25; letter-spacing: 1px; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.card .band.lm { font-size: calc(var(--w) * 0.085); line-height: 1.6; letter-spacing: 2px; }
.card .title { display: flex; align-items: center; justify-content: center; gap: calc(var(--w) * 0.03); font-weight: 900; font-size: calc(var(--w) * 0.105); padding: calc(var(--w) * 0.025) 2px; white-space: nowrap; color: var(--ink); }
.card .title img { width: calc(var(--w) * 0.13); height: calc(var(--w) * 0.13); border-radius: 50%; border: 1.5px solid var(--main); }
.card .art { flex: none; position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.card .text { background: var(--main); color: #fff; font-size: calc(var(--w) * 0.074); line-height: 1.35; padding: calc(var(--w) * 0.035) calc(var(--w) * 0.05) calc(var(--w) * 0.05) calc(var(--w) * 0.2); flex: 1; min-height: calc(var(--w) * 0.42); display: flex; flex-direction: column; justify-content: center; }
.card .text .timing { font-weight: 900; opacity: .9; font-size: .92em; }
img.ic { width: 1.25em; height: 1.25em; vertical-align: -0.28em; border-radius: 50%; margin: 0 1px; }
.card .cost { position: absolute; left: calc(var(--w) * 0.03); bottom: calc(var(--w) * 0.035); min-width: calc(var(--w) * 0.17); height: calc(var(--w) * 0.17); font-size: calc(var(--w) * 0.1); padding: 0 3px; border-width: 1.5px; }
.card .count { position: absolute; right: calc(var(--w) * 0.03); top: calc(var(--w) * 0.33); background: rgba(20, 24, 40, .82); color: #fff; font-weight: 900; font-size: calc(var(--w) * 0.1); padding: 1px calc(var(--w) * 0.05); border-radius: 99px; }
.card .reno { position: absolute; left: calc(var(--w) * 0.03); top: calc(var(--w) * 0.33); background: #ffcf33; color: #5a3a00; font-weight: 900; font-size: calc(var(--w) * 0.085); padding: 1px calc(var(--w) * 0.05); border-radius: 99px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.card .invest { position: absolute; left: 50%; transform: translateX(-50%); top: 42%; background: rgba(255,255,255,.92); color: var(--purple); font-weight: 900; font-size: calc(var(--w) * 0.09); padding: 2px 8px; border-radius: 99px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.card .gain { position: absolute; right: calc(var(--w) * 0.03); top: calc(var(--w) * 0.5); background: #1f9a4b; color: #fff; font-weight: 900; font-size: calc(var(--w) * 0.1); padding: 1px calc(var(--w) * 0.05); border-radius: 99px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.card .gain.zero { background: #8d94a5; }
.card.compact .text { display: none; }
.card.unbuilt { filter: grayscale(.95) brightness(1.05); opacity: .55; }
.card.unbuilt .art::after { content: "未建成"; display: block; text-align: center; margin-top: 30%; font-weight: 900; color: #fff; font-size: calc(var(--w) * 0.12); text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.card.soldout { filter: grayscale(1); opacity: .45; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.card.buyable { cursor: pointer; animation: glow 1.6s ease-in-out infinite; }
.card.buyable:hover { transform: translateY(-6px) scale(1.03); }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 14px 4px rgba(255, 210, 60, .8); } 50% { box-shadow: 0 0 0 3px #fff, 0 0 22px 8px rgba(255, 210, 60, 1); } }
.card.flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { transform: scale(1); } 30% { transform: scale(1.12); box-shadow: 0 0 0 4px #fff, 0 0 26px 8px rgba(255, 220, 80, 1); } 100% { transform: scale(1); } }

/* ---------- 对局布局 ---------- */
.game { display: grid; grid-template-columns: 330px minmax(0, 1fr) 300px; gap: 14px; align-items: start; max-width: 1800px; margin: 0 auto; }
.col-left, .col-right { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 10px; max-height: calc(100vh - 80px); overflow-y: auto; padding-bottom: 4px; }
.col-center { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.game.side-hidden { grid-template-columns: 330px minmax(0, 1fr); }
.game.side-hidden .col-right { display: none; }
.side-fold { margin-left: auto; padding: 4px 10px; font-size: 13px; }
.side-tab { position: fixed; right: 0; top: 40%; z-index: 30; writing-mode: vertical-rl; letter-spacing: 2px; padding: 14px 7px; border-radius: 12px 0 0 12px; font-size: 14px; box-shadow: -2px 2px 10px rgba(0,0,0,.2); }
.mini-players { display: none; }

.pp { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; border-left: 6px solid var(--pc); cursor: pointer; transition: transform .15s, box-shadow .2s; }
.pp:hover { transform: translateX(2px); }
.pp.turn { box-shadow: 0 0 0 3px var(--pc), var(--shadow); }
.pp.focus { background: #fff; }
.pp-head { display: flex; align-items: center; gap: 8px; }
.pp-name { font-weight: 900; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-turn { font-size: 11px; background: var(--pc); color: #fff; padding: 2px 7px; border-radius: 99px; font-weight: 800; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.pp-lms { display: flex; gap: 4px; margin: 8px 0 6px; flex-wrap: wrap; }
.lm-tile { width: 36px; height: 36px; border-radius: 8px; background-size: cover; background-position: center; border: 2px solid var(--landmark); position: relative; }
.lm-tile.off { filter: grayscale(1); opacity: .32; border-color: #aaa; }
.lm-tile.rest { position: relative; }
.lm-tile.rest::after { content: '休'; position: absolute; right: -5px; top: -6px; width: 15px; height: 15px; border-radius: 50%; background: #6b7280; color: #fff; font-size: 10px; font-weight: 900; line-height: 15px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.lm-tile.on::after { content: "✓"; position: absolute; right: -5px; bottom: -5px; width: 16px; height: 16px; border-radius: 50%; background: #2fa560; color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.lm-tile.hall { border-color: var(--bonus); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; border-radius: 7px; overflow: hidden; font-size: 12px; font-weight: 800; background: #fff; border: 1.5px solid var(--main); }
.chip .n { background: var(--main); color: #fff; padding: 1px 5px; min-width: 22px; text-align: center; }
.chip .nm { padding: 1px 5px; display: inline-flex; align-items: center; gap: 3px; }
.chip .ci { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--main); flex: none; }
.chip .x { padding: 1px 5px 1px 0; color: var(--muted); }
.chip .w { padding: 0 4px; background: #ffcf33; color: #5a3a00; }
.chip.blue { --main: var(--blue); } .chip.green { --main: var(--green); } .chip.red { --main: var(--red); } .chip.purple { --main: var(--purple); }
.chip.flash { animation: chipflash .9s; }
.synergy { margin: 10px 0; }
.syn-group { margin-bottom: 6px; }
.syn-what { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.syn-what .ic { width: 16px; height: 16px; }
.syn-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.syn-chip { --main: var(--blue); display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 8px; border: 1.5px solid var(--main); background: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.syn-chip:hover { background: var(--main); color: #fff; }
.syn-chip i { width: 32px; height: 24px; border-radius: 5px; background-size: cover; background-position: center; flex: none; }
.syn-chip.blue { --main: var(--blue); } .syn-chip.green { --main: var(--green); } .syn-chip.red { --main: var(--red); } .syn-chip.purple { --main: var(--purple); } .syn-chip.landmark { --main: var(--landmark); } .syn-chip.bonus { --main: var(--bonus); }
.syn-chip.out { opacity: .4; filter: grayscale(1); }
.syn-note { font-size: 12px; margin: 2px 0 0; }
@keyframes chipflash { 30% { transform: scale(1.25); box-shadow: 0 0 10px 3px rgba(255, 210, 60, .95); } }

/* 骰盘 */
.tray { background: radial-gradient(ellipse at center, #3a9a5b 0%, #23774a 70%, #1c613c 100%); border-radius: 18px; box-shadow: inset 0 0 0 6px #8a5a2b, inset 0 0 0 9px #6d431d, inset 0 0 30px rgba(0,0,0,.35), var(--shadow); padding: 16px 20px; color: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; min-height: 150px; }
.tray-status { min-width: 0; }
.tray-status .who { font-size: 13px; opacity: .85; font-weight: 700; }
.tray-status .what { font-size: 22px; font-weight: 900; margin: 4px 0 10px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.tray-status .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tray-status .hint { font-size: 13px; opacity: .9; margin-top: 6px; }
.dice-box { display: flex; gap: 14px; align-items: center; min-width: 150px; justify-content: center; }
.total { font-size: 15px; font-weight: 800; text-align: center; margin-top: 6px; }
.total b { font-size: 26px; color: #ffe27a; }
.bank { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; opacity: .95; }
.bank .pile { width: 54px; height: 54px; position: relative; }
.bank .pile span { position: absolute; left: 50%; width: 40px; height: 12px; margin-left: -20px; border-radius: 50%; background: linear-gradient(#ffe479, #e2a91b); border: 1.5px solid #b07a08; }
.waiting-dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* 3D 骰子 */
.die { width: 58px; height: 58px; perspective: 400px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.2, .9, .25, 1.05); }
.face { position: absolute; inset: 0; background: linear-gradient(145deg, #ffffff, #e9e9ef); border-radius: 12px; box-shadow: inset 0 0 0 1.5px #d0d0da, inset 0 -3px 6px rgba(0,0,0,.08);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 8px; }
.face i { width: 11px; height: 11px; border-radius: 50%; background: #2b2b3a; place-self: center; box-shadow: inset 0 2px 2px rgba(0,0,0,.5); }
.face.f1 i { background: #d8443b; width: 15px; height: 15px; }
.face.f1 { transform: translateZ(29px); }
.face.f2 { transform: rotateY(90deg) translateZ(29px); }
.face.f3 { transform: rotateX(90deg) translateZ(29px); }
.face.f4 { transform: rotateX(-90deg) translateZ(29px); }
.face.f5 { transform: rotateY(-90deg) translateZ(29px); }
.face.f6 { transform: rotateY(180deg) translateZ(29px); }
.die.tuna .face { background: linear-gradient(145deg, #e8f4ff, #bcdcff); }
.die.ghost { opacity: .25; }

/* 市场 */
.market-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.market-grid .card { --w: 210px; }
.market-grid .card .text { font-size: calc(var(--w) * 0.074); }
.market-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.market-head h2 { margin: 0; }
.deck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.deck .back { width: 26px; height: 36px; border-radius: 5px; background: repeating-linear-gradient(45deg, #2f7fd0, #2f7fd0 4px, #4b95e0 4px, #4b95e0 8px); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* 城市 */
.city-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.city-tabs button { background: #eef1f6; color: var(--ink); box-shadow: none; padding: 5px 12px; border-bottom: 3px solid var(--pc); }
.city-tabs button.on { background: var(--pc); color: #fff; }
.city-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.city-row .card { --w: 96px; }
.city-label { font-size: 13px; font-weight: 900; color: var(--muted); margin: 4px 0 6px; }

/* 日志 */
.log { font-size: 13px; line-height: 1.5; max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 4px; }
.col-right .log-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.col-right .log-panel .log { flex: 1; min-height: 120px; }
.log div { padding: 4px 6px; border-radius: 6px; }
.log div:nth-child(odd) { background: rgba(0,0,0,.03); }
.log .turn-line { font-weight: 900; color: #2b65b8; background: #e8f1ff !important; margin-top: 4px; }
.log .win-line { font-weight: 900; color: #b06d00; background: #fff3c4 !important; }
.log .build-line { color: #8a4cc2; font-weight: 700; }

/* 弹窗 */
#modal-root:empty { display: none; }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 25, 50, .55); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); max-width: min(960px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px; animation: pop .2s cubic-bezier(.2, .9, .3, 1.3); position: relative; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.modal h3 { margin: 0 0 12px; font-size: 20px; }
.modal .close { position: absolute; right: 10px; top: 10px; background: #eef1f6; color: var(--ink); box-shadow: none; padding: 4px 10px; }
.detail { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.detail .card { --w: 250px; }
.detail-info { max-width: 300px; font-size: 14px; line-height: 1.7; }
.detail-info .kv { display: flex; justify-content: space-between; border-bottom: 1px dashed #e3e6ee; padding: 3px 0; }
.trigger { margin: 6px 0 10px; padding: 6px 10px; background: #f3f8f2; border-radius: 10px; }
.trigger .city-label { margin: 0 0 4px; }
.trigger ul { list-style: none; margin: 0; padding: 0; }
.trigger li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; line-height: 1.45; padding: 3px 0; }
.trigger li b { grid-row: span 2; font-size: 18px; min-width: 34px; text-align: right; }
.trigger li small { color: var(--muted); font-size: 12px; }
.trigger p { margin: 4px 0 0; font-size: 12px; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.pick-grid .card { --w: 104px; cursor: pointer; }
.pick-grid .card.sel { outline: 4px solid #3d7be0; outline-offset: 2px; transform: translateY(-4px); }
.pick-players { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.pick-players button { background: #fff; color: var(--ink); border: 3px solid var(--pc); box-shadow: none; }
.pick-players button.sel { background: var(--pc); color: #fff; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.gallery-sec { margin-bottom: 16px; }
.gallery-sec h4 { margin: 6px 0 8px; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery .card { --w: 170px; }
.rules { max-width: 760px; font-size: 14px; line-height: 1.75; }
.rules h4 { margin: 14px 0 4px; color: #2b65b8; }
.rules ul { margin: 4px 0; padding-left: 20px; }

/* 提示 */
#toast-root { position: fixed; left: 50%; top: 36%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(20, 28, 50, .9); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,.3); animation: toastin .25s ease-out, toastout .3s ease-in forwards; animation-delay: 0s, var(--life, 2.4s); }
.toast.err { background: #d8443b; }
.toast.big { font-size: 22px; padding: 14px 28px; background: linear-gradient(135deg, #ff9f43, #ee5a24); }
@keyframes toastin { from { transform: translateY(-14px); opacity: 0; } }
@keyframes toastout { to { transform: translateY(-14px); opacity: 0; } }

/* 胜利 */
.victory { text-align: center; padding: 10px 20px; }
.victory .trophy { font-size: 72px; animation: bob 2s ease-in-out infinite; }
.victory h2 { font-size: 30px; margin: 6px 0; }
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 80; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.standings { margin: 14px auto; border-collapse: collapse; font-size: 15px; }
.standings td, .standings th { padding: 6px 12px; border-bottom: 1px solid #eef1f6; }
.victory-stats { text-align: left; margin: 6px 0 4px; }
.victory-stats summary { cursor: pointer; font-weight: 900; font-size: 16px; text-align: center; margin-bottom: 8px; }

/* 收益统计 */
.stats { max-width: 980px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.st-col { border: 2px solid var(--pc); border-radius: 12px; padding: 8px 10px; background: #fff; }
.st-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--pc); font-size: 16px; margin-bottom: 4px; }
.st-head span { color: var(--muted); font-size: 13px; }
.st-head span b { color: var(--ink); font-size: 16px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.st-chip { --main: var(--blue); font-size: 11px; font-weight: 800; color: #fff; background: var(--main); padding: 1px 7px; border-radius: 99px; }
.st-row { --main: var(--blue); display: grid; grid-template-columns: 32px minmax(0, 1fr) 60px 36px; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid #eef1f6; cursor: pointer; font-size: 13px; }
.st-row:hover { background: #f6f8fc; }
.st-art { width: 32px; height: 24px; border-radius: 5px; background-size: cover; background-position: center; border: 1.5px solid var(--main); }
.st-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-name small { color: var(--muted); font-weight: 700; margin-left: 4px; }
.st-bar { height: 8px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.st-bar b { display: block; height: 100%; background: #f2b632; border-radius: 99px; }
.st-bar b.neg { background: var(--red); }
.st-v { text-align: right; font-weight: 900; color: #c98a00; }
.st-v.neg { color: var(--red); }
.st-v.zero { color: var(--muted); }
:is(.st-chip, .st-art).green { --main: var(--green); } :is(.st-chip, .st-art).red { --main: var(--red); } :is(.st-chip, .st-art).purple { --main: var(--purple); } :is(.st-chip, .st-art).landmark { --main: var(--landmark); } :is(.st-chip, .st-art).bonus { --main: var(--bonus); }

/* 大厅：市场数量与卡牌数值 */
button.small { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.supply-counts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.stepper button { width: 26px; height: 26px; padding: 0; border-radius: 50%; background: #eef1f6; color: var(--ink); box-shadow: none; font-weight: 900; }
.stepper b { min-width: 22px; text-align: center; color: var(--ink); font-size: 15px; }
#btn-preview.off, #btn-bgm.off, #btn-sound.off { opacity: .45; filter: grayscale(1); }

/* 平衡调整说明 */
.balance { max-width: 760px; }
.bal-row { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eef1f6; }
.bal-row .card { --w: 104px; flex: none; }
.bal-info h4 { margin: 2px 0 6px; font-size: 16px; }
.bal-info h4 small { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.bal-diff { margin: 0 0 6px; font-size: 14px; }
.bal-diff b { color: #d0392f; font-size: 16px; }
.bal-info .muted { margin: 0; line-height: 1.55; }

/* 掷骰盈亏预测 */
.preview { padding: 10px 14px; }
.pv-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pv-head h2 { margin: 0; font-size: 16px; }
.pv-head .muted { flex: 1; font-size: 12px; }
.pv-head button.off { opacity: .55; }
.pv-scroll { overflow-x: auto; margin: 8px 0 6px; }
.pv { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 13px; text-align: center; }
.pv th { text-align: left; color: var(--muted); font-weight: 800; white-space: nowrap; padding-right: 6px; }
.pv td { background: #f5f7fb; border-radius: 6px; padding: 4px 2px; min-width: 34px; cursor: pointer; transition: background .15s; }
.pv td:hover { background: #e7eefb; }
.pv td.num { font-weight: 900; font-size: 15px; }
.pv td.prob { color: var(--muted); font-size: 12px; }
.pv td.net { font-weight: 900; font-size: 15px; }
.pv td.net small { font-size: 10px; margin-left: 1px; }
.pv td.cur { box-shadow: inset 0 0 0 2px #f2b33d; background: #fff6dc; }
.pv td.sel { box-shadow: inset 0 0 0 2px #3d7be0; }
.pv td.rolled { box-shadow: inset 0 0 0 3px #f2b33d; background: #ffe9a8; animation: flash .9s ease-out; }
.pos { color: #1f9a4b; }
.neg { color: #d0392f; }
.zero { color: var(--muted); }
.pv-foot { font-size: 13px; }
.pv-foot b { font-size: 15px; }
.pv-detail { margin-top: 4px; font-size: 13px; line-height: 1.6; padding: 6px 10px; background: #fbfaf4; border-radius: 8px; }

/* 特殊建筑聚光灯 */
.spot { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .3s; padding: 12px; }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(20, 28, 54, .45), rgba(12, 16, 34, .78)); }
.spot.show { opacity: 1; }
.spot.show.hide { opacity: 0; }
.spot-stage { position: relative; background: linear-gradient(#fffdf6, #fff1cf); border-radius: 22px; padding: 16px 24px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 4px #ffd65a, 0 0 40px 8px rgba(255, 214, 90, .45); max-width: min(780px, 100%); text-align: center; transform: scale(.7) translateY(30px); transition: transform .4s cubic-bezier(.2, .9, .3, 1.35); }
.spot.show .spot-stage { transform: none; }
.spot-title { font-size: 26px; font-weight: 900; color: #b0480f; letter-spacing: 1px; margin-bottom: 12px; text-shadow: 0 2px 0 #fff; }
.spot-text { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sp-row { display: flex; align-items: center; justify-content: center; gap: 22px; }
.sp-col { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sp-card { position: relative; }
.sp-card .card { --w: 150px; }
.sp-badge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 78px; padding: 6px 10px; border-radius: 14px; background: #fff; border: 3px solid var(--pc, #c98d0c); font-size: 13px; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.sp-badge.target { animation: target .6s ease-in-out 2; }
.sp-face { width: 36px; height: 36px; border-radius: 50%; background: var(--pc, #f2c94c); color: #fff; font-weight: 900; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.sp-badge.bank .sp-face { background: #fff3c4; }
.sp-sub { font-size: 12px; color: var(--muted); font-weight: 700; line-height: 1.35; }
.sp-big { font-size: 22px; font-weight: 900; color: #1f9a4b; }
.sp-arrows { font-size: 40px; font-weight: 900; color: #8a4cc2; animation: throb .8s ease-in-out infinite alternate; }
@keyframes throb { to { transform: scale(1.18); } }
@keyframes target { 50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(216, 68, 59, .35); } }
.stamp { position: absolute; right: -16px; top: -16px; width: 42px; height: 42px; border: 3px solid #d8443b; color: #d8443b; background: rgba(255,255,255,.9); border-radius: 50%; font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: rotate(-18deg) scale(3); }
.stamped .stamp { animation: stamp .3s ease-in forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-18deg) scale(1); } }
.sp-swap { display: flex; align-items: center; justify-content: center; gap: 34px; }
.sp-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sp-slot .sp-card { z-index: 1; }
.sp-truck { font-size: 44px; }
.tape { position: absolute; left: -18%; right: -18%; top: 38%; height: 24px; background: repeating-linear-gradient(-45deg, #ffcf33 0 14px, #2b2b2b 14px 28px); box-shadow: 0 2px 6px rgba(0,0,0,.4); transform: rotate(-14deg) translateX(-130%); transition: transform .45s ease-out; }
.tape.t2 { top: 58%; transform: rotate(12deg) translateX(130%); transition-delay: .15s; }
.taped .tape { transform: rotate(-14deg); }
.taped .tape.t2 { transform: rotate(12deg); }
.taped .card { filter: saturate(.5) brightness(.9); }
.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px) rotate(-2deg); } 40%, 80% { transform: translateX(8px) rotate(2deg); } }
.crumble .card { filter: grayscale(1) brightness(.75); transform: translateY(16px) rotate(-7deg) scale(.9); transition: all .5s; }
.boom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 96px; animation: boom .7s ease-out forwards; }
@keyframes boom { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.sp-park { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sp-ring { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sp-num { font-size: 20px; font-weight: 900; color: #b07a08; transition: transform .3s; }
.sp-num.bump { transform: scale(1.35); color: #1f9a4b; }
.sp-chart { display: flex; flex-direction: column; align-items: center; }
.sp-chart svg { width: 170px; height: 96px; background: linear-gradient(#f4fff6, #e3f6e8); border-radius: 10px; }
.sp-chart polyline { fill: none; stroke: #2fa560; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sp-dice { display: flex; justify-content: center; gap: 12px; min-width: 70px; }
.sp-result { margin-top: 10px; min-height: 30px; font-size: 18px; font-weight: 900; color: #8a6d3b; }
.sp-result.win { font-size: 24px; color: #d9900f; animation: pop .3s; }
.glow .card { animation: glow 1.4s ease-in-out infinite; }
.drop { animation: drop .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes drop { from { transform: translateY(-220px) rotate(-10deg); opacity: 0; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1350px) {
  .game, .game.side-hidden { grid-template-columns: 300px minmax(0, 1fr); }
  .col-right { grid-column: 1 / -1; position: static; max-height: none; }
  .log { max-height: 260px; }
}
@media (max-width: 900px) {
  #screen { padding: 0 8px 20px; }
  .brand-sub { display: none; }
  .lobby { grid-template-columns: 1fr; }
  .game, .game.side-hidden { grid-template-columns: 1fr; }
  .col-left { position: static; max-height: none; order: 2; }
  .col-center { order: 1; }
  .col-right { order: 3; }
  #topbar { padding: 6px 8px; flex-wrap: nowrap; gap: 6px; }
  .brand-dice { display: none; }
  .brand-title { font-size: 22px; letter-spacing: 2px; white-space: nowrap; }
  .lbl { display: none; }
  .top-stick { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
  .mini-players { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .mp { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 3px 5px; border-radius: 99px; background: rgba(255,255,255,.95); color: var(--ink); border: 2px solid var(--pc); box-shadow: 0 2px 6px rgba(0,0,0,.15); font-size: 12px; }
  .mp.turn { background: var(--pc); color: #fff; }
  .mp.focus { outline: 2px solid #fff; outline-offset: 1px; }
  .mp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
  .mp .coin { min-width: 20px; height: 20px; font-size: 11px; padding: 0 3px; border-width: 1.5px; }
  .mp-lm { font-size: 11px; opacity: .85; flex: none; }
  .src-card .card { --w: 84px; }
  .build-card .card { --w: 150px; }
  .tray { grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; min-height: 0; }
  .dice-box { min-width: 0; gap: 8px; }
  .total { margin-top: 2px; font-size: 12px; }
  .total b { font-size: 18px; }
  .tray-status .what { font-size: 16px; margin: 2px 0 6px; }
  .tray-status .hint { font-size: 11px; margin-top: 4px; }
  .tray-status .acts button { padding: 7px 11px; font-size: 13px; }
  .bank { display: none; }
  .market-grid .card { --w: 150px; }
  .market-grid .card .text { font-size: calc(var(--w) * 0.082); }
  .city-row .card { --w: 80px; }
  .die { width: 46px; height: 46px; }
  .face { padding: 6px; border-radius: 10px; }
  .face i { width: 9px; height: 9px; }
  .face.f1 i { width: 12px; height: 12px; }
  .face.f1 { transform: translateZ(23px); } .face.f2 { transform: rotateY(90deg) translateZ(23px); }
  .face.f3 { transform: rotateX(90deg) translateZ(23px); } .face.f4 { transform: rotateX(-90deg) translateZ(23px); }
  .face.f5 { transform: rotateY(-90deg) translateZ(23px); } .face.f6 { transform: rotateY(180deg) translateZ(23px); }
  .detail .card { --w: 200px; }
  .top-actions { gap: 4px; min-width: 0; }
  .top-actions button { padding: 6px 8px; font-size: 14px; white-space: nowrap; }
  .conn { white-space: nowrap; padding: 3px 8px; font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .pv-head .muted { display: none; }
  .pv td { min-width: 28px; }
  .spot-stage { padding: 12px 12px 10px; }
  .spot-title { font-size: 19px; margin-bottom: 8px; }
  .spot-text { font-size: 12px; }
  .sp-row, .sp-swap { gap: 10px; }
  .sp-card .card { --w: 104px; }
  .sp-badge { min-width: 58px; padding: 4px 6px; font-size: 12px; }
  .sp-face { width: 28px; height: 28px; font-size: 14px; }
  .sp-arrows { font-size: 28px; }
  .sp-chart svg { width: 110px; height: 64px; }
  .sp-truck { font-size: 30px; }
}

/* ---------- 世界观：萌宠牧场 ---------- */
.card .art .thumbs { position: absolute; left: 3%; bottom: calc(var(--w) * 0.11); display: flex; gap: 3px; }
.card .art .thumbs i { width: calc(var(--w) * 0.24); aspect-ratio: 4 / 3; background-size: cover; background-position: center; border: 1.5px solid #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.card .art .breed { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 3px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: calc(var(--w) * 0.068); font-weight: 800; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.5)); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.detail-info .flavor { margin: -4px 0 8px; color: #8a6d4b; font-style: italic; font-size: 13px; }
.breeds { margin: 8px 0; }
.breed-row { display: flex; gap: 8px; flex-wrap: wrap; }
.breed-row figure { margin: 0; width: 88px; text-align: center; font-size: 12px; font-weight: 700; }
.breed-row figure i { display: block; height: 66px; border-radius: 8px; background-size: cover; background-position: center; border: 2px solid transparent; }
.breed-row figure.mine i { border-color: var(--green); }
body.theme-pets { background: linear-gradient(180deg, #8fd0f0 0%, #c6ecf7 45%, #fdf3dc 100%); background-attachment: fixed; }
body.theme-pets .skyline { height: 120px; opacity: .3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cpath fill='%235aa05a' d='M0 120V70C40 40 80 40 120 62s90 30 130 6 100-34 150 2v50z'/%3E%3Cpath fill='%23468a46' d='M0 120V95c50-22 110-22 160-4s120 14 170-6 50-10 70-4v39z'/%3E%3C/svg%3E") repeat-x bottom; background-size: 400px 120px; }
body.theme-pets .brand-title { text-shadow: 0 3px 0 #c9773a, 0 5px 10px rgba(0,0,0,.25); }
body.theme-nature { background: linear-gradient(180deg, #9fd3c7 0%, #d4ecd9 45%, #f1efdc 100%); background-attachment: fixed; }
body.theme-nature .skyline { height: 130px; opacity: .32;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='130'%3E%3Cpath fill='%233f7f5a' d='M0 130V88c60-26 120-30 180-12s120 18 180-6v60z'/%3E%3Cpath fill='%232f6b4a' d='M30 130l22-70 22 70zM96 130l30-96 30 96zM190 130l20-60 20 60zM262 130l28-86 28 86z'/%3E%3Cpath fill='%23245a3d' d='M0 130v-14c70-14 140-14 210-2s110 8 150-2v18z'/%3E%3C/svg%3E") repeat-x bottom; background-size: 360px 130px; }
body.theme-nature .brand-title { text-shadow: 0 3px 0 #2f6b4a, 0 5px 10px rgba(0,0,0,.25); }
