:root {
  font-family: system-ui, -apple-system, sans-serif;
  color: #1f2421;
  background: #a3c2b8;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: #a3c2b8; }
main { max-width: 1080px; margin: auto; padding: 56px 32px; }
header { margin-bottom: 48px; border-bottom: 1px solid #c9c3ba; padding-bottom: 32px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: #907659; text-transform: uppercase; }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: -1px; margin: 16px 0 24px; }
header p { color: #626a64; font-size: 18px; max-width: 600px; }
h2 { font-size: 24px; margin-top: 0; font-weight: 600; letter-spacing: -0.5px; }
h3 { font-size: 18px; font-weight: 600; }
a { color: #384e3a; text-decoration: underline; text-underline-offset: 4px; }
a:hover { color: #223224; }
.quiet { display: inline-block; margin-top: 16px; font-size: 14px; color: #626a64; }
.panel { border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px; background: rgba(255, 255, 255, 0.45); padding: 40px; box-shadow: 0 12px 40px rgba(0,0,0,0.15); backdrop-filter: blur(24px) saturate(120%); -webkit-backdrop-filter: blur(24px) saturate(120%); }
.panel[hidden], [hidden] { display: none !important; }
.guest-start { display: inline-block; font-size: 20px; margin: 8px 0; }
.solo-card { border-bottom: 1px solid #c9c3ba; padding: 20px 0 28px; }
.invited-join { border-bottom: 1px solid #c9c3ba; padding-bottom: 24px; margin-bottom: 24px; }
#solo-confirm { max-width: 480px; width: calc(100% - 48px); padding: 28px; border: 1px solid #fff9; border-radius: 18px; color: #1f2421; background: #ecf0e9; }
#solo-confirm::backdrop { background: #172c2580; backdrop-filter: blur(5px); }
label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-bottom: 24px; font-weight: 500; }
input, select { font: inherit; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.65); border-radius: 8px; min-width: 0; width: 100%; color: inherit; font-size: 15px; transition: all 0.2s; }
input:focus, select:focus { outline: 2px solid rgba(0,0,0,0.5); outline-offset: 2px; border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.9); }
input[type=color] { height: 48px; padding: 4px; }
button { font: inherit; padding: 12px 24px; background: rgba(42, 61, 44, 0.85); color: #ffffff; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 500; transition: all 0.2s; min-height: 48px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
button:hover:not(:disabled) { background: #223224; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.secondary { background: rgba(255,255,255,0.5); color: #1f2421; border-color: rgba(255,255,255,0.6); }
.secondary:hover:not(:disabled) { background: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.9); }
form button + button { margin-left: 12px; }
.muted, footer { color: #626a64; font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
#auth-form { max-width: 460px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row h2 { margin: 0; }
.village-list { display: grid; gap: 16px; margin: 32px 0; }
.village-card { padding: 24px; border: 1px solid rgba(255,255,255,0.6); border-radius: 12px; background: rgba(255,255,255,0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.village-card:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.6); transform: translateY(-2px); }
.village-card a { font-weight: 600; font-size: 20px; text-decoration: none; display: block; color: #2c322d; margin-bottom: 8px; }
.village-card a:hover { color: #384e3a; text-decoration: underline; }
.village-card p { margin: 0; font-size: 14px; color: #626a64; }
#profile-form { border-top: 1px solid #c9c3ba; margin-top: 32px; padding-top: 32px; }
#message { min-height: 32px; color: #907659; font-size: 14px; margin-bottom: 16px; }
footer { margin-top: 48px; max-width: 650px; border-top: 1px solid #c9c3ba; padding-top: 24px; }
:focus-visible { outline: 2px solid #6e583f; outline-offset: 2px; }
details { margin-top: 32px; padding: 24px; border: 1px solid rgba(255,255,255,0.6); border-radius: 12px; background: rgba(255,255,255,0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
summary { cursor: pointer; color: #2c322d; font-size: 15px; font-weight: 500; }
summary:hover { color: #384e3a; }
details form { margin-top: 24px; }
#recovery-key { display: block; padding: 24px; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.8); border-radius: 8px; overflow-wrap: anywhere; user-select: all; font-family: ui-monospace, monospace; font-size: 14px; color: #1f2421; margin-top: 12px; }
@media(max-width:640px) {
  main { padding: 32px 20px; }
  .panel { padding: 24px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .row { align-items: flex-start; flex-direction: column; }
  .row button { width: 100%; }
  form button + button { margin-left: 0; margin-top: 12px; }
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;scroll-behavior:auto!important}
}
