:root { color-scheme: light; font-family: system-ui, sans-serif; color: #343733; background: #f7f4ed; }
* { box-sizing: border-box; }
body { margin: 0; padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom); }
header { max-width: 620px; margin: 24px auto 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
header a { color: #465b4e; text-decoration: none; font-weight: 650; }
header span { color: #73796f; font-size: 12px; }
main { max-width: 520px; margin: 48px auto 28px; text-align: center; }
h1 { font-family: Georgia, serif; font-size: 38px; font-weight: 400; margin: 8px 0 22px; }
h2 { font-family: Georgia, serif; font-size: 27px; font-weight: 400; margin: 24px 0 12px; }
p { line-height: 1.6; }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: #707769; }
.invitation { color: #606859; margin: 0 auto 28px; max-width: 300px; }
.backs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 8px; }
.share { margin-top: 20px; }
.card-back { border: 0; padding: 0; background: transparent; border-radius: 13px; cursor: pointer; transition: transform .2s; }
.card-back:hover { transform: translateY(-5px); }
.card-back:disabled { opacity: .6; cursor: wait; }
.card-back img { width: 100%; height: auto; display: block; border-radius: 13px; box-shadow: 0 5px 14px #273a2820; }
.blank-back { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 3; border: 5px double #d1b988; border-radius: 13px; background: #344e4a; color: #ddcaa0; font-size: 32px; box-shadow: 0 5px 14px #273a2820; }
.card-back:focus-visible, .more:focus-visible, a:focus-visible { outline: 3px solid #a97e36; outline-offset: 5px; }
.card-face { width: min(65vw, 240px); height: auto; border-radius: 16px; box-shadow: 0 9px 28px #273a2826; animation: reveal .45s ease-out; }
.short { max-width: 390px; margin: 0 auto 18px; }
.more { display: inline-block; font: inherit; color: #39513e; background: #e7ebdf; border: 0; border-radius: 24px; padding: 10px 24px; cursor: pointer; text-decoration: none; }
.reading { text-align: left; white-space: pre-line; background: #fffdf7; border-radius: 16px; padding: 22px; margin-top: 20px; }
.notice { margin: 16px auto; max-width: 520px; background: #f3e2d3; padding: 14px; border-radius: 12px; }
[x-cloak] { display: none !important; }
.settings { display: grid; gap: 20px; text-align: left; }
.settings label { display: grid; gap: 8px; }
.settings .check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: #465b4e; }
.more:disabled { opacity: .6; cursor: wait; }
select, input[type="time"] { width: 100%; min-width: 0; font: inherit; color: inherit; background: #fffdf7; border: 1px solid #bfc8b7; border-radius: 12px; padding: 12px; }
.offer { background: #eeeee3; border-radius: 16px; padding: 20px; margin-top: 28px; }
.offer h2 { margin-top: 0; }
.offer .settings { margin-top: 16px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.decks { display: grid; gap: 32px; }
.deck { background: #fffdf7; border-radius: 16px; padding: 24px; }
.deck-back { display: block; width: 120px; height: auto; border-radius: 13px; margin: 0 auto; }
.deck-back.blank-back { display: grid; }
.deck-description { white-space: pre-line; }
.diary { display: grid; gap: 40px; }
.diary-card { background: #fffdf7; border-radius: 16px; padding: 24px; margin-top: 24px; }
.diary-card h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.diary-image { width: min(55vw, 180px); height: auto; border-radius: 13px; }
@keyframes reveal { from { transform: perspective(900px) rotateY(90deg); } to { transform: perspective(900px) rotateY(0deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 380px) { header span { display: none; } main { margin-top: 32px; } .backs { gap: 12px; padding: 0; } }
