:root{--bg:#050505;--panel:#0d0c0b;--panel2:#11100f;--line:#282521;--line2:#35302b;--text:#f2eee7;--muted:#8b857d;--muted2:#625d56;--orange:#ff7a18;--orange2:#ff9a4a;--green:#7bd6a0;--purple:#a88cff;--blue:#78b7ff;--danger:#ff6b6b;--shadow:0 18px 60px rgba(0,0,0,.34);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#000;color:var(--text)}body{font-weight:400;letter-spacing:-.01em}button,input,textarea{font:inherit}button{border:0;color:inherit;background:none;cursor:pointer}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.hidden{display:none!important}#app{width:min(780px,100%);min-height:100vh;margin:auto;background:var(--bg);overflow-x:hidden;box-shadow:0 0 0 1px #161310}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:40;background:rgba(5,5,5,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(40,37,33,.7)}.brand-btn{text-align:left}.brand{display:block;font-size:13px;font-weight:700;letter-spacing:.26em}.brand-sub{display:block;font-size:8px;letter-spacing:.22em;color:var(--muted2);margin-top:4px}.top-actions{display:flex;align-items:center;gap:8px}.icon-btn,.avatar-mini{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#0b0a09}.icon-btn svg{width:18px;height:18px}.streak-top{display:flex;align-items:center;gap:4px;width:auto;padding:0 10px;border-radius:999px}.streak-top svg{width:16px;color:var(--orange)}.streak-top b{font-size:11px;font-weight:650}.avatar-mini{background:linear-gradient(145deg,#ff8d37,#b94d08);color:#120904;font-size:11px;font-weight:800}.screen{display:none;padding:22px 18px 110px;animation:fade .18s ease}.screen.active{display:block}@keyframes fade{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:none}}.world-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:17px}.world-head h1{font-size:37px;line-height:1.02;letter-spacing:-.045em;font-weight:560;margin:7px 0 8px}.world-head p,.screen-heading p{color:var(--muted);font-size:12px;line-height:1.5;margin:0;max-width:530px}.eyebrow{font-size:8px;letter-spacing:.2em;color:#746e66;font-weight:650}.round-add{width:44px;height:44px;border-radius:50%;border:1px solid #3a2b20;color:var(--orange);background:#15100c;font-size:25px;font-weight:300}.live-map-shell{height:440px;border:1px solid var(--line);border-radius:28px;overflow:hidden;position:relative;background:#0a0d0d;box-shadow:var(--shadow)}.live-map{position:absolute;inset:0;filter:saturate(.72) brightness(.72) contrast(1.05)}.leaflet-container{background:#101514}.leaflet-control-zoom{display:none}.leaflet-control-attribution{font-size:7px!important;background:rgba(4,5,5,.6)!important;color:#777!important}.leaflet-control-attribution a{color:#8f8a83!important}.map-overlay{position:absolute;z-index:500;top:13px;left:13px;padding:9px 11px;border:1px solid rgba(255,255,255,.08);background:rgba(7,7,7,.75);backdrop-filter:blur(10px);border-radius:999px;font-size:9px;color:#b5afa7;display:flex;align-items:center;gap:7px}.live-dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(123,214,160,.08)}.map-control{position:absolute;z-index:500;right:12px;width:38px;height:38px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(7,7,7,.8);display:grid;place-items:center;color:#d8d1c8;backdrop-filter:blur(10px)}.locate-control{top:13px}.layers-control{top:57px}.map-control svg{width:17px}.map-story-card{position:absolute;z-index:500;left:13px;right:13px;bottom:13px;border:1px solid rgba(255,255,255,.08);background:rgba(6,6,6,.83);backdrop-filter:blur(15px);border-radius:20px;padding:14px}.map-story-card b{display:block;font-size:17px;font-weight:550;margin-top:5px}.map-story-card small{display:block;color:#827c74;font-size:9px;margin-top:4px}.world-strip{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:19px;overflow:hidden;margin:12px 0}.world-strip button{padding:13px 7px;background:#0b0a09;border-right:1px solid var(--line);text-align:left}.world-strip button:last-child{border-right:0}.stat-number{display:block;font-size:19px;font-weight:570}.world-strip small{font-size:8px;color:var(--muted2);letter-spacing:.08em}.world-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-feature{min-height:116px;text-align:left;border:1px solid var(--line);background:linear-gradient(145deg,#0f0e0d,#0a0908);border-radius:21px;padding:14px;display:grid;grid-template-columns:38px 1fr 10px;gap:10px;align-items:start}.feature-icon{width:36px;height:36px;border:1px solid #3a3029;border-radius:12px;background:#17100c;display:grid;place-items:center;color:var(--orange)}.feature-icon svg{width:17px}.quick-feature small{display:block;color:#746d65;font-size:8px;letter-spacing:.16em;margin:2px 0 7px}.quick-feature b{display:block;font-size:14px;font-weight:570}.quick-feature em{display:block;font-style:normal;color:#716b64;font-size:9px;line-height:1.35;margin-top:5px}.quick-feature i{font-style:normal;color:#625d56;font-size:17px}.streak-banner{margin-top:10px;border:1px solid #3b2a1e;background:linear-gradient(145deg,#17100b,#0b0908);border-radius:22px;padding:14px;display:grid;grid-template-columns:50px 1fr 10px;gap:12px;align-items:center}.streak-orbit{width:50px;height:50px;border:1px solid #4c3020;border-radius:50%;display:grid;place-items:center;position:relative}.streak-orbit:before{content:"";width:23px;height:23px;border:2px solid var(--orange);border-radius:50%;opacity:.8}.streak-orbit span{position:absolute;width:5px;height:5px;border-radius:50%;background:var(--orange);top:7px;right:8px;box-shadow:0 0 14px var(--orange)}.streak-banner strong{display:block;font-size:16px;font-weight:570;margin-top:5px}.streak-banner p{font-size:9px;line-height:1.4;color:#77716a;margin:4px 0 0}.streak-banner>i{font-style:normal;color:#68625b}.screen-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:17px}.screen-heading h2{font-size:32px;line-height:1.02;letter-spacing:-.04em;font-weight:560;margin:7px 0}.screen-heading>.icon-btn{flex:0 0 auto}.primary-btn,.primary-small{background:var(--orange);color:#0b0806;border:1px solid var(--orange);font-weight:700;border-radius:14px;padding:12px 16px}.primary-small{padding:9px 12px;font-size:10px;border-radius:12px}.game-room-hero{border:1px solid #3c2a1e;background:radial-gradient(circle at 90% 10%,rgba(255,122,24,.16),transparent 32%),linear-gradient(145deg,#17100c,#0c0b0a);border-radius:25px;padding:19px;display:flex;justify-content:space-between;gap:16px;align-items:flex-end;min-height:180px;box-shadow:var(--shadow)}.game-room-hero h3{font-size:27px;font-weight:560;letter-spacing:-.04em;margin:7px 0}.game-room-hero p{color:#89827a;font-size:11px;line-height:1.5;max-width:480px;margin:0 0 13px}.game-tags{display:flex;gap:6px;flex-wrap:wrap}.game-tags span,.tag{font-size:8px;border:1px solid #3b3028;border-radius:999px;padding:6px 8px;color:#938b82;letter-spacing:.05em}.category-row{display:flex;gap:7px;overflow:auto;padding:15px 0 12px;scrollbar-width:none}.category-row::-webkit-scrollbar{display:none}.category-row button{white-space:nowrap;border:1px solid var(--line);padding:8px 11px;border-radius:999px;color:#77716a;font-size:9px}.category-row button.active{border-color:#56361f;background:#1b120c;color:#ff9a4a}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.game-card{min-height:170px;border:1px solid var(--line);border-radius:21px;background:#0c0b0a;padding:15px;text-align:left;display:flex;flex-direction:column;justify-content:space-between}.game-card:hover{border-color:#493426}.game-card .game-symbol{width:34px;height:34px;border:1px solid #352c25;border-radius:11px;background:#15110e;display:grid;place-items:center;color:var(--orange);margin-bottom:15px}.game-card h3{font-size:15px;font-weight:570;margin:0 0 5px}.game-card p{font-size:9px;line-height:1.45;color:#77716a;margin:0}.game-card .game-meta{display:flex;justify-content:space-between;gap:6px;margin-top:13px;color:#5f5a54;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.game-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.game-stats>div{border-top:1px solid var(--line);padding-top:11px}.game-stats small{display:block;color:#656058;font-size:8px;letter-spacing:.1em}.game-stats b{display:block;font-size:20px;font-weight:560;margin-top:4px}.chat-tools{display:flex;gap:7px;overflow:auto;margin-bottom:14px;scrollbar-width:none}.chat-tools::-webkit-scrollbar{display:none}.chat-tools button{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:8px 11px;color:#9b948c;font-size:9px;white-space:nowrap}.chat-tools svg{width:14px;height:14px;color:var(--orange)}.messages{display:flex;flex-direction:column;gap:9px;min-height:55vh;padding:2px 0 16px}.bubble{max-width:78%;padding:11px 13px;border-radius:18px;font-size:12px;line-height:1.5;position:relative}.bubble.me{align-self:flex-end;background:var(--orange);color:#0b0806;border-bottom-right-radius:5px}.bubble.them{align-self:flex-start;background:#12110f;border:1px solid var(--line);color:#ddd7cf;border-bottom-left-radius:5px}.bubble.system{align-self:center;max-width:90%;background:#0b0a09;border:1px dashed #332d28;color:#827b73;text-align:center;font-size:10px}.bubble small{display:block;opacity:.5;font-size:7px;margin-top:4px}.bubble .bubble-action{display:inline-block;margin-top:9px;padding:7px 9px;border-radius:9px;background:rgba(0,0,0,.12);font-size:8px;font-weight:700}.composer{position:sticky;bottom:82px;display:flex;gap:7px;background:linear-gradient(transparent,#050505 17%);padding-top:18px}.composer input{min-width:0;flex:1;background:#0d0c0b;border:1px solid var(--line);border-radius:999px;padding:12px 14px;color:var(--text);outline:none;font-size:12px}.composer input:focus{border-color:#4a3627}.composer-icon{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:#8b847c;background:#0c0b0a}.composer-icon svg{width:17px}.send-btn{background:#eee9e1;color:#0a0806;border-radius:999px;padding:0 15px;font-size:10px;font-weight:750}.online-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:5px}.story-cover{border:1px solid #332a23;border-radius:24px;padding:20px;background:radial-gradient(circle at 85% 10%,rgba(255,122,24,.15),transparent 35%),#0e0d0c;margin-bottom:13px}.story-avatar-stack{display:flex;margin-bottom:22px}.story-avatar,.avatar-small,.avatar-large{border-radius:50%;background:linear-gradient(145deg,#ff8d37,#a94406);color:#130a05;display:grid;place-items:center;font-weight:800}.story-avatar{width:48px;height:48px;border:3px solid #0e0d0c;font-size:10px}.story-avatar.partner{margin-left:-12px;background:linear-gradient(145deg,#e4b083,#7c4324);color:#180d07}.story-cover strong{display:block;font-size:21px;font-weight:560;margin-top:6px}.story-cover small{display:block;color:#77716a;font-size:9px;margin-top:5px}.story-tabs{display:flex;gap:6px;margin-bottom:14px}.story-tabs button{flex:1;padding:9px;border-bottom:1px solid var(--line);color:#706a63;font-size:9px}.story-tabs button.active{color:var(--orange);border-bottom-color:var(--orange)}.timeline{position:relative;padding-left:15px}.timeline:before{content:"";position:absolute;left:4px;top:0;bottom:0;width:1px;background:#292622}.timeline-item{position:relative;padding:0 0 15px 16px}.timeline-item:before{content:"";position:absolute;left:-15px;top:5px;width:9px;height:9px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 4px #15110e}.story-card{border:1px solid var(--line);background:#0d0c0b;border-radius:19px;padding:14px}.story-meta{display:flex;justify-content:space-between;color:#6f6962;font-size:8px}.story-card h3{font-size:15px;font-weight:560;margin:8px 0 4px}.story-card p{font-size:10px;line-height:1.5;color:#7f7971;margin:0}.story-card .story-actions{display:flex;gap:6px;margin-top:10px}.mini-action{font-size:8px;border:1px solid var(--line);border-radius:999px;padding:6px 8px;color:#8d867e}.profile-card{display:grid;grid-template-columns:62px 1fr auto;gap:13px;align-items:center;border:1px solid var(--line);background:#0d0c0b;border-radius:23px;padding:15px;margin-bottom:10px}.avatar-large{width:62px;height:62px;font-size:17px;border:4px solid #18120e}.profile-card b{display:block;font-size:16px;font-weight:560}.profile-card span,.profile-card small{display:block;color:#7d766e;font-size:9px;margin-top:4px}.outline-btn{border:1px solid var(--line2);border-radius:12px;padding:9px 11px;font-size:9px;color:#aaa39b}.couple-card{display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:13px;border:1px solid #3a2b20;background:#120d09;border-radius:21px;padding:14px;margin-bottom:11px}.couple-avatars{display:flex;align-items:center}.avatar-small{width:38px;height:38px;font-size:8px;border:2px solid #120d09}.avatar-small.partner{background:linear-gradient(145deg,#e4b083,#7c4324)}.link-line{height:1px;width:15px;background:#62452f}.couple-card strong{display:block;font-size:14px;font-weight:560;margin-top:5px}.couple-card small{display:block;color:#766f67;font-size:8px;margin-top:4px}.couple-card>button{font-size:8px;color:var(--orange);border:1px solid #493122;padding:7px 8px;border-radius:10px}.settings-list{border:1px solid var(--line);border-radius:22px;overflow:hidden}.settings-list button{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;padding:15px 14px;background:#0d0c0b;border-bottom:1px solid #24211e}.settings-list button:last-child{border-bottom:0}.settings-list b{display:block;font-size:12px;font-weight:560}.settings-list small{display:block;color:#716b64;font-size:9px;margin-top:4px}.settings-list i{font-style:normal;color:#625d56;font-size:19px}.bottom-nav{position:fixed;z-index:45;bottom:0;left:50%;transform:translateX(-50%);width:min(780px,100%);height:78px;background:rgba(7,7,7,.96);backdrop-filter:blur(18px);border-top:1px solid #24211f;display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom)}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#6e6861;font-size:8px}.nav-item.active{color:var(--orange)}.nav-item.play-nav .nav-ico{width:34px;height:34px;border-radius:12px;background:#1a100a;display:grid;place-items:center}.nav-ico svg{width:17px;height:17px}.toast{position:fixed;z-index:200;left:50%;bottom:94px;transform:translate(-50%,20px);background:#ece7df;color:#0b0806;border-radius:999px;padding:9px 13px;font-size:9px;font-weight:700;opacity:0;pointer-events:none;transition:.2s;white-space:nowrap;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:end center}.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.74);backdrop-filter:blur(10px)}.modal-card{position:relative;width:min(700px,100%);max-height:91vh;overflow:auto;background:#11100f;border:1px solid #302b26;border-bottom:0;border-radius:28px 28px 0 0;padding:27px 20px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -20px 80px rgba(0,0,0,.6)}.modal-close{position:absolute;right:15px;top:12px;width:34px;height:34px;border-radius:50%;background:#1a1816;color:#aaa39a;font-size:22px}.modal-card h2{font-size:28px;line-height:1.04;letter-spacing:-.04em;font-weight:560;margin:8px 0}.modal-card h3{font-size:18px;font-weight:560;margin:8px 0}.modal-card p{font-size:11px;line-height:1.55;color:#89827a}.modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.modal-actions button{border:1px solid #312c27;border-radius:12px;padding:10px 12px;color:#b2aaa1;font-size:9px}.modal-actions .primary{background:var(--orange);color:#0b0806;border-color:var(--orange);font-weight:750}.form-row{display:grid;gap:7px;margin-top:14px}.form-row label{font-size:8px;letter-spacing:.14em;color:#77716a}.form-row input,.form-row textarea,.form-row select{width:100%;border:1px solid #2d2925;background:#090807;color:var(--text);border-radius:13px;padding:12px;outline:none;font-size:11px}.form-row textarea{min-height:90px;resize:vertical}.choice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:13px}.choice-grid button{border:1px solid #302b27;background:#0d0c0b;border-radius:12px;padding:13px 5px;font-size:11px;color:#aaa39b}.choice-grid button.used{opacity:.25;pointer-events:none}.choice-grid button.selected{background:var(--orange);border-color:var(--orange);color:#0b0806}.game-session .turn-banner{margin:13px 0;border:1px solid #3b2a20;background:#17100c;border-radius:16px;padding:12px}.turn-banner span{display:block;color:#7a736b;font-size:8px;letter-spacing:.16em}.turn-banner b{display:block;font-size:13px;font-weight:560;margin-top:4px}.prompt-card{border:1px solid #332d28;background:#0a0908;border-radius:21px;padding:19px;min-height:160px;display:flex;flex-direction:column;justify-content:center}.prompt-card small{color:var(--orange);font-size:8px;letter-spacing:.18em}.prompt-card h3{font-size:22px;line-height:1.27;font-weight:540;margin-top:9px}.choice-big{display:grid;gap:8px;margin-top:12px}.choice-big button{border:1px solid #2f2a25;background:#0d0c0b;border-radius:14px;padding:13px;text-align:left;font-size:11px}.choice-big button.selected{border-color:var(--orange);background:#1b120c}.session-footer{display:flex;gap:8px;margin-top:10px}.session-footer button{flex:1;border:1px solid #302b27;border-radius:13px;padding:11px;font-size:9px}.session-footer .primary{background:var(--orange);color:#0b0806;border-color:var(--orange);font-weight:750}.game-result{text-align:center;padding:12px 0}.score-ring{width:110px;height:110px;border:1px solid #4d3422;border-radius:50%;display:grid;place-items:center;margin:15px auto;background:radial-gradient(circle,#21140d,#0b0908)}.score-ring strong{font-size:31px;font-weight:550}.avatar-editor{display:grid;grid-template-columns:130px 1fr;gap:16px;align-items:start}.avatar-preview{border:1px solid #3a2d24;background:radial-gradient(circle at 50% 10%,#2a1a11,#0b0908);border-radius:23px;min-height:220px;display:grid;place-items:center}.svg-avatar{width:115px;height:155px}.avatar-options{display:grid;gap:9px}.option-group{border:1px solid var(--line);border-radius:16px;padding:10px}.option-group label{display:block;color:#77716a;font-size:8px;letter-spacing:.13em;margin-bottom:7px}.option-buttons{display:flex;gap:5px;flex-wrap:wrap}.option-buttons button{border:1px solid #302b27;border-radius:9px;padding:7px 8px;font-size:8px;color:#9a9289}.option-buttons button.active{border-color:var(--orange);background:#1b120c;color:#ff9a4a}.gift-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.gift-option{border:1px solid var(--line);border-radius:17px;background:#0d0c0b;padding:14px;text-align:left}.gift-option strong{display:block;font-size:12px;font-weight:560}.gift-option small{display:block;color:#746e66;font-size:8px;line-height:1.4;margin-top:5px}.gift-icon{width:32px;height:32px;display:grid;place-items:center;border:1px solid #3a2d25;border-radius:10px;color:var(--orange);margin-bottom:10px}.gift-form{display:none}.gift-form.active{display:block}.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #282521}.switch{width:47px;height:27px;border-radius:999px;background:#2a2723;padding:3px}.switch span{display:block;width:21px;height:21px;border-radius:50%;background:#77716d;transition:.2s}.switch.on{background:var(--orange)}.switch.on span{transform:translateX(20px);background:#0b0806}.list-stack{display:grid;gap:8px;margin-top:13px}.list-item{border:1px solid var(--line);border-radius:16px;background:#0c0b0a;padding:12px;display:flex;justify-content:space-between;gap:10px}.list-item b{display:block;font-size:11px;font-weight:560}.list-item small{display:block;color:#706a63;font-size:8px;margin-top:4px}.list-item .status{font-size:8px;color:var(--orange)}.location-share{border:1px solid #3b2b20;background:#140e0a;border-radius:18px;padding:14px}.location-share strong{display:block;font-size:13px;font-weight:560}.location-share p{margin:5px 0 0}.map-layers{display:grid;gap:8px;margin-top:13px}.map-layer{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:14px;padding:11px}.map-layer span{display:flex;align-items:center;gap:8px;font-size:10px}.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.legend-dot.memory{background:#fff0d7}.legend-dot.dream{background:var(--orange)}.legend-dot.adventure{background:var(--green)}.legend-dot.milestone{background:var(--purple)}.empty-state{border:1px dashed #2d2925;border-radius:20px;padding:28px 18px;text-align:center;color:#726c65}.empty-state h3{font-size:16px;font-weight:560;margin:0 0 6px}.empty-state p{font-size:9px;line-height:1.5;margin:0}.demo-note{border:1px solid #3a3028;background:#130e0a;color:#8d857c;padding:10px 12px;border-radius:12px;font-size:8px;line-height:1.5;margin-top:12px}.action-avatar{border:1px solid var(--line);border-radius:17px;padding:12px;display:flex;align-items:center;gap:10px;margin-top:8px}.action-avatar .state-dot{width:8px;height:8px;border-radius:50%;background:var(--green)}
.rk-marker-wrap,.rk-avatar-marker-wrap{background:transparent!important;border:0!important}.rk-marker{position:relative;width:22px;height:22px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#0a0908;border:2px solid var(--c);box-shadow:0 4px 12px rgba(0,0,0,.35)}.rk-marker span{display:block;width:7px;height:7px;border-radius:50%;background:var(--c);position:absolute;left:6px;top:6px}.rk-marker b{position:absolute;transform:rotate(45deg);left:13px;top:19px;white-space:nowrap;color:#ddd7cf;font-size:7px;font-weight:650;background:rgba(6,6,6,.78);padding:3px 5px;border-radius:6px}.rk-avatar-marker{display:flex;flex-direction:column;align-items:center;gap:2px}.rk-avatar-marker>div{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#ff963e,#8e3d0b);border:2px solid #f6d0aa;color:#140a05;font-size:8px;font-weight:850;box-shadow:0 4px 15px rgba(0,0,0,.4)}.rk-avatar-marker.partner>div{background:linear-gradient(145deg,#e4b083,#7c4324);border-color:#f0d2b9}.rk-avatar-marker b{font-size:7px;font-weight:650;color:#eee6dc;background:rgba(5,5,5,.8);padding:3px 5px;border-radius:7px;white-space:nowrap}
html[data-theme=light]{--bg:#f4f1ec;--panel:#fff;--panel2:#faf8f5;--line:#ded8d0;--line2:#c9c1b7;--text:#171411;--muted:#6f6962;--muted2:#8d867e;--orange:#ef6d0d;--orange2:#f58a32}.modal-card{background:#fffdfa}.topbar,.bottom-nav{background:rgba(244,241,236,.94)}.live-map-shell{background:#dfe5df}.leaflet-container{background:#dfe5df}.world-strip button,.quick-feature,.game-card,.story-card,.profile-card,.settings-list button,.composer input,.couple-card{background:#fffdfa}.game-room-hero,.streak-banner,.story-cover{background:linear-gradient(145deg,#fff8f0,#f4eee7)}.bubble.them{background:#fffdfa;color:#2b2723}.map-story-card,.map-overlay,.map-control{background:rgba(255,253,250,.86);color:#49433d}.modal-backdrop{background:rgba(20,16,12,.42)}.modal-card p,.game-card p,.quick-feature em,.story-card p,.settings-list small{color:#716a62}.bottom-nav{border-top-color:#d7d0c7}.brand{color:#171411}
@media(min-width:700px){.screen{padding-left:26px;padding-right:26px}.live-map-shell{height:510px}}@media(max-width:480px){.world-head h1{font-size:34px}.live-map-shell{height:410px}.game-grid{grid-template-columns:1fr}.game-room-hero{align-items:flex-start;flex-direction:column}.avatar-editor{grid-template-columns:1fr}.avatar-preview{min-height:180px}.world-quick-grid{grid-template-columns:1fr 1fr}}@media(max-width:370px){.world-quick-grid{grid-template-columns:1fr}.world-strip small{font-size:7px}.world-head h1{font-size:31px}}

/* Rekindle V12 visual corrections */
.svg-avatar{display:block;width:100%;height:100%;max-width:100%;max-height:100%}
.avatar-large,.avatar-small{overflow:hidden;position:relative}
.avatar-large{display:grid;place-items:center}
.avatar-small{display:grid;place-items:center}
.avatar-large .svg-avatar,.avatar-small .svg-avatar{width:100%;height:100%;object-fit:contain}
.profile-card b{color:var(--text)}
.couple-card strong{color:var(--text)}
.settings-list b{color:var(--text)}
.settings-list small{color:var(--muted)!important}

/* The map is part of the world, not a cropped card. */
.live-map-shell{margin-left:-18px;width:calc(100% + 36px);border-radius:0;border-left:0;border-right:0;height:460px;box-shadow:none}
.live-map{filter:saturate(.82) brightness(.78) contrast(1.03)}
.map-story-card{left:18px;right:18px;bottom:16px}
.map-overlay{left:18px;top:16px}
.map-control{right:16px}
@media(min-width:700px){.live-map-shell{margin-left:-26px;width:calc(100% + 52px);height:510px}.map-story-card{left:26px;right:26px}.map-overlay{left:26px}}

/* Consistent SVG icon treatment: no text glyphs standing in for icons. */
.gift-icon svg,.gift-option svg,.bubble-action svg,.settings-list svg{width:20px;height:20px}
.gift-icon{display:grid;place-items:center}
.gift-option.selected{border-color:var(--orange);background:rgba(255,122,24,.07)}
.quick-feature>i,.settings-list>button>i{display:grid;place-items:center}
.quick-feature>i svg,.settings-list>button>i svg{width:16px;height:16px}

/* Light mode needs real contrast, not simply inverted surfaces. */
html[data-theme=light] .profile-card b,
html[data-theme=light] .couple-card strong,
html[data-theme=light] .settings-list b,
html[data-theme=light] .game-card h3,
html[data-theme=light] .game-room-hero h3,
html[data-theme=light] .world-head h1,
html[data-theme=light] .screen-heading h2,
html[data-theme=light] .story-card h3{color:#171411}
html[data-theme=light] .profile-card span,html[data-theme=light] .profile-card small{color:#6f6962}
html[data-theme=light] .settings-list i{color:#59534d}
html[data-theme=light] .gift-option{background:#fffdfa;color:#171411}
html[data-theme=light] .gift-option strong{color:#171411}
html[data-theme=light] .gift-option small{color:#6f6962}
html[data-theme=light] .game-card p,html[data-theme=light] .game-room-hero p{color:#6f6962}

/* Rekindle V13 — custom relationship space */
:root{
  --bg:#050505;
  --panel:#0c0b0a;
  --panel2:#11100e;
  --line:#292522;
  --line2:#40352d;
  --text:#fffaf3;
  --muted:#a59e96;
  --muted2:#746d66;
  --orange:#ff7417;
  --orange2:#ff9b50;
  --relationship-gap:88px;
}
html[data-theme="light"]{--bg:#050505;--panel:#0c0b0a;--panel2:#11100e;--line:#292522;--line2:#40352d;--text:#fffaf3;--muted:#a59e96;--muted2:#746d66;--orange:#ff7417;--orange2:#ff9b50}
html,body{background:#000;color:var(--text)}
#app{background:var(--bg);color:var(--text)}
.topbar{background:rgba(5,5,5,.96);border-bottom:1px solid rgba(255,255,255,.07)}
.brand,.world-head h1,.screen-heading h2,.profile-card b,.couple-card strong,.settings-list b,.game-card h3,.game-room-hero h3,.story-card h3,.modal-card h2,.modal-card h3{color:#fffaf3}
.eyebrow{color:#8b837b}
.world-head p,.screen-heading p{color:#aaa39b}
.round-add{display:grid;place-items:center;font-size:0}
.round-add svg{width:19px;height:19px}

/* Remove every remaining tile-map visual from the home screen. */
.live-map-shell,.live-map,.leaflet-container,.map-overlay,.map-control,.map-story-card,.leaflet-control-attribution{display:none!important}

.between-card{
  position:relative;
  min-height:386px;
  margin:4px -2px 0;
  overflow:hidden;
  border:1px solid #2d2824;
  border-radius:30px;
  background:
    radial-gradient(circle at 50% 48%,rgba(255,116,23,.12),transparent 23%),
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.035),transparent 18%),
    linear-gradient(150deg,#0d0c0b 0%,#050505 72%);
  box-shadow:0 24px 80px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.025);
}
.between-card:before,.between-card:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.between-card:before{width:260px;height:260px;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid rgba(255,116,23,.08);box-shadow:0 0 80px rgba(255,116,23,.06)}
.between-card:after{width:420px;height:420px;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.025)}
.between-noise{position:absolute;inset:0;opacity:.18;background-image:radial-gradient(circle,rgba(255,255,255,.5) .7px,transparent .8px);background-size:32px 32px;mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 82%,transparent)}
.between-topline{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:17px 17px 0}
.between-status{display:flex;align-items:center;gap:7px;border:1px solid #302a25;border-radius:999px;padding:7px 9px;color:#a49d95;font-size:8px}
.relationship-space{position:relative;height:282px;z-index:2}
.orbit-glow{position:absolute;width:130px;height:130px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:rgba(255,116,23,.08);filter:blur(18px)}
.relationship-line{position:absolute;left:50%;top:50%;width:var(--relationship-gap);height:1px;transform-origin:left center;background:linear-gradient(90deg,rgba(255,116,23,.12),rgba(255,116,23,.9),rgba(255,116,23,.12));box-shadow:0 0 16px rgba(255,116,23,.22)}
.line-a{transform:translateY(-50%) rotate(calc(-3deg + var(--relationship-tilt)))}
.line-b{transform:translateY(-50%) rotate(calc(177deg + var(--relationship-tilt)));opacity:.38}
.relationship-particle{position:absolute;width:4px;height:4px;border-radius:50%;background:#ff9b50;box-shadow:0 0 12px #ff7417;left:50%;top:50%;animation:relationshipFloat 3.4s ease-in-out infinite}
.p1{animation-delay:-.5s}.p2{animation-delay:-1.7s;transform:translate(20px,-15px) scale(.7)}.p3{animation-delay:-2.7s;transform:translate(-22px,13px) scale(.55)}
@keyframes relationshipFloat{0%,100%{opacity:.2;transform:translate(-35px,0)}50%{opacity:1;transform:translate(35px,0)}}
.person-node{position:absolute;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;z-index:4}
.person-you{left:calc(50% - var(--relationship-gap) - 47px)}
.person-partner{left:calc(50% + var(--relationship-gap) - 1px)}
.avatar-orb{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;overflow:hidden;border:2px solid #ff7417;background:radial-gradient(circle at 50% 20%,#26160d,#090807);box-shadow:0 0 0 7px rgba(255,116,23,.05),0 10px 28px rgba(0,0,0,.5)}
.avatar-orb.partner{border-color:#d9a77d;box-shadow:0 0 0 7px rgba(217,167,125,.045),0 10px 28px rgba(0,0,0,.5)}
.relationship-avatar{width:100%;height:100%;object-fit:contain}
.person-label{margin-top:9px;font-size:7px;letter-spacing:.19em;color:#8d857d;font-weight:700}
.person-node b{font-size:10px;font-weight:520;color:#fffaf3;margin-top:4px;white-space:nowrap}
.distance-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;z-index:5;pointer-events:none}
.distance-label{display:block;color:#766e66;font-size:6px;letter-spacing:.18em}
.distance-core strong{display:block;font-size:17px;font-weight:550;letter-spacing:-.03em;margin-top:3px;color:#fffaf3}
.distance-core small{display:block;color:#807870;font-size:7px;margin-top:3px}
.between-footer{position:absolute;left:17px;right:17px;bottom:15px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid rgba(255,255,255,.06);padding-top:13px}
.between-footer div span,.between-footer div b{display:block}
.between-footer div span{font-size:7px;color:#706961;letter-spacing:.08em}
.between-footer div b{font-size:9px;font-weight:500;color:#c5bdb5;margin-top:3px}
.between-footer button,.world-story-line button{display:flex;align-items:center;gap:5px;border:1px solid #3a2d24;border-radius:999px;padding:8px 10px;color:#ff9347;font-size:8px;background:#0e0b09}
.between-footer svg,.world-story-line svg{width:13px;height:13px}
.world-story-line{display:flex;align-items:center;justify-content:space-between;margin:15px 2px 10px;padding:0 2px}
.world-story-line strong{display:block;color:#fffaf3;font-size:14px;font-weight:520;margin-top:4px}
.world-story-line button{background:transparent;border-color:#29231f;color:#aaa39b}
.world-strip{margin-top:0;background:#090807;border-color:#292522}
.world-strip button{background:#090807}
.world-strip small{color:#807970}
.world-quick-grid{margin-top:10px}
.quick-feature{background:linear-gradient(145deg,#10100e,#090807);border-color:#292522}
.quick-feature b{color:#fffaf3}
.quick-feature em{color:#8c847c}
.streak-banner{background:linear-gradient(145deg,#15100c,#090807)}

/* Permanent dark footer / navigation. */
.bottom-nav{background:rgba(5,5,5,.98)!important;border-top:1px solid #292522!important;color:#fffaf3}
.nav-item{color:#777069}
.nav-item.active{color:var(--orange)}
.nav-item.play-nav .nav-ico{background:#1b100a;border:1px solid #34261e}
.toast{background:#f5eee6;color:#100b08}

/* Dark cards everywhere; no accidental white surfaces. */
.profile-card,.couple-card,.settings-list button,.story-card,.game-card,.composer input{background:#0d0c0b!important;color:#fffaf3;border-color:#292522}
.profile-card span,.profile-card small,.couple-card small,.settings-list small{color:#948c84!important}
.settings-list i{color:#746c64!important}
.modal-card{background:#0d0c0b;border-color:#302a25}
.form-row input,.form-row textarea,.form-row select{background:#080706;color:#fffaf3}

/* Keep the profile avatar contained even on narrow phones. */
.avatar-large{width:74px;height:74px;overflow:hidden;flex:0 0 74px;border:1px solid #382b23;border-radius:50%;background:#0a0807}
.avatar-large .svg-avatar{width:100%!important;height:100%!important;object-fit:contain}
.profile-card{grid-template-columns:74px 1fr auto;min-height:102px}
.avatar-small{overflow:hidden}
.avatar-small .svg-avatar{width:100%!important;height:100%!important;object-fit:contain}

@media(max-width:480px){
  .screen{padding-left:16px;padding-right:16px}
  .world-head h1{font-size:35px}
  .between-card{min-height:370px;border-radius:27px}
  .relationship-space{height:270px}
  .avatar-orb{width:61px;height:61px}
  .person-you{left:calc(50% - var(--relationship-gap) - 42px)}
  .person-partner{left:calc(50% + var(--relationship-gap) - 1px)}
  .distance-core strong{font-size:16px}
}
@media(max-width:370px){
  .between-card{min-height:360px}
  .relationship-space{height:258px}
  .avatar-orb{width:57px;height:57px}
  .person-you{left:calc(50% - var(--relationship-gap) - 38px)}
  .person-partner{left:calc(50% + var(--relationship-gap) - 1px)}
  .distance-core strong{font-size:14px}
}
