/* BKS Relationships: romantic visual refresh V3. Front-end only. */
:root{font-family:'Segoe UI',Inter,system-ui,-apple-system,sans-serif;color:#fff2ee;background:#14080f;font-synthesis:none}*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;min-height:100%;background:radial-gradient(ellipse at 87% -9%,#642036 0%,transparent 33%),radial-gradient(ellipse at 1% 99%,#361222 0%,transparent 47%),linear-gradient(155deg,#1e0b15 0%,#110a14 55%,#1b0911 100%)}button,input{font:inherit}button{cursor:pointer}a{color:inherit}.cosmos{position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.55;background-image:radial-gradient(1px 1px at 8% 13%,#fff6 99%,transparent),radial-gradient(1px 1px at 27% 49%,#ffbfbd77 99%,transparent),radial-gradient(1px 1px at 79% 26%,#fff8 99%,transparent),radial-gradient(1.5px 1.5px at 94% 67%,#ffa6ab88 99%,transparent),radial-gradient(1px 1px at 62% 78%,#fff6 99%,transparent);background-size:360px 330px,430px 350px,390px 310px,520px 420px,300px 420px}
.topline{z-index:2;position:relative;height:52px;padding:0 clamp(18px,3.1vw,52px);display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #f6b8a51c;background:#12070deb;backdrop-filter:blur(12px)}.home{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:10px;font-weight:750;letter-spacing:1.6px;color:#ffe5d6;white-space:nowrap}.home:hover,footer a:hover{color:#ff98a4}.back{display:grid;place-items:center;width:26px;height:26px;border:1px solid #ff9f9f44;border-radius:50%;font-size:16px}.brand{font-size:11px;letter-spacing:2.1px;font-weight:700;color:#f7c9b9;white-space:nowrap}.brand strong{color:#fff3e8}.brand-heart{font-size:23px;color:#ff768c;vertical-align:-2px;margin-right:4px}.brand-sep{color:#bd8590;margin:0 11px}.preview{font-size:9px;font-weight:800;color:#ffc2b1;letter-spacing:1.3px;white-space:nowrap}.preview span{color:#ff6975;margin-left:6px}
.main{z-index:1;position:relative;width:min(100%,1580px);margin:0 auto;padding:12px clamp(14px,2vw,28px) 7px;display:grid;grid-template-rows:minmax(116px,142px) 76px minmax(0,1fr) 22px;gap:9px}.intro{position:relative;overflow:hidden;border-radius:18px;display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:center;padding:10px 25px;background:linear-gradient(105deg,#481326dd 0%,#361025e7 45%,#4f1724c2 100%);border:1px solid #f4a6a54a;box-shadow:0 8px 40px #0005,inset 0 0 45px #e1374110}.intro::before{content:'';position:absolute;width:280px;height:280px;right:13%;top:-150px;filter:blur(45px);background:#ff455328;pointer-events:none}.hero-copy{position:relative;z-index:1;min-width:0}.kicker,.eyebrow{font-size:9px;font-weight:900;color:#ffbdaf;letter-spacing:2.25px}.kicker span{color:#ffe0ac;margin-right:7px}.intro h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(27px,2.65vw,42px);font-weight:500;line-height:1.06;letter-spacing:-.9px;margin:5px 0 7px;color:#fff3e7}.intro h1 em{font-style:italic;color:#ffab9d}.intro p{font-size:12px;line-height:1.4;max-width:690px;color:#f2c9c9;margin:0}.hero-hint{margin-top:9px;color:#ffe3ce;font-size:10px;font-weight:650;letter-spacing:.25px}.hero-hint span{font-size:16px;color:#ff6f7e;vertical-align:-1px;margin-right:4px}.love-art{position:relative;display:flex;justify-content:center;align-items:center;align-self:stretch;min-height:0}.love-art svg{width:100%;height:100%;max-height:140px;filter:drop-shadow(0 0 12px #ff577b50)}.art-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#efbcae;font-size:8px;letter-spacing:2.2px;font-weight:800}
.methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;min-height:0}.methods button{display:flex;align-items:center;text-align:left;min-width:0;gap:13px;border:1px solid #ee9b9e47;border-radius:13px;padding:8px 16px;background:linear-gradient(130deg,#25101edb,#361428d0);color:#fff1e8;box-shadow:inset 0 1px 0 #ffffff0a;transition:border-color .2s,background .2s,transform .2s}.methods button:hover{border-color:#ffb3ab;transform:translateY(-1px)}.methods button[aria-selected="true"]{border-color:#ffbf9a;background:linear-gradient(120deg,#a82f4c,#5d2039 66%,#3f1b30);box-shadow:0 0 0 1px #ffc3af22,inset 0 0 25px #ff556521}.method-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:#ffabb01c;border:1px solid #ffc5a064;color:#ffcaaf;font:29px Georgia,serif}.method-copy{display:flex;flex-direction:column;min-width:0;gap:4px}.methods strong{font-size:14px;font-weight:800;letter-spacing:.2px;white-space:nowrap}.methods small{font-size:10px;color:#eabfc1;line-height:1.2}.method-arrow{font-size:18px;color:#ffbead;margin-left:auto;opacity:.6}
.workspace{min-height:0;display:grid;grid-template-columns:minmax(450px,.95fr) minmax(450px,1.05fr);gap:12px}.panel{min-width:0;min-height:0;border-radius:15px;background:linear-gradient(145deg,#261320eb,#170d19ed);border:1px solid #e6a3a33d;padding:14px 17px;box-shadow:0 10px 30px #0004;overflow:hidden}.entry,.result{display:flex;flex-direction:column}.sectHead{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:45px}.sectHead h2{font:normal clamp(18px,1.45vw,22px)/1.2 Georgia,serif;color:#fff0e8;margin:4px 0 0}.step-number{font:800 10px 'Segoe UI',sans-serif;display:inline-grid;place-items:center;margin-right:7px;width:22px;height:22px;color:#fff2d7;border-radius:50%;background:#a6324c;border:1px solid #e7ab96}.guidance{font-size:11px;line-height:1.35;color:#e3c8cd;margin:5px 0 10px}.entry #compareForm{display:flex;flex:1;flex-direction:column;min-height:0}.people{display:grid;grid-template-columns:1fr 1fr;gap:11px;align-items:start}.people fieldset{border:1px solid #eda39b36;border-radius:11px;margin:0;padding:9px 11px 6px;min-width:0;background:linear-gradient(145deg,#3a1827a8,#1a0b17a8)}.people legend{font-size:11px;font-weight:800;color:#ffe5d3;letter-spacing:.6px;padding:0 5px}.person-orb{font:22px Georgia,serif;color:#ff8594;margin-right:5px;vertical-align:-3px}.person-orb.second{color:#ffd29d}.people label{display:block;margin:6px 0;font-size:10px;font-weight:750;color:#eacbd0}.people label small{font-size:9px;font-weight:500;color:#b7a0ab}.people input{display:block;width:100%;min-width:0;height:32px;margin-top:5px;padding:6px 9px;background:#120b17;border:1px solid #a06c7d66;border-radius:6px;color:#fff3ea;font-size:11px;color-scheme:dark}.people input:focus{outline:2px solid #ffa5a5;outline-offset:1px;border-color:#e5a598}.locationDetails{margin:9px 0 3px;border:1px solid #ab77874d;background:#1d0f1bb0;border-radius:8px;padding:8px}.locationDetails summary{cursor:pointer;list-style:none;font-size:10px;color:#ffcfb8;font-weight:700;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.locationDetails summary::-webkit-details-marker{display:none}.locationDetails summary::after{content:'+';font-size:15px;margin-left:auto;color:#ffb19d}.locationDetails[open] summary::after{content:'−'}.locationDetails summary>span{font-size:14px}.locationDetails summary small{color:#cc9faa;font-size:9px;font-weight:500}.locationDetails[open]{padding-bottom:8px}.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.help{margin:8px 0 2px;padding:3px 0;font-size:10px;color:#c8acb9}.help summary{cursor:pointer;color:#e8bbbc}.help p{max-width:650px;font-size:10px;line-height:1.45;margin:5px 0 0}.actions{display:flex;gap:8px;margin-top:auto;padding-top:9px}.primary{flex:1;min-height:39px;border:1px solid #ffbea0;border-radius:9px;background:linear-gradient(115deg,#e04d62,#b52a49 60%,#8e2648);box-shadow:0 5px 18px #f5334430;color:#fff9ee;font-size:12px;font-weight:850;letter-spacing:.15px}.primary span{margin-left:8px}.primary:hover{filter:brightness(1.1)}.primary:disabled{opacity:.6;cursor:wait}#trySample,#clear{border:1px solid #dda9a46e;background:#422437;color:#ffded4;border-radius:8px;padding:8px 10px;font-weight:750;font-size:10px;white-space:nowrap}#trySample:hover,#clear:hover{background:#643042}.message{min-height:15px;margin-top:6px;font-size:10px;color:#ffcab4;line-height:1.3}
.result .wheel{flex:1;min-height:100px;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:radial-gradient(ellipse at 50% 30%,#5d213b 0%,#281327 44%,#160b18 77%);border:1px solid #edb2aa40;margin-top:8px}.wheel svg{display:block;width:100%;height:100%;max-width:440px;max-height:100%}.wheelEmpty{text-align:center;padding:10px}.wheelGlyph{font:94px Georgia,serif;color:#ff859b;line-height:1;text-shadow:0 0 35px #ff647355;animation:heartGlow 3s ease-in-out infinite}.wheelEmpty p{font:normal 21px Georgia,serif;color:#fff0e4;margin:0 0 5px}.wheelEmpty span{color:#d3a9b8;font-size:11px}@keyframes heartGlow{50%{text-shadow:0 0 38px #ff5a85b0;transform:scale(1.04)}}.insight{border-left:2px solid #f28b93;background:#8e395035;color:#f1cbd0;font-size:11px;line-height:1.38;margin-top:9px;padding:8px 10px}.stats{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.stats span{border:1px solid #cc8a8a77;border-radius:40px;color:#ffdad3;font-size:9px;padding:5px 8px}.resultActions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.detailButton{border:1px solid #ffa9a363;color:#ffe4d6;background:#522137b3;border-radius:7px;padding:7px 10px;font-size:10px;font-weight:800}.detailButton:hover{background:#792d49}.detailButton span{margin-left:5px}.methodHint{color:#be9ba6;font-size:9px}.status{border:1px solid #ab6f7e;color:#e7b0b8;padding:5px 8px;white-space:nowrap;font-size:8px;letter-spacing:.8px;border-radius:40px}.status.ready{border-color:#85ae98;color:#c5f3d4}
footer{height:22px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;color:#bd9da9;white-space:nowrap}footer a{font-size:10px;font-weight:800;color:#ffbeaf;text-decoration:none;letter-spacing:1px}dialog{width:min(740px,90vw);max-height:85vh;padding:0;border:1px solid #ffab9e8c;border-radius:16px;background:linear-gradient(145deg,#341423,#160b19);color:#fff2eb;box-shadow:0 25px 90px #000c}dialog::backdrop{background:#080309bd;backdrop-filter:blur(7px)}.dialogTop{display:flex;justify-content:space-between;align-items:center;padding:19px 24px;border-bottom:1px solid #ffbaa249}.dialogTop h2{font:normal 26px Georgia,serif;margin:5px 0 0}.dialogTop button{color:#ffced1;background:#512036;border:1px solid #df82916f;border-radius:50%;width:32px;height:32px}.dialogBody{padding:14px 24px 24px;max-height:calc(85vh - 90px);overflow:auto}.dialogBody>p{font-size:12px;color:#ebc4c8;line-height:1.55}.tableWrap{margin-top:15px}.tableWrap h3{font:normal 18px Georgia,serif;color:#ffdfd3}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}th{color:#ffc5a4}td{color:#e6c6d0}td,th{padding:8px 6px;border-bottom:1px solid #ffa6a437}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #ffd4a5;outline-offset:3px}
@media (min-width:1080px) and (min-height:690px){html,body{height:100%;overflow:hidden}.main{height:calc(100dvh - 52px);overflow:hidden}}
@media (min-width:1080px) and (max-height:770px){.main{grid-template-rows:95px 65px minmax(0,1fr) 20px;gap:7px}.intro{padding:7px 22px}.intro h1{font-size:28px}.intro p{font-size:11px}.hero-hint{margin-top:5px}.love-art svg{max-height:100px}.methods button{padding:5px 12px}.method-icon{height:33px;width:33px;flex-basis:33px;font-size:24px}.methods strong{font-size:13px}.methods small{font-size:9px}.panel{padding:9px 12px}.sectHead{min-height:38px}.sectHead h2{font-size:18px}.people fieldset{padding:6px 8px 3px}.people label{margin:4px 0}.people input{height:28px;margin-top:3px}.guidance{margin:2px 0 6px}.locationDetails{margin:6px 0 3px;padding:6px}.primary{min-height:34px}}
@media (max-width:1079px){.main{grid-template-rows:auto auto auto auto;overflow:visible;gap:12px}.workspace{grid-template-columns:1fr}.intro{min-height:150px}.panel{padding:18px}.entry #compareForm{min-height:260px}.result .wheel{min-height:300px}.wheel svg{max-height:385px}.main,body{height:auto;min-height:100%}}
@media (max-width:680px){.topline{height:48px;padding:0 13px}.brand{font-size:9px;letter-spacing:.6px}.brand-sep,.brand strong,.preview{display:none}.home{font-size:9px;letter-spacing:.2px}.main{padding:11px 12px 16px}.intro{grid-template-columns:1fr;padding:19px 16px;min-height:185px}.intro h1{font-size:30px}.intro p{font-size:12px;line-height:1.4}.love-art{position:absolute;right:-65px;top:-36px;width:180px;height:140px;opacity:.35}.art-caption{display:none}.hero-copy{position:relative;z-index:1}.methods{grid-template-columns:1fr;gap:7px}.methods button{min-height:66px}.workspace{display:block}.panel{margin-bottom:11px;padding:13px}.sectHead h2{font-size:20px}.people{grid-template-columns:1fr;gap:13px}.people label{font-size:11px}.people input{height:38px}.result .wheel{min-height:250px}.resultActions{flex-wrap:wrap}.methodHint{display:none}footer{flex-direction:column;align-items:flex-start;height:auto;gap:7px;white-space:normal;padding:5px}.dialogBody{padding:12px 15px}.dialogTop{padding:14px 15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Apply the romantic heart emblem even when the original JS resets the empty illustration. */
.wheelEmpty .wheelGlyph{font-size:0}.wheelEmpty .wheelGlyph::before{content:'♡';font:normal 92px/1 Georgia,serif;color:#ff859b}


/* V3: More room for the words, less header chrome, and a complementary
   midnight-teal/indigo palette. No calculation or interaction changes. */
@media (min-width:1080px) and (min-height:690px) {
  .topline { height:42px; padding-inline:clamp(15px,2vw,32px); }
  .main { height:calc(100dvh - 42px); padding-top:9px; padding-bottom:6px;
          grid-template-rows:138px 68px minmax(0,1fr) 20px; gap:7px; }
  .intro { padding:10px 25px; grid-template-columns:minmax(0,1fr) 260px; }
  .intro h1 { font-size:clamp(28px,2.35vw,38px); line-height:1.12; margin:5px 0 7px; }
  .intro p { font-size:11.5px; line-height:1.32; }
  .hero-hint { margin-top:6px; }
  .love-art svg { max-height:127px; }
  .methods button { padding:7px 14px; }
  .method-icon { width:38px; height:38px; flex-basis:38px; }
  .panel { padding:11px 14px; }
  .sectHead { min-height:42px; }
  .people fieldset { padding:7px 9px 4px; }
  .people label { margin:4px 0; }
  .people input { height:30px; margin-top:4px; }
  .locationDetails { margin:6px 0 2px; padding:7px; }
  .guidance { margin:3px 0 7px; }
  .actions { padding-top:7px; }
  .primary { min-height:35px; }
  .help { margin:5px 0 1px; }
  .result .wheel { margin-top:6px; }
  .insight { margin-top:6px; }
  .resultActions { margin-top:6px; }
  footer { height:20px; }
  .entry:has(.locationDetails[open]), .entry:has(.help[open]) { overflow-y:auto; scrollbar-width:thin; scrollbar-color:#b78973 #171627; }
}
@media (min-width:1080px) and (min-height:690px) and (max-height:750px) {
  .main { grid-template-rows:126px 62px minmax(0,1fr) 18px; gap:6px; }
  .intro h1 { font-size:30px; }
  .intro p { font-size:10.5px; }
  .hero-hint { font-size:9px; }
  .intro { padding-block:7px; }
  .love-art svg { max-height:110px; }
  .methods strong { font-size:12px; }
  .methods small { font-size:9px; }
  .panel { padding:8px 11px; }
  .sectHead { min-height:38px; }
  .sectHead h2 { font-size:18px; }
  .guidance { font-size:10px; margin:2px 0 5px; }
  .people label { margin:3px 0; }
  .people input { height:27px; }
}
/* Slim header: clear navigation and the brand, without competing banners. */
.topline { justify-content:space-between; border-bottom-color:#6ab9be26; background:linear-gradient(90deg,#100f1b,#101a26 62%,#17111d); }
.brand { font-size:10px; letter-spacing:1.9px; color:#e8c8b1; }
.brand-heart { color:#f7a7af; }
/* Midnight blue and peacock teal give the rose and crimson space to shine. */
body { background:radial-gradient(ellipse at 90% -15%,#1745577a 0%,transparent 43%),
                   radial-gradient(ellipse at 1% 96%,#421c3a 0%,transparent 49%),
                   linear-gradient(140deg,#180d20 0%,#0c1927 56%,#23101d 100%); }
.intro { background:linear-gradient(105deg,#4b1730f0 0%,#321c32ed 52%,#153c49e8 100%);
         border-color:#e6b39a73; box-shadow:0 8px 36px #0005,inset 0 0 55px #64b9ba0e; }
.intro::before { background:#66d4cf2c; right:11%; filter:blur(46px); }
.kicker { color:#ffe0ad; }
.hero-hint { color:#cbe5db; }
.hero-hint span { color:#fbaab2; }
.love-art svg { filter:drop-shadow(0 0 12px #77d0c134); }
.art-caption { color:#b2e3df; }
.methods button:nth-child(2) { background:linear-gradient(125deg,#142e3b,#1d253c 65%,#241a35); border-color:#68b9ba75; }
.methods button:nth-child(3) { background:linear-gradient(125deg,#201a32,#1a263b 85%); border-color:#9292ce53; }
.methods button:nth-child(2) .method-icon { background:#3b93961a; border-color:#64c6c795; color:#b7f2e7; }
.methods button:nth-child(3) .method-icon { background:#8f85c519; border-color:#aa9de285; color:#ded6ff; }
.methods button[aria-selected="true"] { border-color:#ffd0aa; background:linear-gradient(120deg,#9f2e4c,#61233a 70%,#3d2439); }
.methods button:nth-child(2)[aria-selected="true"] { background:linear-gradient(120deg,#156b75,#23485c,#28304b); border-color:#a6f2df; }
.methods button:nth-child(3)[aria-selected="true"] { background:linear-gradient(120deg,#51417e,#343459,#222b48); border-color:#d7c6f5; }
.result { background:linear-gradient(150deg,#132734,#121e2f 56%,#161728); border-color:#6eb2b375; }
.result .wheel { background:radial-gradient(ellipse at 55% 37%,#244e57 0%,#172736 46%,#0c1526 86%); border-color:#78cbcb55; }
.result .insight { border-left-color:#92d9cb; background:#17465145; color:#d2e9e6; }
.result .status { border-color:#83b8ae; color:#b7dacf; }
.result .status.ready { border-color:#84d9b0; color:#cff7dd; }
.detailButton { background:#173948c4; border-color:#70c7bd76; color:#d9f4eb; }
.detailButton:hover { background:#255765; }
.detailButton:focus-visible { outline-color:#a9eae2; }
.people fieldset:nth-child(2) { background:linear-gradient(145deg,#2530439c,#181827ac); border-color:#7fa1c354; }
.people fieldset:nth-child(2) .locationDetails { background:#1a2234; border-color:#78b6bd54; }
footer a { color:#e8cbb5; }
@media (max-width:1079px) {
  .intro { min-height:180px; padding-top:18px; padding-bottom:18px; }
  .topline { justify-content:space-between; }
  .main { overflow:visible; }
}
@media (max-width:680px) {
  .intro { min-height:200px; }
  .intro h1 { font-size:clamp(26px,7.2vw,33px); }
  .hero-hint { display:block; }
  .brand { font-size:9px; }
}
