:root {
  --paper: #f9f7f2;
  --cream: #f1e9e1;
  --outfit-bg: #eee5de;
  --ink: #2a2522;
  --copper: #b8735a;
  --muted: #7a726d;
  --line: #e8e2d9;
  --red: #c4554f;
  --green: #648b65;
  --blue: #5279a1;
  --serif: Georgia, "Noto Serif TC", serif;
  --sans: "Noto Sans TC", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.app-shell { width: min(920px, calc(100% - 48px)); margin: auto; padding-bottom: 72px; }
.site-header { min-height: 82px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.brand-logo { width: 154px; height: 58px; overflow: hidden; display: block; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); }
.site-header p, .intro > p { margin: 0; color: var(--muted); font: 11px var(--mono); letter-spacing: .14em; }
.intro { text-align: center; padding: 67px 0 37px; }
.intro h1 { margin: 13px 0 0; font: 900 clamp(42px, 6vw, 72px)/1.08 "PingFang TC", "Noto Sans TC", var(--sans); letter-spacing: -.07em; }
.draw-panel { width: min(100%, 650px); margin: auto; text-align: center; }
.chooser { padding: 37px 32px 31px; border: 1px solid var(--line); background: linear-gradient(135deg, #fbf9f5, #f4ede6); box-shadow: 0 13px 30px rgba(76, 56, 43, .07); }
.chooser h2 { margin: 0; font: 400 clamp(27px, 4vw, 38px)/1.25 var(--serif); letter-spacing: -.04em; }
.chooser > p { margin: 19px 0 0; color: var(--muted); font-size: 14px; }
.choice-row { display: flex; justify-content: center; gap: 18px; margin: 30px auto 0; }
.choice-card { position: relative; width: min(27vw, 156px); aspect-ratio: 2/3; border: 1px solid #d4bdab; border-radius: 6px; background: #f7eee4; box-shadow: 0 8px 0 #e8dbcf, 0 16px 25px rgba(83, 56, 37, .11); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.choice-card::before { position: absolute; inset: 8px; border: 1px solid #ddc9b8; border-radius: 3px; content: ""; }
.choice-card::after { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(184, 115, 90, .035) 10px 11px); content: ""; }
.choice-card:hover { transform: translateY(-9px) rotate(-1deg); box-shadow: 0 12px 0 #e8dbcf, 0 24px 31px rgba(83, 56, 37, .17); }
.choice-card:nth-child(2):hover { transform: translateY(-11px); }
.choice-card:nth-child(3):hover { transform: translateY(-9px) rotate(1deg); }
.choice-card.is-picked { transform: translateY(-13px) scale(1.03); box-shadow: 0 14px 0 #e8dbcf, 0 25px 32px rgba(83, 56, 37, .2); }
.card-logo { position: absolute; top: 50%; left: 50%; z-index: 2; width: 86%; height: 45%; object-fit: cover; object-position: center; transform: translate(-50%, -50%) scale(1.12); }
.card-star { position: absolute; top: 18%; left: 50%; z-index: 3; color: var(--copper); font-size: 15px; transform: translateX(-50%); }
.outfit-frame { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; background: var(--outfit-bg); box-shadow: 0 13px 30px rgba(76, 56, 43, .07); }
.outfit-frame::after, .guide-copy::after { position: absolute; right: 0; bottom: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--red) 0 33.333%, var(--green) 33.333% 66.666%, var(--blue) 66.666%); content: ""; }
.outfit-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-copy { position: relative; margin: 0; padding: 27px 22px 31px; background: #f4ede6; }
.guide-copy > p:first-child { margin: 0 0 9px; color: var(--copper); font: 11px var(--mono); letter-spacing: .16em; }
.guide-copy h2 { margin: 0; font: 400 31px var(--serif); letter-spacing: -.04em; }
.guide-copy #guideText { margin: 11px 0 0; font-size: 16px; line-height: 1.8; }
.draw-button, .download-button { width: 100%; border: 0; padding: 17px; color: #fff; font-size: 15px; transition: background .2s ease, transform .2s ease; }
.draw-button { margin-top: 24px; background: var(--copper); }
.download-button { margin-top: 10px; background: var(--ink); }
.draw-button:hover, .download-button:hover { background: #443832; transform: translateY(-2px); }
@media (max-width: 600px) {
  .app-shell { width: min(100% - 28px, 520px); }
  .site-header { min-height: 58px; }
  .brand-logo { width: 127px; height: 48px; }
  .site-header p { font-size: 10px; }
  .intro { padding: 42px 0 27px; }
  .guide-copy h2 { font-size: 27px; }
  .guide-copy #guideText { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
