
:root{--bg:#10131e;--panel:#1b2030;--gold:#e6c78b;--muted:#a3a9bc;--purple:#b1a1eb}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#34304b 0,#10131e 55%);color:#f7f3eb;font-family:system-ui,-apple-system,'Hiragino Sans',sans-serif;line-height:1.7;min-height:100vh}button{font:inherit;cursor:pointer}main{max-width:650px;margin:auto;padding:22px 18px 60px}header{display:flex;justify-content:space-between;align-items:center;font-family:Georgia,serif;letter-spacing:.15em;color:var(--gold);font-size:13px}small,.muted{color:var(--muted)}.hero{text-align:center;padding:38px 0 20px}.sigil{width:145px;height:145px;margin:auto;display:block;filter:drop-shadow(0 0 18px #a28dd366)}h1,h2,h3,p{margin:0 0 14px}h1{font-size:clamp(30px,7vw,46px);line-height:1.35;letter-spacing:.035em}h2{font-size:24px;line-height:1.5}h3{font-size:17px} .eyebrow{font-size:11px;letter-spacing:.22em;color:var(--gold);text-transform:uppercase}.gold{color:var(--gold)}.panel{background:linear-gradient(145deg,#222738,#181c2a);border:1px solid #ffffff18;border-radius:20px;padding:22px;margin:15px 0}.primary{width:100%;border:0;background:linear-gradient(110deg,#f1d6a0,#c7a566);color:#211c16;padding:16px;border-radius:12px;font-weight:800}.secondary{width:100%;background:transparent;border:1px solid #ffffff32;color:#eee;padding:12px;border-radius:10px;margin-top:10px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tile{border:1px solid #ffffff15;border-radius:12px;padding:13px;background:#ffffff05}.tile strong{display:block;font-size:18px}.tile small{font-size:11px}.line{height:5px;background:#ffffff14;border-radius:9px;overflow:hidden;margin:8px 0 22px}.line span{display:block;height:100%;background:var(--gold);transition:width .2s}.choice{display:block;width:100%;text-align:left;background:#222738;color:#f7f3eb;border:1px solid #ffffff20;padding:15px;margin:9px 0;border-radius:12px}.choice:hover,.choice:focus{border-color:var(--gold);background:#353348}.center{text-align:center}.back{border:0;background:none;color:var(--muted);padding:8px 0}.axis{margin:14px 0}.axis-label{display:flex;justify-content:space-between;font-size:12px}.axisbar{height:9px;border-radius:10px;background:#655a89;overflow:hidden}.axisbar span{display:block;background:#e2c58d;height:100%}.result-title{font-size:34px;color:var(--gold);line-height:1.3}.code{letter-spacing:.18em;color:var(--purple);font-family:monospace;font-size:18px}.price{float:right;color:var(--gold);font-weight:bold}.product{border-top:1px solid #ffffff18;padding:16px 0}.product button{margin-top:8px}.chapter{padding:15px 0;border-bottom:1px solid #ffffff15}.notice{font-size:12px;color:#aaaec2}.tag{display:inline-block;border:1px solid #d9bb7866;padding:3px 10px;border-radius:40px;color:var(--gold);font-size:12px}.hidden{display:none}footer{text-align:center;font-size:11px;color:#8f95a9;margin-top:30px}a{color:var(--gold)}@media(max-width:360px){.panel{padding:15px}}

body{background:radial-gradient(ellipse at top,#302443,#10121f 62%);background-attachment:fixed}main{padding:18px 16px 48px}header{border-bottom:1px solid #c7a66a44;padding:8px 0 16px}.hero{padding:25px 0 12px}.hero-art{width:100%;height:210px;object-fit:cover;border-radius:12px;border:1px solid #d5b57a66;box-shadow:0 8px 36px #0005;margin-bottom:18px}.hero h1,.result-title{font-family:Georgia,'Yu Mincho','Hiragino Mincho ProN',serif;font-weight:700}.panel{border:1px solid #c7a66a44;background:linear-gradient(145deg,#27243b,#171927);border-radius:14px;box-shadow:0 8px 24px #0003}.tile{border-color:#c7a66a33;background:#0b0c181f}.tile strong{color:#f2d8a2}.primary{box-shadow:0 4px 20px #d3ae5533;border:1px solid #ffe8b1}.choice{border-color:#a88c583b;background:linear-gradient(110deg,#25243a,#1b1d2b);padding:18px 15px}.art-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:16px 0}.art-grid img{width:100%;aspect-ratio:1;object-fit:cover;border:1px solid #c7a66a66;border-radius:7px}.portrait{width:100%;max-width:410px;aspect-ratio:1;object-fit:cover;border-radius:12px;border:1px solid #e6c78b88;box-shadow:0 0 35px #8e6bcc33;margin:12px auto;display:block}.quiz-art{width:100%;height:100px;object-fit:cover;border-radius:9px;margin-bottom:14px;opacity:.85}.product{position:relative;padding-left:0}.product-art{width:72px;height:72px;object-fit:cover;float:left;margin:0 12px 8px 0;border-radius:7px;border:1px solid #c7a66a55}.product button{clear:both}.chapter{line-height:1.9}.sigil{width:85px;height:85px}.eyebrow{letter-spacing:.18em}.axisbar{height:7px}.tag{background:#151421aa}

.hero-art { display: block; height: clamp(144px, 46vw, 250px); }
.start-meta { color: var(--gold); font-size: 13px; margin: 12px 0; }
.start-button { max-width: 400px; }
.gallery-title { font-size: clamp(17px, 5vw, 22px); text-align: center; }
button:focus-visible, a:focus-visible { outline: 2px solid #f1d6a0; outline-offset: 3px; }
h1:focus, h2:focus { outline: none; }
.choice[aria-pressed="true"] { border-color: var(--gold); background: #353348; }
.back { min-height: 44px; }
.tile, .tile strong { min-width: 0; overflow-wrap: anywhere; }
.result-actions { margin-top: 27px; text-align: center; }
.result-actions .primary:disabled { opacity: .65; cursor: wait; }
.share-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
#share-status { margin-bottom: 0; }
.product { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 2px 9px; align-items: start; }
.product-art { width: 54px; height: 54px; grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.product strong { grid-column: 2; grid-row: 1; }
.product .price { grid-column: 3; grid-row: 1; white-space: nowrap; }
.product p { grid-column: 2 / 4; grid-row: 2; margin: 0; }
.product button { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .line span { transition: none; } }

.art-grid img { display: block; height: auto; }
.quiz-intro { margin-top: 38px; }
#share-status:empty { min-height: 0; }
@media (max-width: 430px) {
  .tile strong { font-size: 16px; line-height: 1.5; }
  .quiz-intro { margin-top: 22px; }
  .quiz-panel h2 { font-size: 21px; }
  .quiz-panel .choice { padding: 12px; min-height: 46px; }
}
@media (max-width: 360px) {
  .home-hero { padding-top: 17px; }
  .home-hero h1 { font-size: 26px; letter-spacing: 0; }
  .home-hero .hero-art { height: 132px; margin-bottom: 12px; }
  .home-hero .eyebrow { margin-bottom: 8px; }
  .home-hero .muted { font-size: 13px; }
  .home-hero .primary { padding: 12px; }
}
@media (max-width: 430px) and (max-height: 700px) {
  .quiz-panel .quiz-art { display: none; }
}
