/* Wedding identity and responsive experience */
:root { --panel: rgba(39, 33, 31, .86); --text: #fffaf0; --soft: #eddfcf; --line: rgba(241, 214, 171, .32); --wine: #652a3d; --gold: #e9c58e; }
body { background: #292722; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; font-size: .875rem; min-height: 44px; border-radius: 6px; padding: 12px 18px; background: var(--wine); font-weight: 500; transition: background .2s, box-shadow .2s; }
button:hover { background: #7e3a50; box-shadow: 0 4px 20px #0002; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.quiet { background: rgba(28, 32, 28, .72); border: 1px solid var(--line); }
h1, h2, .brand { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.13; margin: 16px 0 22px; }
p { font-size: 1rem; line-height: 1.65; }
.eyebrow { display: block; font-size: .75rem; letter-spacing: .19em; line-height: 1.6; color: var(--gold); }
.site-header { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 36px; z-index: 22; background: linear-gradient(#17211f85, transparent); pointer-events: none; }
.site-header > * { pointer-events: auto; }
.brand { font-size: 1.8rem; text-shadow: 0 2px 18px #0006; }
.brand i, #loading i { color: var(--gold); }
.brand small { display: block; font-family: system-ui, sans-serif; font-size: .75rem; letter-spacing: .18em; margin-top: 8px; }
.site-header nav { display: flex; gap: 10px; }
.explore-card { position: fixed; left: 36px; top: 29%; max-width: 320px; z-index: 12; pointer-events: none; padding: 24px; border-left: 1px solid var(--line); background: linear-gradient(90deg, #1a2429ba, #1a242900); text-shadow: 0 2px 12px #0008; }
.explore-card h1 { font-size: clamp(2rem, 3.2vw, 3.3rem); line-height: 1.1; margin: 20px 0; letter-spacing: -.035em; }
.explore-card p { color: #fff4e7; }
.world-date { font-size: .75rem; letter-spacing: .12em; display: block; margin-top: 36px; }
.world-toolbar { position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); left: 36px; right: 36px; z-index: 22; display: flex; align-items: center; gap: 10px; }
.desktop-help { font-size: .875rem; color: #fff6e7; background: #25312bbf; padding: 14px; border: 1px solid var(--line); border-radius: 6px; margin-right: auto; }
#loading { text-align: center; padding: 24px; background: radial-gradient(circle at 20% 20%, #7c2a4e, #210814); }
#loading h1 { font-size: clamp(3rem, 7vw, 6rem); margin: 24px 0; }
#loading a { color: var(--gold); }
.modal, .message-box { background: #11231da3; backdrop-filter: blur(9px); padding: 20px; }
.message-card, .modal-content { background: #fffbf3; color: #322c28; border: 1px solid #d1b98f; border-radius: 12px; padding: clamp(24px, 4vw, 48px); max-height: 90dvh; overflow: auto; box-shadow: 0 32px 100px #0b181c66; }
.message-card { width: min(570px, 94vw); }
.message-card p { color: #60574d; line-height: 1.7; }
.message-card .eyebrow, .modal-content .eyebrow { color: #83552e; }
.modal-content { width: min(820px, 95vw); }
.modal-content p { color: #60574d; }
.modal .close, .message-card .close { color: #652a3d; background: #652a3d0d; min-width: 44px; min-height: 44px; }
.modal-content h2 { padding-right: 20px; }
.modal .close.btn-close-bottom { color: #652a3d; background: #652a3d15; }
#rsvpFrame { min-height: 180px; }
#inventoryPanel { top: 116px; right: 36px; min-width: 200px; }
#balloonHud, #vehicleHud { top: 250px; right: 36px; max-width: 280px; font-size: .875rem; }
#vehicleHint { font-size: .875rem; }
#interactBtn { top: auto; bottom: 95px; transform: translateX(-50%); background: #fffbf3; color: #652a3d; border: 1px solid #b59165; box-shadow: 0 8px 24px #0003; border-radius: 8px; }
#interactBtn:not(.hidden) { animation: none; }
#lookZone { display: none; }
#toast { position: fixed; bottom: 155px; left: 50%; transform: translateX(-50%); z-index: 30; padding: 14px 20px; background: #fffbf3; color: #322c28; border-radius: 8px; text-align: center; }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation: none !important; transition: none !important; }
@media (max-width: 1000px) { .explore-card { top: 23%; max-width: 250px; padding: 18px; } .explore-card h1 { font-size: 2rem; } .desktop-help { display: none; } .world-toolbar { justify-content: flex-end; } }
@media (hover: none) and (pointer: coarse) { #lookZone { display: block; } .desktop-help { display: none; } .world-toolbar { bottom: max(12px, env(safe-area-inset-bottom)); justify-content: center; } #joystickBase { bottom: 80px; } #jumpBtn { bottom: 95px; } #interactBtn { bottom: 225px; } }
@media (max-width: 600px) {
  .site-header { padding: max(16px, env(safe-area-inset-top)) 16px 16px; align-items: flex-start; gap: 12px; }
  .brand { font-size: 1.4rem; white-space: nowrap; } .brand small { font-size: .75rem; letter-spacing: .08em; }
  .site-header nav { flex-direction: column-reverse; gap: 6px; } .site-header button { padding: 10px 12px; font-size: .875rem; }
  #helpBtn { background: #25312bbf; }
  .explore-card { top: 130px; left: 16px; padding: 10px 14px; max-width: 240px; }
  .explore-card .eyebrow { font-size: .75rem; letter-spacing: .08em; } .explore-card h1 { font-size: 1.6rem; margin: 8px 0; }
  .explore-card p, .world-date { display: none; }
  .world-toolbar { left: 12px; right: 12px; gap: 6px; } .world-toolbar button { font-size: .875rem; padding: 10px; }
  #inventoryPanel { top: auto; bottom: 155px; right: 16px; min-width: auto; max-width: 190px; }
  #balloonHud, #vehicleHud { top: 225px; right: 16px; max-width: 200px; min-width: 0; }
  .message-card, .modal-content { padding: 28px 22px; } .modal, .message-box { padding: 12px; }
  .modal-content.large { height: 92dvh; max-height: 92dvh; }
}
@media (max-height: 550px) { .explore-card { display: none; } .site-header { padding: 10px 18px; } #inventoryPanel { top: 82px; } #balloonHud, #vehicleHud { top: 82px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

#photoViewer { position: fixed; inset: 0; z-index: 10000; padding: 0; background: #080808; }
#photoViewerImage { display: block; width: 100%; height: 100%; max-height: 100dvh; object-fit: contain; filter: grayscale(1); animation: photo-zoom .24s ease-out; }
#photoViewer .close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: 48px; height: 48px; border-radius: 50%; background: #222d; color: white; border: 1px solid #fff8; font-size: 24px; cursor: pointer; }
@keyframes photo-zoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #photoViewerImage { animation: none; } }
