:root {
  --plum: #3D2463; --plum2: #2A1645; --ink: #1E1230; --cream: #FFF4DE; --gold: #FFC53D; --coral: #FF6B4A;
  --lilac: #B9A3FF; --mint: #45D3AE; --sky: #8FD3FF; --pink: #FFD6CC; --sage: #CFE6D2; --soft: #CBBCF0; --ink2: #4C3B5E;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Jua', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; color: var(--ink);
  background: var(--plum) radial-gradient(circle, rgba(255, 255, 255, .085) 1.7px, transparent 1.9px) 0 0/22px 22px;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--ink); }
img { display: block; }
.disp { font-family: 'BHS', 'Jua', sans-serif; font-weight: 400; letter-spacing: -.5px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared bits ---------- */
.ib { width: 50px; height: 50px; border-radius: 16px; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); display: grid; place-items: center; flex: none; transition: transform .08s, box-shadow .08s; }
.ib svg { width: 26px; height: 26px; }
.ib:active, .bt:active, .card.tap:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.ib.off svg { opacity: .35; }
.bt { min-height: 58px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); font-family: 'BHS', 'Jua', sans-serif; font-size: 21px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; background: var(--cream); transition: transform .08s, box-shadow .08s; }
.bt svg { width: 25px; height: 25px; flex: none; }
.bt.gold { background: var(--gold); } .bt.coral { background: var(--coral); color: #fff; } .bt.mint { background: var(--mint); } .bt.lilac { background: var(--lilac); }
.bt.small { min-height: 46px; font-size: 17px; border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.bt:disabled { opacity: .45; pointer-events: none; }
.face { display: inline-block; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #fff center/cover no-repeat; position: relative; }
.face.g { background-color: #EDE6FF; } .face.b { background-color: #FFE1D9; } .face.y { background-color: #D7F6EC; } .face.guest { background-color: #FFE6A6; }
.face .lt { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'BHS'; font-size: 17px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--cream); font-size: 15px; white-space: nowrap; }
.chip.on { background: var(--gold); }
.card { position: relative; border-radius: 24px; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); background: var(--cream); }
.muted { color: var(--ink2); }
.toast { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translate(-50%, -140%); background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 16px; font-size: 16px; z-index: 90; max-width: min(92vw, 420px); text-align: center; transition: transform .25s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- title screen ---------- */
#scr-title { position: fixed; inset: 0; overflow: hidden; }
.s390 { position: absolute; left: 50%; top: 50%; width: 390px; height: 880px; transform-origin: 50% 50%; }
.s390 .top { position: absolute; top: 24px; right: 18px; display: flex; gap: 10px; z-index: 5; }
.emb { position: absolute; top: 58px; left: 137px; width: 116px; height: 116px; border-radius: 50%; background: var(--gold); border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink); display: grid; place-items: center; }
.emb .in { width: 86px; height: 86px; border-radius: 50%; background: var(--plum2); border: 3px solid var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; }
.emb svg { position: absolute; left: 50%; top: 6px; margin-left: -30px; width: 60px; animation: flick 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.emb .y { position: relative; top: 10px; font-family: 'BHS'; font-size: 42px; color: var(--cream); text-shadow: 0 3px 0 var(--ink), 0 0 2px var(--ink); }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06, .96) rotate(-3deg); } 60% { transform: scale(.97, 1.04) rotate(2deg); } }
.kick { position: absolute; top: 190px; width: 100%; text-align: center; font-family: 'BHS'; font-size: 28px; color: var(--gold); text-shadow: 0 4px 0 var(--ink); }
.ttl { position: absolute; top: 222px; width: 100%; text-align: center; font-family: 'BHS'; font-size: 62px; line-height: 1; color: var(--cream); text-shadow: 0 6px 0 var(--ink); letter-spacing: -1px; }
.sub { position: absolute; top: 298px; width: 100%; text-align: center; font-size: 19px; color: #DCCFFF; }
.sub b { font-weight: 400; color: var(--cream); }
.sh { position: absolute; height: 14px; border-radius: 50%; background: rgba(8, 3, 20, .45); top: 680px; }
.spr { position: absolute; display: block; pointer-events: none; }
.hit { position: absolute; z-index: 6; border-radius: 48px; touch-action: manipulation; }
.spr img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .28s; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.spr .fb { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-family: 'BHS'; color: var(--cream); font-size: 40px; display: none; }
.spr.noimg .fb { display: block; }
.spr.bob { animation: bob 2.6s ease-in-out infinite; }
.spr.jump { animation: jump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes jump { 0% { transform: translateY(0); } 40% { transform: translateY(-16px) scale(1.02, .98); } 100% { transform: translateY(0); } }
#spr-g { left: -44.4px; top: 384px; width: 238.9px; height: 303.4px; z-index: 1; }
#spr-y { left: 254.2px; top: 393.8px; width: 129.8px; height: 293.1px; z-index: 2; }
#spr-b { left: 77.1px; top: 306.6px; width: 256.7px; height: 382.1px; z-index: 3; }
.tag { position: absolute; top: 690px; transform: translateX(-50%); font-family: 'BHS'; font-size: 17px; padding: 5px 15px 3px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); white-space: nowrap; z-index: 4; }
.hint { position: absolute; top: 734px; width: 100%; text-align: center; font-size: 14px; color: var(--soft); }
.btns { position: absolute; left: 18px; right: 18px; top: 758px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; z-index: 5; }
.btns .bt { height: 62px; font-size: 23px; }
.solo { position: absolute; left: 0; right: 0; top: 832px; text-align: center; z-index: 5; }
.solo button { color: var(--cream); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; padding: 8px 14px; }
.bubble { position: absolute; z-index: 8; background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; padding: 9px 13px; font-size: 15px; line-height: 1.35; max-width: 190px; box-shadow: 0 4px 0 var(--ink); animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.bubble::after { content: ''; position: absolute; left: var(--tail, 50%); bottom: -11px; width: 16px; height: 16px; background: var(--cream); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.note { position: absolute; z-index: 7; width: 26px; height: 26px; pointer-events: none; animation: note 2s ease-out forwards; }
@keyframes note { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(46px, -150px) scale(1.1) rotate(12deg); opacity: 0; } }

/* ---------- main ---------- */
#scr-main { min-height: 100%; padding: calc(18px + var(--safe-t)) 16px calc(112px + var(--safe-b)); }
.head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; min-height: 52px; }
.head .grow { flex: 1; min-width: 0; }
.head h1 { font-family: 'BHS'; font-weight: 400; font-size: 27px; color: var(--cream); text-shadow: 0 3px 0 var(--ink); line-height: 1.15; }
.head p { color: var(--soft); font-size: 14px; margin-top: 4px; }
.who { display: flex; align-items: center; gap: 10px; color: var(--cream); text-align: left; padding: 2px 0; }
.who .faces { display: flex; padding-left: 12px; }
.who .faces .face { margin-left: -12px; }
.who b { display: block; font-family: 'BHS'; font-weight: 400; font-size: 19px; color: var(--gold); text-shadow: 0 2px 0 var(--ink); }
.who small { display: block; font-size: 13.5px; color: var(--soft); }
.head .tools { display: flex; gap: 10px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.gcard { text-align: left; padding: 16px 15px 15px; min-height: 178px; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; transition: transform .08s, box-shadow .08s; }
.gcard.hero { grid-column: 1/-1; background: var(--gold); min-height: 160px; }
.gcard.wide { grid-column: 1/-1; min-height: 104px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; background: var(--sage); }
.gcard h3 { font-family: 'BHS'; font-weight: 400; font-size: 26px; white-space: nowrap; line-height: 1.05; letter-spacing: -.5px; }
.gcard.hero h3 { font-size: 44px; }
.gcard p { font-size: 15px; line-height: 1.35; margin-top: 6px; color: var(--ink2); }
.gcard .ic { position: absolute; top: 14px; right: 14px; width: 62px; height: 62px; }
.gcard.wide .ic { position: static; width: 58px; height: 58px; flex: none; }
.gcard .new { position: absolute; top: -12px; left: 14px; background: var(--coral); color: #fff; font-family: 'BHS'; font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 2.5px solid var(--ink); }
.gcard.pink { background: var(--pink); }
.week { grid-column: 1/-1; display: flex; align-items: center; gap: 12px; background: #FFE6A6; padding: 12px 14px; min-height: 84px; }
.week .ic { width: 52px; height: 52px; flex: none; }
.week h3 { font-family: 'BHS'; font-weight: 400; font-size: 22px; }
.week .rk { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.week .rk span { display: flex; align-items: center; gap: 5px; font-size: 15px; white-space: nowrap; }
.week .rk .face { width: 28px; height: 28px; border-width: 2px; }
.roombox { margin-top: 22px; border: 3px dashed rgba(255, 244, 222, .55); border-radius: 20px; color: var(--cream); padding: 14px; display: flex; align-items: center; gap: 12px; }
.roombox .grow { flex: 1; font-size: 15px; line-height: 1.45; }
.roombox b { font-family: 'BHS'; font-weight: 400; color: var(--gold); font-size: 18px; }

/* tabs */
.tabs { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); height: 70px; border-radius: 24px; background: var(--plum2); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; z-index: 20; max-width: 560px; margin: 0 auto; }
.tabs button { border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--soft); font-size: 13px; }
.tabs svg { width: 24px; height: 24px; }
.tabs button[aria-current="page"] { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* sisters */
.pick { display: flex; gap: 14px; justify-content: center; margin: 2px 0 18px; }
.pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--cream); font-size: 14px; }
.pick .face { width: 58px; height: 58px; }
.pick button[aria-pressed="true"] .face { box-shadow: 0 0 0 4px var(--gold); }
.sis { padding: 16px; display: grid; grid-template-columns: 112px 1fr; gap: 6px; align-items: start; }
.sis .fig { width: 112px; height: 258px; object-fit: contain; object-position: 50% 100%; }
.sis h2 { font-family: 'BHS'; font-weight: 400; font-size: 26px; }
.sis .role { color: var(--ink2); font-size: 14px; margin-top: 2px; }
.radar { width: 100%; max-width: 230px; display: block; margin: 4px auto 0; }
.radar text { font-family: 'Jua'; font-size: 11px; fill: var(--ink); }
.radar .val { font-size: 10px; fill: var(--ink2); }
.skills { margin-top: 18px; display: grid; gap: 12px; }
.skill { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; border: 3px solid var(--ink); background: var(--cream); box-shadow: 0 5px 0 var(--ink); }
.skill.me { background: #FFE6A6; box-shadow: 0 5px 0 var(--ink), 0 0 0 4px var(--gold); }
.skill b { font-family: 'BHS'; font-weight: 400; font-size: 17px; }
.skill p { font-size: 14px; color: var(--ink2); line-height: 1.4; margin-top: 2px; }
.skill .mebadge { font-size: 12px; background: var(--ink); color: var(--gold); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

/* records */
.board { padding: 16px; }
.board h2 { font-family: 'BHS'; font-weight: 400; font-size: 22px; margin-bottom: 12px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; }
.bar .track { height: 22px; border-radius: 999px; background: rgba(30, 18, 48, .1); border: 2.5px solid var(--ink); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; }
.bar b { font-family: 'BHS'; font-weight: 400; font-size: 18px; text-align: right; }
.list { margin-top: 16px; display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--cream); border: 3px solid var(--ink); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-size: 16px; } .row .s { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.empty { color: var(--soft); text-align: center; padding: 26px 10px; font-size: 15px; line-height: 1.5; }
.sec { color: var(--cream); font-family: 'BHS'; font-weight: 400; font-size: 19px; margin: 24px 0 10px; text-shadow: 0 2px 0 var(--ink); }

/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(20, 8, 38, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--cream); border: 3px solid var(--ink); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 20px 18px calc(22px + var(--safe-b)); animation: up .25s cubic-bezier(.2, .9, .3, 1); }
@keyframes up { from { transform: translateY(40%); } }
.sheet h2 { font-family: 'BHS'; font-weight: 400; font-size: 25px; margin-bottom: 6px; }
.sheet .lead { color: var(--ink2); font-size: 15px; line-height: 1.45; margin-bottom: 14px; }
.sheet .acts { display: grid; gap: 12px; margin-top: 16px; }
.sheet .acts.two { grid-template-columns: 1fr 1fr; }
.sheet .x { float: right; width: 40px; height: 40px; border-radius: 12px; border: 2.5px solid var(--ink); display: grid; place-items: center; margin: -4px -4px 0 8px; }
.code { font-family: 'BHS'; font-size: 64px; letter-spacing: 10px; text-align: center; margin: 6px 0 2px; }
.code-in { width: 100%; font-family: 'BHS'; font-size: 44px; letter-spacing: 14px; text-align: center; border: 3px solid var(--ink); border-radius: 18px; padding: 10px; background: #fff; }
.players { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 12px 0 4px; }
.players span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; }
.whopick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.whopick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 18px; border: 3px solid transparent; font-size: 15px; }
.whopick .face { width: 58px; height: 58px; }
.whopick button[aria-pressed="true"] { border-color: var(--ink); background: #FFE6A6; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 2px dashed rgba(30, 18, 48, .15); font-size: 17px; }
.opt small { display: block; color: var(--ink2); font-size: 13px; }
.sw { width: 54px; height: 32px; border-radius: 999px; border: 3px solid var(--ink); background: #E7E1F1; position: relative; flex: none; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: left .15s; }
.sw[aria-checked="true"] { background: var(--mint); } .sw[aria-checked="true"]::after { left: 24px; }
.lv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 4px; }
.lv button { padding: 10px 0; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff; font-family: 'BHS'; font-size: 16px; }
.lv button[aria-pressed="true"] { background: var(--gold); }
.rank { display: grid; gap: 10px; margin: 10px 0; }
.rank .row.first { background: #FFE6A6; box-shadow: 0 0 0 4px var(--gold); }
.rank .n { font-family: 'BHS'; font-size: 22px; width: 26px; text-align: center; }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field label { font-size: 15px; color: var(--ink2); }
.in { width: 100%; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 14px; font-size: 17px; background: #fff; }

/* game layer */
.game-layer { position: fixed; inset: 0; z-index: 50; background: #000; }
.game-layer iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.waiting { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); z-index: 55; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 10px 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.waiting button { color: var(--gold); text-decoration: underline; }

/* map */
#map-wrap { position: fixed; inset: 0; z-index: 1; }
#map { position: absolute; inset: 0; background: #E8E3D6; }
.leaflet-tile-pane { filter: saturate(.8) sepia(.08) brightness(1.03); }
.map-top { position: absolute; left: 12px; right: 12px; top: calc(14px + var(--safe-t)); z-index: 500; display: grid; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; height: 52px; border-radius: 18px; border: 3px solid var(--ink); background: var(--cream); box-shadow: 0 5px 0 var(--ink); padding: 0 12px; }
.search input { flex: 1; border: 0; background: transparent; font-size: 16px; min-width: 0; }
.search input:focus { outline: none; }
.search svg { width: 22px; height: 22px; flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.results { background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; max-height: 40vh; overflow: auto; }
.results button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 2px dashed rgba(30, 18, 48, .12); font-size: 16px; }
.fab { position: absolute; right: 14px; bottom: calc(100px + var(--safe-b)); z-index: 500; }
.locbtn { position: absolute; left: 14px; bottom: calc(100px + var(--safe-b)); z-index: 500; }
.pin { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: #fff center/cover no-repeat; box-shadow: 0 4px 0 var(--ink); position: relative; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); z-index: -1; }
.pin.g { background-color: var(--lilac); } .pin.b { background-color: var(--coral); } .pin.y { background-color: var(--mint); } .pin.guest { background-color: var(--gold); }
.pin .lt { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'BHS'; font-size: 16px; }
.pin.sel { transform: scale(1.18); }
.leaflet-div-icon { background: none; border: 0; }
.mapnote { position: absolute; left: 12px; right: 12px; top: calc(140px + var(--safe-t)); z-index: 500; background: var(--ink); color: var(--cream); border-radius: 16px; padding: 10px 14px; font-size: 14px; line-height: 1.4; }
.mapnote button { color: var(--gold); text-decoration: underline; }
.place-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; max-height: 72vh; overflow: auto; background: var(--cream); border-top: 3px solid var(--ink); border-radius: 28px 28px 0 0; padding: 12px 18px calc(110px + var(--safe-b)); animation: up .25s; }
.grab { width: 48px; height: 6px; border-radius: 99px; background: rgba(30, 18, 48, .25); margin: 0 auto 12px; }
.place-sheet h2 { font-family: 'BHS'; font-weight: 400; font-size: 25px; }
.place-sheet .meta { color: var(--ink2); font-size: 14px; margin-top: 4px; }
.photos { display: flex; gap: 10px; overflow-x: auto; margin: 14px -18px 4px; padding: 0 18px 6px; }
.photos button { flex: none; width: 124px; height: 124px; border-radius: 16px; border: 3px solid var(--ink); overflow: hidden; background: #ddd; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.revs { display: grid; gap: 10px; margin-top: 12px; }
.rev { display: flex; gap: 10px; align-items: flex-start; }
.rev .face { width: 38px; height: 38px; border-width: 2.5px; }
.rev .t { font-size: 15px; line-height: 1.4; } .rev .stars { color: #E89B00; font-size: 14px; letter-spacing: 1px; }
.stars-in { display: flex; gap: 6px; }
.stars-in button { font-size: 30px; line-height: 1; color: #D9CDB6; padding: 2px; }
.stars-in button[aria-pressed="true"] { color: #F2A900; }
.addpics { display: flex; gap: 10px; flex-wrap: wrap; }
.addpics .pic, .addpics label { width: 86px; height: 86px; border-radius: 14px; border: 3px solid var(--ink); overflow: hidden; position: relative; display: grid; place-items: center; background: #fff; font-size: 13px; text-align: center; cursor: pointer; }
.addpics .pic img { width: 100%; height: 100%; object-fit: cover; }
.addpics .pic button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; line-height: 1; }
.minimap { height: 180px; border-radius: 16px; border: 3px solid var(--ink); overflow: hidden; position: relative; }
.minimap .cross { position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -100%); pointer-events: none; }
.viewer { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .92); display: grid; place-items: center; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer button { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
@media (min-width: 600px) { #scr-main { max-width: 600px; margin: 0 auto; } }
.place-sheet .acts { display: grid; gap: 10px; margin-top: 12px; }
.place-sheet .acts.two { grid-template-columns: 1fr 1fr; }
a.bt { text-decoration: none; color: var(--ink); }
.leaflet-bottom { bottom: calc(88px + var(--safe-b)); }
.leaflet-control-attribution { font-family: system-ui, sans-serif; font-size: 10px; background: rgba(255, 244, 222, .85) !important; border-radius: 8px 0 0 8px; }
