.site-shell {
  position: fixed !important;
  z-index: 70 !important;
  inset: 26px 38px auto !important;
  min-height: 58px !important;
  height: 58px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}

.site-shell .brand {
  display: grid;
  gap: 4px;
  color: #143548;
  text-decoration: none;
}

.site-shell .brand-name {
  font: 700 clamp(2rem, 3vw, 2.65rem)/.9 "Noto Sans KR", sans-serif;
  letter-spacing: -.09em;
}

.site-shell .brand-sub {
  font: 700 9px/1 "Noto Sans KR", sans-serif;
  letter-spacing: .16em;
}

.site-shell .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-shell .actions a,
.site-shell .actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(248, 255, 255, .58);
  box-shadow: inset 0 1px rgba(255, 255, 255, .72), 0 6px 18px rgba(32, 99, 128, .11);
  color: #214c50;
  font: 700 12px/1 "Noto Sans KR", sans-serif;
  text-decoration: none;
}

.site-shell .actions a { gap: 7px; }

.site-shell .actions button {
  min-width: 40px;
  padding: 0;
}

.site-shell .actions .lang {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}

.site-shell-footer {
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 25px 18px !important;
}

.site-shell-footer .footer-links,
.site-shell-footer .copyright {
  position: static !important;
  margin: 0 !important;
}

.site-shell-footer .footer-links {
  display: flex;
  gap: 7px;
  align-items: center;
}

.site-shell-footer .footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.site-shell-footer .footer-links button:hover,
.site-shell-footer .footer-links button:focus-visible {
  color: #f8ffff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-layer {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 27, 38, .66);
  backdrop-filter: blur(8px);
}

.legal-layer[hidden] { display: none; }

.legal-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 22px;
  background: #f3faf7;
  box-shadow: 0 24px 70px rgba(5, 24, 34, .4);
  color: #214c50;
}

.pickpot-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  color: #285959;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.pickpot-modal-close:hover,
.pickpot-modal-close:focus-visible { background: rgba(255, 255, 255, .9); outline: 2px solid #4d9694; outline-offset: 2px; }

.legal-submit-confirmation {
  position: fixed;
  z-index: 201;
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: #285959;
  box-shadow: 0 14px 32px rgba(5, 24, 34, .28);
  color: #f5fffc;
  font: 700 14px/1 "Noto Sans KR", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
  transition: opacity .16s ease, transform .16s ease;
}

.legal-submit-confirmation.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.legal-eyebrow {
  margin: 0 0 7px;
  color: #56807d;
  font: 700 10px/1 "Noto Sans KR", sans-serif;
  letter-spacing: .18em;
}

.legal-dialog h2 {
  margin: 0 0 22px;
  font: 700 35px/1 "Cormorant Garamond", "Noto Sans KR", serif;
  letter-spacing: -.03em;
}

.legal-content { color: #3e5f63; font: 400 14px/1.75 "Noto Sans KR", sans-serif; }
.legal-content p { margin: 0 0 14px; }
.legal-content ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.legal-content strong { color: #214c50; }

.contact-form { display: grid; gap: 14px; }

.contact-field { display: grid; gap: 6px; color: #315b5e; font: 700 12px/1.2 "Noto Sans KR", sans-serif; }

.contact-field input,
.contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(48, 98, 99, .22);
  border-radius: 11px;
  background: rgba(255, 255, 255, .78);
  color: #214c50;
  font: 400 14px/1.5 "Noto Sans KR", sans-serif;
  outline: none;
}

.contact-field input { height: 42px; padding: 0 12px; }
.contact-field textarea { min-height: 128px; padding: 10px 12px; resize: vertical; }

.contact-field input:focus,
.contact-field textarea:focus { border-color: #4d9694; box-shadow: 0 0 0 3px rgba(77, 150, 148, .16); }

.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.contact-note,
.support-form-status { margin: 0 !important; color: #557174; font-size: 12px; line-height: 1.55; }

.support-form-status:empty { display: none; }

.contact-submit {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #285959;
  color: #f5fffc;
  cursor: pointer;
  font: 700 13px/1 "Noto Sans KR", sans-serif;
}

.contact-submit:hover,
.contact-submit:focus-visible { background: #1d4848; outline: 2px solid #4d9694; outline-offset: 2px; }
.contact-submit:disabled { cursor: wait; opacity: .7; }

.home {
  display: flex;
  flex-direction: column;
}

.home > .site-shell-footer {
  position: relative !important;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: auto !important;
}

.theme-roulette .game-app,
.theme-race .game-app,
.theme-sheep .game-app {
  padding-top: 96px !important;
}

@media (max-width: 760px) {
  .site-shell {
    inset: 18px 14px auto !important;
    min-height: 44px !important;
    height: 44px !important;
  }

  .site-shell-footer {
    padding: 0 18px 16px !important;
  }

  .site-shell-footer .footer-links { gap: 5px; }
  .legal-layer { padding: 15px; }
  .legal-dialog { max-height: calc(100vh - 30px); padding: 29px 23px 24px; border-radius: 18px; }
  .legal-dialog h2 { font-size: 30px; }
  .legal-content { font-size: 13px; }

  .site-shell .actions { gap: 6px; }
  .site-shell .actions a,
  .site-shell .actions button { min-height: 34px; font-size: 10px; }
  .site-shell .actions a { width: 40px; min-width: 40px; padding: 0; }
  .site-shell .actions button { min-width: 34px; }
  .site-shell .actions a b { display: none; }

  .theme-roulette .game-app,
  .theme-race .game-app,
  .theme-sheep .game-app {
    padding-top: 72px !important;
  }
}

@media (max-width: 520px) {
  .site-shell {
    align-items: center !important;
    gap: 8px;
    min-width: 0;
  }

  .site-shell .brand { flex: 0 0 auto; }
  .site-shell .brand-name { font-size: 1.65rem; }
  .site-shell .brand-sub { display: none; }
  .site-shell .actions { flex: 0 1 auto; min-width: 0; gap: 4px; }
  .site-shell .actions a { width: 38px; min-width: 38px; }
  .site-shell .actions button { width: 36px; min-width: 36px; }
  .site-shell .actions .lang { width: 38px !important; min-width: 38px !important; }
}
