:root {
  --paper: #FFF8EE; --line: #F2E6D6; --ink: #3A3536; --muted: #5A5456;
  --lav: #DCD3F2; --lav-soft: #F6F1FB; --lav-pale: #F3EEFB; --sep: #E4DBF5;
  --pink: #FFD6E2; --pink-strong: #F28AB2; --pink-soft: #FFF0F5; --input: #FFF6F9;
  --mint: #CDEBD9; --yellow: #FBEFB0; --brown: #6E4128; --dash: #D9CFC4; --green: #3FA35C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Quicksand', sans-serif; color: var(--ink); line-height: 1.4; }
.paper { background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 34px; min-height: 100vh; }
a { color: var(--brown); } a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
input:focus { outline: 3px solid var(--pink-strong); outline-offset: 2px; }
.px { font-family: 'Silkscreen', monospace; font-weight: 400; }
.small { font-size: 12px; } .muted { color: var(--muted); } .strong { font-weight: 700; }
.grow { flex: 1; } .push { margin-left: auto; } .inline { display: inline; margin: 0; }
.display { font-family: 'Fraunces', serif; font-style: italic; font-weight: 900; color: var(--brown); margin: 0; line-height: 1.05; }
.display.big { font-size: 52px; line-height: 1.02; }
.page-title { font-size: 48px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.win { background: var(--lav-soft); border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; }
.win-title { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--lav); border-bottom: 2px solid var(--ink); font-family: 'Silkscreen', monospace; font-size: 14px; }
.win-title.mint { background: var(--mint); } .win-title.yellow { background: var(--yellow); }
.dots { display: flex; gap: 4px; margin-left: auto; }
.dots i { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 4px; display: block; }
.dots .y { background: var(--yellow); } .dots .m { background: var(--mint); } .dots .p { background: var(--pink-strong); }
.win-menu { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 10px; border-bottom: 2px solid var(--sep); font-family: 'Silkscreen', monospace; font-size: 12px; }
.win-menu span { padding: 2px 6px; }
.win-body { background: #fff; }
.win-status { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-top: 2px solid var(--sep); font-family: 'Silkscreen', monospace; font-size: 12px; }
.win-status.small { font-size: 11px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; font: 700 17px 'Quicksand', sans-serif; text-decoration: none; color: var(--ink); border: 3px solid var(--ink); border-radius: 4px; cursor: pointer; }
.btn-primary { background: var(--pink-strong); box-shadow: inset 0 6px 0 rgba(255,255,255,.45); }
.btn-ghost { background: #fff; }
.btn-danger { background: #fff; color: #9b2c4f; }
.btn-sm { height: 46px; padding: 0 18px; font-size: 15px; }
.btn:disabled { background: var(--lav-pale); opacity: .6; cursor: not-allowed; box-shadow: none; }
.row-gap { display: flex; flex-wrap: wrap; gap: 12px; }
.linklike { background: none; cursor: pointer; font-family: inherit; }
.stack { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; }
.field input, .field textarea, textarea { width: 100%; font: 600 16px 'Quicksand', sans-serif; color: var(--ink); background: var(--input); border: 2px solid var(--ink); border-radius: 4px; padding: 0 16px; }
.field input { height: 48px; } .field textarea, textarea { padding: 12px 16px; }
.code-input { letter-spacing: 2px; text-transform: uppercase; }
.hint { font-size: 13px; color: var(--muted); }
.form-error { margin: 0; padding: 10px 14px; font-weight: 700; font-size: 14px; background: var(--pink-soft); border: 2px solid var(--ink); border-radius: 4px; }
.flash { padding: 12px 16px; font-weight: 700; background: var(--mint); border: 2px solid var(--ink); border-radius: 3px; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; background: #fff; border-bottom: 3px solid var(--ink); }
.brand { font-family: 'Fraunces', serif; font-style: italic; font-weight: 900; font-size: 24px; color: var(--brown); }
.brand span { font-size: 16px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.navlink { padding: 10px 16px; font: 700 15px 'Quicksand', sans-serif; text-decoration: none; color: var(--ink); border: 2px solid transparent; border-radius: 4px; }
.navlink.active { background: var(--pink); border-color: var(--ink); }
.chip { padding: 8px 12px; font-family: 'Silkscreen', monospace; font-size: 12px; background: var(--ink); color: var(--yellow); border-radius: 8px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

.marquee { overflow: hidden; background: var(--ink); color: var(--yellow); border-bottom: 3px solid var(--ink); font-size: 14px; white-space: nowrap; }
.marquee-track { display: inline-block; padding: 8px 0; animation: marquee 28s linear infinite; }
.marquee-track span { padding: 0 32px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: .3; } }
@keyframes wiggle { 0%,86%,100% { transform: rotate(-8deg); } 90% { transform: rotate(4deg); } 94% { transform: rotate(-14deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* login */
.login-wrap { min-height: 100vh; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; position: relative; overflow: hidden; }
.sparkle { position: absolute; }
.sparkle.s1 { width: 56px; top: 12%; left: 14%; fill: var(--pink); } .sparkle.s2 { width: 28px; top: 22%; left: 20%; fill: var(--pink-strong); }
.sparkle.s3 { width: 72px; bottom: 14%; right: 12%; fill: var(--yellow); } .sparkle.s4 { width: 32px; bottom: 26%; right: 20%; fill: var(--mint); }
.sparkle.s5 { width: 40px; top: 16%; right: 18%; fill: var(--lav); }
.login-win { width: 100%; max-width: 480px; position: relative; }
.login-body { padding: 32px 36px 28px; display: flex; flex-direction: column; gap: 22px; }
.login-hero { display: flex; align-items: center; gap: 18px; }
.avatar-wrap { position: relative; flex: none; }
.cat-avatar { width: 80px; height: 80px; object-fit: cover; object-position: 55% 45%; border: 3px solid var(--ink); border-radius: 4px; background: #fff; display: block; }
.cat-avatar.big { width: 92px; height: 92px; border-radius: 6px; object-position: 55% 48%; }
.online-dot { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: #7BCB8E; border: 3px solid #fff; }
.hero-text { display: flex; flex-direction: column; gap: 4px; }
.hero-text .display { font-size: 38px; } .hero-text .display.sub { font-size: 22px; }
.lede-sm { margin: 0; font-size: 16px; line-height: 1.5; }
.footnote { font-size: 12px; }

/* card */
.center-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 24px; }
.win.wide { width: 100%; max-width: 1240px; }
.card-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; padding: 18px 32px; }
.card-body::before { content: ''; }
.card-stage { position: relative; width: clamp(420px, calc((100vh - 130px) * 0.706), 720px); perspective: 1800px; }
.flip { display: block; width: 100%; aspect-ratio: 1000 / 1416; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1.15); }
.flipped .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 3px solid var(--ink); border-radius: 3px; overflow: hidden; background: #fff; }
.face.back { transform: rotateY(180deg); }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; top: -22px; right: -28px; padding: 10px 16px; font-size: 14px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 4px; animation: wiggle 2.4s ease-in-out infinite; pointer-events: none; }
.card-side { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.card-side .display.big { font-size: 34px; }
.card-side .btn { height: 44px; font-size: 15px; padding: 0 16px; }
.seg { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; }
.seg span { padding: 6px 12px; font-weight: 700; font-size: 13px; border-radius: 4px; } .seg .on { background: var(--pink); }
.lede { margin: 0; font-size: 15px; line-height: 1.5; }
.infobox { padding: 14px 18px; background: var(--lav-pale); border: 2px dashed var(--ink); border-radius: 4px; }
.infoline { font-size: 15px; }
.hand-hint { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hand-hint svg { animation: bob 1.6s ease-in-out infinite; }

/* forum */
.forum-layout { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.side { flex: 1 1 260px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.profile { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.avatar-box { width: 56px; height: 56px; flex: none; border: 3px solid var(--ink); border-radius: 4px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-style: italic; font-weight: 900; font-size: 26px; color: var(--brown); }
.profile-meta .strong { font-size: 17px; }
.topics { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; }
.topic-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.check { width: 22px; height: 22px; flex: none; border: 2px solid var(--ink); border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; }
.check svg { visibility: hidden; } .check.done { background: var(--mint); } .check.done svg { visibility: visible; }
.bar { height: 16px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background-color: var(--pink-strong); background-image: repeating-linear-gradient(90deg, transparent 0 10px, #fff 10px 12px); transition: width .4s; }
.online { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.online-row { display: flex; align-items: center; gap: 8px; }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; } .led.blink { animation: blink 1.4s steps(1) infinite; }
.forum-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.forum-head { display: flex; flex-direction: column; gap: 6px; } .forum-head .lede-sm { font-size: 17px; }
.thread { display: flex; flex-direction: column; gap: 26px; padding: 26px 28px; }
.topic-bar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 3px; scroll-margin-top: 16px; }
.topic-bar h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 700; }
.topic-bar.pink { background: var(--pink); } .topic-bar.mint { background: var(--mint); margin-top: 10px; } .topic-bar.yellow { background: var(--yellow); margin-top: 10px; }
.msg { display: flex; align-items: flex-start; gap: 22px; } .msg.me { flex-direction: row-reverse; }
.who { flex: none; width: 110px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.who .strong { font-size: 15px; }
.badge { padding: 2px 6px; font-size: 10px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 6px; }
.stars { color: #C2457A; font-size: 13px; letter-spacing: 1px; }
.bubble { position: relative; flex: 1; min-width: 0; padding: 18px 22px; background: #fff; border: 3px solid var(--ink); border-radius: 6px; }
.msg.me .bubble { background: var(--g-soft, var(--pink-soft)); }
.bubble::before, .bubble::after { content: ''; position: absolute; width: 0; height: 0; border: solid transparent; }
.bubble::before { left: -17px; top: 30px; border-width: 12px 16px 12px 0; border-right-color: var(--ink); }
.bubble::after { left: -11px; top: 33px; border-width: 9px 12px 9px 0; border-right-color: #fff; }
.msg.me .bubble::before { left: auto; right: -17px; border-width: 12px 0 12px 16px; border-right-color: transparent; border-left-color: var(--ink); }
.msg.me .bubble::after { left: auto; right: -11px; border-width: 9px 0 9px 12px; border-right-color: transparent; border-left-color: var(--g-soft, var(--pink-soft)); }
.bubble-meta { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px dotted var(--dash); font-size: 11px; color: var(--muted); }
.msg.me .bubble-meta { border-bottom-color: #E3B9C8; }
.bubble-text { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; } p.bubble-text { margin: 0; }
.bubble-text p, .bubble-text ul { margin: 0; } .bubble-text ul { padding-left: 22px; }
.dresscode { padding: 14px 18px; background: var(--lav-pale); border: 2px dashed var(--ink); border-radius: 4px; }
.dresscode .px { font-size: 12px; } .dresscode .dc { font-size: 28px; }
.sig { margin-top: 16px; padding-top: 10px; border-top: 2px dashed var(--dash); font-size: 13px; font-style: italic; color: var(--muted); }
.reply-cols { display: flex; flex-wrap: wrap; gap: 24px; }
.reply-col { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.searchbox { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 16px 'Quicksand', sans-serif; color: var(--ink); outline: none; }
.searchbox:focus-within { outline: 3px solid var(--pink-strong); outline-offset: 2px; }
.results { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.results-head { padding: 6px 10px; background: var(--lav-soft); border-bottom: 2px solid var(--ink); }
.result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 2px solid var(--lav-pale); background: #fff; }
.result:last-child { border-bottom: 0; }
.art { width: 40px; height: 40px; flex: none; border-radius: 8px; border: 2px solid var(--ink); background: var(--lav); object-fit: cover; }
.track-text { flex: 1; min-width: 0; } .track-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .track-artist { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--pink-strong); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; padding: 0; }
.round.on { background: var(--mint); } .round:disabled { opacity: .5; cursor: not-allowed; }
.slots-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.slots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.slot { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 10px; border: 2px dashed var(--ink); border-radius: 4px; background: var(--paper); }
.slot.filled { border-style: solid; background: #fff; }
.slot .n { width: 28px; flex: none; font-family: 'Fraunces', serif; font-style: italic; font-weight: 900; font-size: 20px; color: var(--brown); }
.slot .label { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6F686B; } .slot.filled .label { color: var(--ink); }
.slot .x { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
.photo-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.polaroid { flex: none; width: 200px; padding: 12px 12px 42px; background: #fff; border: 2px solid var(--ink); transform: rotate(-3deg); position: relative; }
.polaroid.over { outline: 3px dashed var(--pink-strong); }
.drop { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--lav-pale); border: 2px dashed var(--ink); text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; overflow: hidden; }
.drop img { width: 100%; height: 100%; object-fit: cover; }
#drop-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; }
.caption { position: absolute; left: 0; right: 0; bottom: 11px; text-align: center; font-size: 16px; }
.photo-form { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; font-size: 15px; font-weight: 600; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--pink-strong); }

/* admin */
.admin-main { width: 100%; max-width: 960px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 24px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.admin-pad { padding: 20px; display: flex; flex-direction: column; gap: 14px; } .admin-pad p { margin: 0; }
.bigcode { font-size: 30px; letter-spacing: 3px; padding: 12px 16px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; align-self: flex-start; user-select: all; }
code { font-family: 'Silkscreen', monospace; font-size: 12px; background: var(--lav-pale); padding: 1px 4px; }

@media (max-width: 1000px) {
  .card-body { display: flex; flex-direction: column; gap: 28px; }
  .card-body::before { display: none; }
  .card-stage { width: min(460px, 100%); min-width: 0; }
  .card-side { max-width: 460px; }
  .card-side .display.big { font-size: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar { padding: 12px 16px; } .brand { font-size: 22px; } .brand span { display: none; }
  .navlink { padding: 8px 10px; font-size: 14px; }
  .display.big { font-size: 40px; } .page-title { font-size: 36px; }
  .login-wrap { padding: 24px 16px; } .login-body { padding: 24px 20px; } .hero-text .display { font-size: 32px; }
  .sparkle { display: none; }
  .center-main { padding: 20px 16px; } .card-body { padding: 24px 16px; gap: 28px; }
  .sticker { right: -6px; }
  .forum-layout { padding: 22px 16px 32px; gap: 22px; }
  .marquee { font-size: 12px; } .marquee-track { padding: 7px 0; } .marquee-track span { padding: 0 24px; }
  .thread { padding: 16px 14px 20px; gap: 14px; }
  .forum-head .lede-sm { font-size: 15px; }
  .msg, .msg.me { flex-direction: column; align-items: stretch; gap: 14px; }
  .who { width: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 10px; text-align: left; }
  .msg.me .who { flex-direction: row-reverse; justify-content: flex-start; }
  .who .cat-avatar, .who .me-avatar { width: 44px; height: 44px; font-size: 20px; }
  .stars { display: none; }
  .bubble { padding: 16px; margin-top: 4px; }
  .bubble::before, .msg.me .bubble::before { left: 18px; right: auto; top: -17px; border-width: 0 11px 16px 11px; border-color: transparent transparent var(--ink) transparent; }
  .bubble::after, .msg.me .bubble::after { left: 21px; right: auto; top: -11px; border-width: 0 8px 12px 8px; border-color: transparent transparent #fff transparent; }
  .msg.me .bubble::before { left: auto; right: 18px; }
  .msg.me .bubble::after { left: auto; right: 21px; border-bottom-color: var(--g-soft, var(--pink-soft)); }
  .dresscode .dc { font-size: 22px; }
  .polaroid { align-self: center; } .photo-cols { flex-direction: column; align-items: stretch; } .photo-cols .polaroid { margin: 0 auto; }
  .photo-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track, .sticker, .hand-hint svg, .led.blink { animation: none; } .flip-inner { transition: none; } }

/* guest colours */
.c-pink { --g: #F28AB2; --g-soft: #FFE3EC; }
.c-mint { --g: #7BCB8E; --g-soft: #DDF3E5; }
.c-yellow { --g: #F2D45C; --g-soft: #FBF2C4; }
.c-lavender { --g: #B8A6E8; --g-soft: #ECE6FA; }
.c-peach { --g: #F6A877; --g-soft: #FFE6D4; }
.c-sky { --g: #7FB8E6; --g-soft: #DDEEFA; }
.c-coral { --g: #E86F6F; --g-soft: #FFDEDE; }
.c-sage { --g: #A9C98A; --g-soft: #E9F2DC; }
.guest-chip { background: var(--g, var(--ink)); color: var(--ink); border: 2px solid var(--ink); }

.me-avatar { position: relative; width: 80px; height: 80px; flex: none; overflow: hidden; border: 3px solid var(--ink); border-radius: 4px; background: var(--g, var(--yellow)); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-style: italic; font-weight: 900; font-size: 34px; color: var(--ink); }
.me-avatar.sm { width: 56px; height: 56px; font-size: 26px; }
.me-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.me-avatar.has-photo img { display: block; }
.me-avatar.has-photo .initial { visibility: hidden; }

/* admin */
.btn-xs { height: 34px; padding: 0 12px; font-size: 13px; border-width: 2px; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; margin: 0; padding: 0; }
.swatches.inline { flex-wrap: nowrap; }
.swatch { position: relative; display: inline-flex; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; background: var(--g, #fff); display: flex; align-items: center; justify-content: center; font: 400 11px 'Silkscreen', monospace; }
.swatch input:checked + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 2px; }
.guest { border: 2px solid var(--ink); border-radius: 4px; background: #fff; border-left: 10px solid var(--g, var(--ink)); }
.guest[open] { background: var(--lav-soft); }
.guest summary { display: flex; align-items: center; gap: 14px; padding: 10px 14px; cursor: pointer; list-style: none; }
.guest summary::-webkit-details-marker { display: none; }
.guest summary::after { content: '▸'; margin-left: 4px; font-size: 14px; color: var(--muted); transition: transform .15s; }
.guest[open] summary::after { transform: rotate(90deg); }
.gav { width: 44px; height: 44px; flex: none; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; background: var(--g); display: flex; align-items: center; justify-content: center; font: italic 900 20px 'Fraunces', serif; color: var(--ink); }
.gav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ginfo { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gname { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gstats { display: flex; align-items: center; gap: 10px; flex: none; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 8px; height: 14px; border: 1.5px solid var(--ink); border-radius: 2px; background: #fff; }
.meter i.on { background: var(--g, var(--pink-strong)); }
.guest-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; border-top: 2px dotted var(--dash); background: #fff; }
.guest-cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.gcol { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.gcol p { margin: 0; }
.gphoto { flex: 0 0 160px; align-items: flex-start; }
.gphoto img { width: 160px; height: 160px; object-fit: cover; border: 2px solid var(--ink); border-radius: 3px; display: block; }
.tracklist { margin: 0; padding: 0; list-style: none; counter-reset: t; display: flex; flex-direction: column; gap: 4px; }
.tracklist li { counter-increment: t; display: flex; align-items: baseline; gap: 8px; padding: 5px 10px; background: var(--lav-pale); border-radius: 3px; font-size: 14px; min-width: 0; }
.tracklist li::before { content: counter(t); width: 18px; flex: none; font: italic 900 14px 'Fraunces', serif; color: var(--brown); }
.tracklist .tt { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tracklist .ta { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 2px dotted var(--dash); }
.gactions form { margin: 0; display: flex; align-items: center; gap: 10px; }
.gspacer { flex: 1; }
@media (max-width: 720px) {
  .gstats .meter, .gstats .badge { display: none; }
  .guest summary { padding: 10px; gap: 10px; }
  .gphoto { flex: 1 1 100%; }
}
.chip.wide { max-width: none; }

.profile-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile-edit .stack { gap: 10px; flex: 1 1 260px; }
.profile-edit p { margin: 0; }
.filepick { font: 600 14px 'Quicksand', sans-serif; max-width: 100%; }

.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-actions .btn { width: 100%; padding: 0 12px; text-align: center; }
.photo-actions .btn-delete { grid-column: 1 / -1; }
.btn-delete { background: #E5484D; color: #fff; box-shadow: inset 0 6px 0 rgba(255,255,255,.25); }
.btn-delete:hover { background: #cf3a3f; }

.admin-grid { align-items: stretch; }
.admin-grid > .win { display: flex; flex-direction: column; }
.admin-grid > .win > .win-body { flex: 1; }
.btn .dot { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--g); display: inline-block; margin-right: 8px; }

.coderow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.codebig { font-size: 20px; letter-spacing: 3px; padding: 6px 12px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; user-select: all; }
.codechip { font-size: 12px; letter-spacing: 1px; padding: 4px 8px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; white-space: nowrap; }
@media (max-width: 720px) { .codechip { display: none; } }
.verso-thumb { width: 120px; aspect-ratio: 1000 / 1416; object-fit: cover; border: 3px solid var(--ink); border-radius: 3px; background: #fff; flex: none; }

/* discussion thread */
.thread-feed { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; background: #fff; }
.thread-feed:empty::after { content: 'Personne n’a encore écrit ici. Sois le/la premier·e !'; color: var(--muted); font-size: 14px; }
.tpost { display: flex; align-items: flex-start; gap: 14px; }
.tpost.me { flex-direction: row-reverse; }
.tpost .av { width: 40px; height: 40px; flex: none; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; background: var(--g, var(--pink)); display: flex; align-items: center; justify-content: center; font: italic 900 16px 'Fraunces', serif; color: var(--ink); }
.tpost .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpost-body { max-width: 72%; min-width: 0; }
.tpost-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.tpost.me .tpost-head { flex-direction: row-reverse; }
.tpost-name { font-weight: 700; }
.tpost-time { color: var(--muted); }
.tpost-bubble { position: relative; padding: 10px 14px; background: var(--lav-pale); border: 2px solid var(--ink); border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tpost.me .tpost-bubble { background: var(--pink-soft); }
.tpost.host .tpost-bubble { background: var(--yellow); }
.tpost-actions { display: flex; gap: 10px; margin-top: 4px; font-size: 12px; }
.tpost.me .tpost-actions { justify-content: flex-end; }
.tpost-actions button { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.thread-form { display: flex; gap: 10px; padding: 14px 24px; border-top: 2px solid var(--sep); align-items: flex-end; }
.thread-form textarea { flex: 1; min-width: 0; resize: vertical; font: 500 15px 'Quicksand', sans-serif; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--input); }
.thread-more, .thread-refresh { margin: 14px 24px 0; }
@media (max-width: 720px) {
  .thread-feed { padding: 14px 16px; }
  .tpost-body { max-width: 82%; }
  .thread-form { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .thread-more, .thread-refresh { margin: 12px 16px 0; }
}
.dc-or { margin: 2px 0; font-size: 11px; color: var(--muted); }
.c-lavender.topic-bar, .topic-bar.lavender { background: var(--lav); }
.activity-idea { margin: 0; padding: 10px 14px; background: var(--lav-pale); border: 2px dashed var(--ink); border-radius: 4px; font-size: 14px; white-space: pre-wrap; }
.activity-actions { margin-top: 10px; }
