:root{color-scheme:light;--paper:#f9f6f0;--ink:#35232a;--muted:#6f5e61;--wine:#742c44;--line:#e3d9d3;--cream:#fff9ed;--font:"Inter","Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.53 var(--font);letter-spacing:.035em;word-spacing:.055em}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #986120;outline-offset:4px}
button:disabled{opacity:.55;cursor:default}
header{background:#fbf9f4;border-bottom:1px solid var(--line)}
.header-inner,main,footer{width:min(1240px,calc(100% - 7.6vw));margin:auto}
.header-inner{min-height:83px;display:flex;align-items:center;gap:42px}
.brand{display:flex;align-items:center;gap:7px;font-weight:790;letter-spacing:-.06em;font-size:2rem;padding:0;color:#69253b}
.brand img{width:43px;height:43px}
nav{display:flex;align-items:center;gap:5px}
.nav-btn,.profile,.text-btn,.pill,.primary,.light-btn,.outline-btn,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:11px;font-weight:630;line-height:1.35;padding:10px 15px}
.nav-btn{font-size:1rem;color:#6b5b60;min-height:43px}
.nav-btn[aria-current=page]{background:#efe1e1;color:var(--wine)}
.nav-btn:hover,.profile:hover,.text-btn:hover,.quiet:hover{background:#eee6de}
.profile{margin-left:auto;background:#fffaf4;border:1px solid var(--line);border-radius:100px;min-height:40px;padding:6px 13px 6px 7px;font-size:1rem;max-width:240px}
.profile span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar{display:grid;place-items:center;background:#ead4d7;color:#70283e;width:30px;height:30px;border-radius:50%;flex:none}
.ic{width:21px;height:21px;flex:none;display:inline-block;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
main{min-height:65vh;padding:34px 0 30px}
h1,h2,h3,p{margin:0}
h1,h2,h3,.brand,.hero-title,.amount{word-spacing:normal}
h1{font-size:clamp(2rem,3.2vw,2.75rem);letter-spacing:-.055em;line-height:1.17;font-weight:730}
h2{font-size:clamp(1.5rem,2.3vw,1.95rem);letter-spacing:-.043em;line-height:1.18;font-weight:700}
h3{font-size:1.23rem;letter-spacing:-.02em;line-height:1.25}
.heading,.section-heading,.row,.split,.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.heading,.section-heading,.split{justify-content:space-between}
.heading{margin-bottom:22px}
.heading p,.lede{color:var(--muted);margin-top:8px;max-width:66ch}
.text-btn,.quiet{padding:8px 10px;color:var(--wine);font-size:1rem}
.hero-grid{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(265px,1fr);gap:20px}
.hero,.wallet,.tile,.paper,.collect-card,.prompt-card{border-radius:22px;position:relative}
.hero{isolation:isolate;overflow:hidden;min-height:334px;background:#340714;color:#fff8ed;display:flex;align-items:center}
.hero::before{content:"";position:absolute;inset:0 0 0 17%;z-index:-2;background:url("/assets/des-velours.jpg") 72% 52% /cover no-repeat}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#420e20 1%,#420e20fa 17%,#400c1eec 30%,#3b0919b5 44%,#38091813 69%,transparent)}
.hero-copy{padding:29px clamp(23px,3.2vw,44px);width:min(61%,480px)}
.hero-kicker,.kicker{display:flex;align-items:center;gap:8px;font-size:1rem;font-weight:620;line-height:1.3;color:var(--muted)}
.hero-kicker{color:#f2cbd2}
.hero-title{font-size:clamp(2.5rem,4.15vw,3.9rem);line-height:1.01;letter-spacing:-.05em;font-weight:700;margin:14px 0 10px}
.hero-copy p{max-width:31ch;line-height:1.45;color:#f6dee0}
.light-btn,.primary,.outline-btn{min-height:45px;padding:11px 17px}
.light-btn{background:#fff2de;color:#49162a;margin-top:21px}
.light-btn:hover{background:#fff9ef}
.primary{color:#fff9ef;background:var(--wine)}
.primary:hover{background:#5c2034}
.outline-btn{border:1px solid #cdb9ba;color:#702d43;background:#fffbf5}
.outline-btn:hover{background:#f4e8e4}
.wallet{isolation:isolate;overflow:hidden;border:1px solid #dec7c6;background:radial-gradient(ellipse at 108% 15%,#f5cfd2,transparent 54%),linear-gradient(143deg,#f9e9e5,#f8eee6);padding:26px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}
.wallet::before,.wallet::after{content:"";position:absolute;z-index:-1;border:1px solid #bc778338;width:165px;height:245px;border-radius:24px;right:-103px;top:-78px;transform:rotate(34deg)}
.wallet::after{right:-85px;top:-74px}
.wallet h2{font-size:1.28rem;letter-spacing:-.023em;display:flex;align-items:center;gap:8px}
.wallet .tally{display:flex;align-items:center;gap:19px;margin:6px 0 0}
.amount{font-size:3.7rem;line-height:1.05;letter-spacing:-.06em;font-weight:710;color:#662739}
.coin{position:relative;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;transform:rotate(-14deg);background:linear-gradient(125deg,#ffeded,#cf7e92);border:2px solid #bb7485;box-shadow:2px 3px 0 #ac6071,inset 0 0 0 4px #f8cdd1,inset 0 0 0 5px #cc8a9b;color:#9c455e}
.coin .ic{height:26px;width:26px;fill:currentColor}
.wallet p{font-size:1.0625rem;line-height:1.45;color:#6f535b;max-width:29ch}
.meter-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:1rem;font-weight:620;color:#6b3846}
progress{appearance:none;width:100%;height:7px;display:block;margin:10px 0 0;background:#e3caca;border:0;border-radius:10px;overflow:hidden}
progress::-webkit-progress-bar{background:#e3caca}progress::-webkit-progress-value{background:#8d3c54;border-radius:8px}progress::-moz-progress-bar{background:#8d3c54}
.section-heading{margin:31px 0 14px}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tile{isolation:isolate;min-height:177px;text-align:left;padding:20px 23px;overflow:hidden;border:1px solid var(--edge);background:var(--tint);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;transition:transform .18s,box-shadow .18s}
.tile:hover{transform:translateY(-3px);box-shadow:0 8px 18px #42243010}
.tile.one{--tint:#eee6f0;--edge:#dfd0e2;--accent:#765575}
.tile.two{--tint:#f7e7e5;--edge:#e8d1d0;--accent:#a14f62}
.tile.three{--tint:#f4ead6;--edge:#e5d8bf;--accent:#986526}
.tile h3{font-size:1.38rem;position:relative;margin:48px 0 4px}
.tile p{color:#695a5b;line-height:1.4;font-size:1.0625rem}
.tile-icon{position:absolute;left:23px;top:20px;width:32px;height:32px;color:var(--accent);display:grid;place-items:center;border-radius:9px;background:#fff7}
.tile .art{position:absolute;top:10px;right:20px;width:105px;height:77px;z-index:-1;pointer-events:none;transform:rotate(-6deg)}
.art .star{position:absolute;color:var(--accent);font-size:20px;top:0;left:4px}
.art .star.b{left:auto;top:46px;right:0;font-size:15px}
.playing{position:absolute;width:38px;height:51px;border:1.6px solid #78546f;background:#bba1c0;border-radius:5px;left:28px;top:14px;transform:rotate(-21deg);box-shadow:2px 2px 0 #67466127}
.playing.front{left:44px;top:13px;transform:rotate(13deg);display:grid;place-items:center;color:#884b6a;background:#f8e8e1}
.playing.front:before,.playing.front:after{content:"♦";position:absolute;font-size:8px;line-height:1;left:3px;top:2px}
.playing.front:after{inset:auto 3px 2px auto}
.envelope{position:absolute;border:1.6px solid #98576a;background:linear-gradient(35deg,#e3a8b1 49%,#bd7989 50%,#dfa7ad 52%);width:65px;height:41px;left:24px;top:29px;transform:rotate(9deg);border-radius:4px;box-shadow:2px 3px 0 #95576323}
.letter{position:absolute;background:#fff2dd;border:1.5px solid #a25b70;width:47px;height:34px;left:37px;top:13px;transform:rotate(5deg);border-radius:3px;color:#ab5262;line-height:28px;text-align:center}
.flap{position:absolute;inset:0;background:#f1c5c5;clip-path:polygon(0 0,100% 0,50% 66%)}
.giftbox{position:absolute;left:30px;top:31px;width:52px;height:34px;border:1.6px solid #8d6448;border-radius:3px;background:linear-gradient(90deg,#eec485 39%,#b46359 40% 57%,#eec485 58%);box-shadow:2px 3px 0 #95576323}
.giftbox:before{content:"";position:absolute;inset:-7px -4px auto;height:9px;border:1.5px solid #8d6448;border-radius:2px;background:linear-gradient(90deg,#f5d397 39%,#ba685c 40% 57%,#f5d397 58%)}
.bow{width:21px;height:14px;border:3px solid #ad5d53;border-radius:80% 70% 15% 70%;position:absolute;left:35px;top:13px;transform:rotate(20deg)}
.bow.right{left:52px;transform:scaleX(-1) rotate(20deg)}
.paper,.collect-card{background:#fffcf7;border:1px solid var(--line);padding:21px 23px}
.empty{display:flex;align-items:center;gap:17px}
.round-icon{display:grid;place-items:center;flex:none;width:45px;height:45px;border-radius:15px;background:#f2e8e5;color:#874156}
.empty p,.collect-card p,.muted{color:var(--muted)}
.empty strong{display:block}
.empty .text-btn{margin-left:auto}
footer{display:flex;align-items:center;gap:15px;border-top:1px solid var(--line);padding:20px 0 30px;color:var(--muted);font-size:1rem}
footer button{margin-left:auto;color:var(--wine)}
.foot-brand{font-weight:750;color:var(--wine);letter-spacing:-.04em}
.panel-grid,.cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.collect-card{display:flex;flex-direction:column;gap:13px;align-items:flex-start;overflow-wrap:anywhere}
.collect-card h3{font-size:1.24rem;line-height:1.45}
.collect-card .actions{margin-top:auto}
.kicker{color:#865467}
.pill{font-size:1rem;background:#f1e5e6;color:#743e50;padding:4px 10px;min-height:30px}
.block{display:grid;gap:13px}
.block + .block{margin-top:20px}
.stack{display:grid;gap:12px}
form,.dialog-content{display:grid;gap:17px}
label{display:grid;gap:6px;font-weight:620}
label[hidden]{display:none}
.level-picker{display:grid;gap:6px;padding:14px 16px;border:1px solid #dfc6ce;background:#f6eaf0;border-radius:14px}
.collect-card details summary{color:var(--wine);font-weight:620;cursor:pointer}
.collect-card details p{margin-top:8px}
label small,small{font-size:1rem;color:var(--muted);font-weight:400}
input,textarea,select{width:100%;padding:10px 12px;border:1px solid #cdbfc1;background:#fffdf8;border-radius:9px;line-height:1.4;letter-spacing:.025em}
textarea{resize:vertical;min-height:84px}
.check{display:flex;align-items:flex-start;gap:10px;font-weight:500}
.check input{width:19px;height:19px;margin-top:4px;accent-color:var(--wine);flex:none}
dialog{padding:0;border:1px solid #d8c5c4;border-radius:24px;width:min(520px,calc(100% - 28px));max-height:88dvh;background:#fcf8f1;color:var(--ink);box-shadow:0 24px 90px #2a102d40}
dialog::backdrop{background:#28162480;backdrop-filter:blur(4px)}
#dialog-body{padding:27px;overflow-wrap:anywhere}
.modal-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.close{width:38px;height:38px;display:grid;place-items:center;background:#f2e9e4;border-radius:50%;flex:none}
.prompt-card{min-height:180px;padding:23px;background:linear-gradient(135deg,#f0dfe5,#f9ede2);border:1px solid #e0c8d1;display:flex;flex-direction:column;justify-content:center;gap:14px}
.prompt-card h3{font-size:1.55rem;line-height:1.3}
.form-error{color:#8d2b46;font-weight:630}
.form-error:empty{display:none}
.profile-choice{display:flex;align-items:center;gap:12px;text-align:left;background:#fffaf4;border:1px solid var(--line);border-radius:12px;padding:12px}
.profile-choice:hover{background:#f3e7e3}
.exchange-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:18px 0}
.history-day{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fffaf4}
.history-day summary{cursor:pointer;font-weight:650;color:var(--wine);padding:5px 0}
.history-link{display:block;width:100%;text-align:left;border-top:1px solid var(--line);padding:12px 0;color:var(--ink);line-height:1.45}
.prompt-card.card-aside,.collect-card.card-aside,.history-link.card-aside{background:#efecea;border-color:#d5cfca;color:#514c4a}
.card-aside .kicker{color:#5a5552}
.history-link.card-aside{border-radius:9px;padding-inline:10px}
.history-link:hover,.history-link:focus-visible{color:var(--wine);text-decoration:underline}
.rules-list{display:grid;gap:14px;padding-left:24px;margin:0}
.section-note{margin:3px 0 15px;color:var(--muted)}
#notice{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:min(520px,92vw);border-radius:14px;padding:10px 17px;background:#482034;color:#fff5ee;box-shadow:0 5px 30px #2c0d1e18;z-index:10;pointer-events:none}
#notice:empty{display:none}
.skip{position:absolute;left:-9999px;top:8px;z-index:12;background:var(--paper);color:var(--wine);padding:10px}
.skip:focus{left:10px}
@media(min-width:1450px){main{padding-top:42px}.hero{min-height:355px}}
@media(max-width:990px){.header-inner{gap:18px}.nav-btn{padding:9px}.hero-grid{grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr)}.hero-copy{width:72%}.tiles{gap:11px}.tile{padding:17px}.tile-icon{left:17px}}
@media(max-width:760px){.header-inner,main,footer{width:calc(100% - 32px)}.header-inner{display:grid;grid-template-columns:1fr auto;gap:7px;padding:10px 0 6px}.brand{justify-self:start;font-size:1.7rem}.brand img{width:35px;height:35px}.profile{grid-column:2;grid-row:1}nav{grid-row:2;grid-column:1/-1;justify-content:space-between;gap:1px}.nav-btn{gap:5px;min-height:38px;font-size:.98rem}.nav-btn .ic{width:17px}.hero-grid{grid-template-columns:1fr}.hero{min-height:280px}.wallet{gap:10px;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:19px}.wallet h2,.wallet .tally{grid-column:1}.wallet .tally{grid-row:2;margin:0}.wallet p{grid-column:2;grid-row:1}.wallet .meter{grid-column:2;grid-row:2}.wallet .amount{font-size:2.9rem}.coin{width:42px;height:42px}.tiles{grid-template-columns:1fr}.tile{min-height:102px;padding:20px 112px 20px 66px}.tile-icon{top:23px}.tile h3{margin:0 0 3px}.tile .art{top:10px;right:9px}.panel-grid,.cards-grid{grid-template-columns:1fr}main{padding-top:23px}.heading{margin-bottom:15px}.section-heading{margin:25px 0 13px}.empty{align-items:flex-start;flex-wrap:wrap}.empty .text-btn{margin-left:0}.hero-copy{width:65%}footer{flex-wrap:wrap}}
@media(max-width:450px){.header-inner,main,footer{width:calc(100% - 24px)}.nav-btn{font-size:.93rem;padding:7px 5px}.nav-btn .ic{width:16px}.hero-copy{width:74%;padding:24px 19px}.hero::before{inset:0 0 0 12%;background-position:53% center}.hero::after{background:linear-gradient(90deg,#420e20fc 1%,#420e20eb 31%,#400c1e86 59%,#38091805)}.hero-copy p{max-width:18ch}.hero-title{font-size:2.55rem}.wallet{column-gap:15px}.tile{padding-left:17px;min-height:125px}.tile-icon{display:none}.tile .art{top:15px}.empty{gap:11px}.paper,.collect-card{padding:17px}.text-btn{font-size:1rem}.heading .text-btn .ic{display:none}#dialog-body{padding:20px}footer{gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
.wallet>.outline-btn{justify-self:start;align-self:flex-start;background:#fff8f09c;border-color:#ceb0b5}
.meter-label span:last-child{white-space:nowrap}
@media(max-width:760px){.wallet>.outline-btn{grid-column:2;grid-row:2}}
@media(max-width:450px){.wallet{grid-template-columns:1fr auto;gap:10px 8px}.wallet h2{grid-column:1;grid-row:1}.wallet .tally{grid-column:2;grid-row:1;gap:8px}.wallet p{grid-column:1/-1;grid-row:2;max-width:none}.wallet>.outline-btn,.wallet .meter{grid-column:1/-1;grid-row:3}.wallet .amount{font-size:2.2rem}.wallet .coin{width:33px;height:33px}.wallet .coin .ic{width:17px}}
@media(max-width:380px){.nav-btn .ic{display:none}}
.login-page{display:grid;min-height:100dvh;place-items:center;padding:18px}
.login-panel{width:min(100%,430px);min-height:0;display:grid;gap:18px;padding:25px;border:1px solid var(--line);border-radius:25px;background:#fffbf6}
.login-panel .brand{font-size:1.8rem}
.login-panel h1{font-size:2rem}
.login-panel .login-button{min-height:50px;border-radius:25px;font-size:1rem;letter-spacing:.015em}
.login-button:disabled{cursor:wait;opacity:.75}
.login-art{height:160px;margin:0 -8px;border-radius:15px;background:#4b1727 url("/assets/des-velours.jpg") 72% 58% /cover}
.login-panel p{color:var(--muted)}
.login-panel #login-status:empty,.login-panel [hidden]{display:none}
