/* Newport Beach Blackjack
   Naming: "nbb-" prefix + BEM-ish (block__element--modifier).
   IDs are camelCase and only used as JS hooks, never for styling. */

:root {
  --sea: #0d2b33;
  --sea-deep: #071a1f;
  --felt: #12463f;
  --sand: #f3e6cc;
  --gold: #e8b04a;
  --gold-hi: #f6cf7d;
  --coral: #e2614b;
  --ink: #f8f3e8;
  --mute: #a8bcb8;
  --line: rgba(243, 230, 204, .14);
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.6 "Manrope", system-ui, sans-serif;
  background: var(--sea-deep);
  color: var(--ink);
}
a { color: var(--gold-hi); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.1; }
.nbb-page.is-locked { overflow: hidden; }

.nbb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.nbb-strip {
  background: var(--coral);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
}

/* header */
.nbb-head { border-bottom: 1px solid var(--line); background: var(--sea); position: sticky; top: 0; z-index: 10; }
.nbb-head__row { display: flex; align-items: center; gap: 24px; height: 68px; }
.nbb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nbb-logo__chip {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--sea-deep);
  font-weight: 800; font-size: 13px;
  border: 3px dashed var(--sea);
  outline: 2px solid var(--gold);
}
.nbb-logo__word { font-family: "Fraunces", serif; font-size: 18px; }
.nbb-logo__word em { color: var(--gold); font-style: normal; }
.nbb-nav { display: flex; gap: 20px; margin-left: auto; }
.nbb-nav__link { color: var(--mute); text-decoration: none; font-size: 14px; }
.nbb-nav__link:hover { color: var(--ink); }
.nbb-head__user { display: flex; align-items: center; gap: 10px; }

/* buttons */
.nbb-btn {
  font: 700 15px "Manrope", sans-serif;
  border-radius: 999px;
  padding: 11px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s, background .15s;
}
.nbb-btn:hover { transform: translateY(-1px); }
.nbb-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.nbb-btn--gold { background: var(--gold); color: var(--sea-deep); }
.nbb-btn--gold:hover { background: var(--gold-hi); }
.nbb-btn--ghost { background: none; color: var(--ink); border-color: var(--line); }
.nbb-btn--ghost:hover { border-color: var(--gold); }
.nbb-btn--wide { width: 100%; }
.nbb-btn--sm { padding: 7px 14px; font-size: 13px; }

/* hero */
.nbb-hero { padding: 80px 0 90px; background: radial-gradient(ellipse at 80% 20%, #1c5a58 0, transparent 60%), var(--sea); overflow: hidden; }
.nbb-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.nbb-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--gold); font-weight: 800; }
.nbb-hero__title { font-size: clamp(38px, 6vw, 66px); margin: 14px 0 18px; }
.nbb-hero__title span { color: var(--gold); }
.nbb-hero__lead { color: var(--mute); font-size: 18px; max-width: 520px; }
.nbb-hero__cta { display: flex; gap: 12px; margin: 28px 0 22px; flex-wrap: wrap; }
.nbb-badges { list-style: none; padding: 0; display: flex; gap: 8px; }
.nbb-badges__item { border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--sand); }

.nbb-hero__art { position: relative; height: 340px; }
.nbb-sun { position: absolute; width: 230px; height: 230px; border-radius: 50%; right: 10px; top: 20px; background: radial-gradient(circle, var(--gold-hi), var(--coral)); opacity: .9; }
.nbb-card {
  position: absolute; z-index: 2;
  width: 150px; height: 210px; border-radius: 12px;
  background: var(--sand); color: var(--sea-deep);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.nbb-card b { font: 800 34px "Fraunces", serif; }
.nbb-card i { font-style: normal; font-size: 60px; align-self: flex-end; line-height: 1; }
.nbb-card--a { left: 30px; top: 70px; transform: rotate(-10deg); }
.nbb-card--k { left: 140px; top: 90px; transform: rotate(8deg); color: var(--coral); }

/* sections */
.nbb-sect { padding: 80px 0; }
.nbb-sect--alt { background: var(--sea); }
.nbb-sect__title { font-size: 40px; }
.nbb-sect__sub { color: var(--mute); margin: 8px 0 36px; }

.nbb-lobby { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nbb-tile { background: var(--sea); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.nbb-tile__art { height: 150px; border-radius: 10px; display: grid; place-items: center; font: 800 48px "Fraunces", serif; }
.nbb-tile__art--bj { background: var(--felt); color: var(--gold); }
.nbb-tile__art--slot { background: var(--coral); color: var(--sand); letter-spacing: .1em; }
.nbb-tile__art--rou { background: conic-gradient(#b8322a 0 25%, #111 0 50%, #b8322a 0 75%, #111 0); color: var(--ink); }
.nbb-tile__name { font-size: 22px; }
.nbb-tile__txt { color: var(--mute); font-size: 14px; flex: 1; }

.nbb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nbb-steps__item span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--sea-deep); font-weight: 800; }
.nbb-steps__item h3 { margin: 14px 0 6px; font-size: 22px; }
.nbb-steps__item p { color: var(--mute); }

.nbb-notice { border: 1px solid var(--gold); border-radius: var(--r); padding: 30px; background: rgba(232,176,74,.06); }
.nbb-notice__title { margin-bottom: 12px; }
.nbb-notice p + p { margin-top: 12px; }

.nbb-foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--mute); }
.nbb-foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.nbb-foot__nav { display: flex; gap: 18px; }
.nbb-foot__nav a { color: var(--mute); }

/* legal pages */
.nbb-legal { padding: 60px 0; max-width: 760px; }
.nbb-legal h1 { font-size: 42px; margin-bottom: 8px; }
.nbb-legal h2 { font-size: 24px; margin: 32px 0 8px; }
.nbb-legal p, .nbb-legal li { color: #d6dfdc; }
.nbb-legal ul { padding-left: 20px; }

/* modals */
.nbb-modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 14, 17, .88);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.nbb-modal[hidden] { display: none; }
.nbb-modal__box {
  position: relative;
  background: var(--sea); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; width: 100%; max-width: 420px;
  max-height: 92vh; overflow: auto;
}
.nbb-modal__title { font-size: 26px; margin-bottom: 10px; }
.nbb-modal__small { font-size: 12px; color: var(--mute); margin-top: 14px; text-align: center; }
.nbb-modal__x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--mute); font-size: 28px; cursor: pointer; }

.nbb-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.nbb-form__lbl { font-size: 13px; font-weight: 600; color: var(--mute); display: flex; flex-direction: column; gap: 5px; }
.nbb-form__in {
  /* width + min-width: 0 so grid cells can shrink inputs instead of pushing them out of the modal */
  width: 100%; min-width: 0;
  font: 16px "Manrope", sans-serif;
  background: var(--sea-deep); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.nbb-form__in:focus { outline: 2px solid var(--gold); border-color: transparent; }
.nbb-form__dob { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; }
.nbb-form__dob .nbb-form__in { text-align: center; }
.nbb-form__check { font-size: 13px; color: var(--mute); display: flex; gap: 8px; align-items: flex-start; }
.nbb-form__check input { margin-top: 4px; }
.nbb-form__err { color: var(--coral); font-size: 13px; min-height: 1em; }

/* game table */
.nbb-modal--game .nbb-modal__box { max-width: 640px; background: var(--felt); }
.nbb-table__top { display: flex; justify-content: space-between; align-items: center; padding-right: 30px; }
.nbb-coins { background: var(--sea-deep); border-radius: 999px; padding: 4px 14px; font-weight: 800; color: var(--gold); }
.nbb-coins::before { content: "\25CF  "; }

.nbb-bet { display: flex; gap: 8px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.nbb-bet__lbl { font-size: 13px; color: var(--sand); }
.nbb-bet__chip { border: 2px dashed var(--sea-deep); background: var(--gold); color: var(--sea-deep); font-weight: 800; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; }
.nbb-bet__chip.is-on { outline: 3px solid var(--ink); }
.nbb-msg { min-height: 26px; font-weight: 700; text-align: center; margin: 12px 0; color: var(--gold-hi); }
.nbb-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.nbb-hand { margin: 10px 0; }
.nbb-hand__lbl { font-size: 13px; color: var(--sand); }
.nbb-hand__cards { display: flex; gap: 6px; min-height: 86px; margin-top: 4px; }
.nbb-pc { width: 58px; height: 84px; border-radius: 7px; background: var(--sand); color: var(--sea-deep); font: 800 20px "Fraunces", serif; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.nbb-pc--red { color: #b8322a; }
.nbb-pc--back { background: repeating-linear-gradient(45deg, var(--coral) 0 6px, #c24e3a 6px 12px); }

.nbb-reels { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.nbb-reels__cell { width: 100px; height: 110px; border-radius: 12px; background: var(--sand); color: var(--sea-deep); display: grid; place-items: center; font-size: 52px; }
.nbb-reels.is-spin .nbb-reels__cell { animation: nbbShake .12s linear infinite; }
@keyframes nbbShake { 50% { transform: translateY(-5px); } }

.nbb-wheel { width: 150px; height: 150px; margin: 16px auto; border-radius: 50%; display: grid; place-items: center; font: 800 44px "Fraunces", serif; border: 8px solid var(--gold); background: #111; transition: background .3s; }
.nbb-wheel--red { background: #b8322a; }
.nbb-wheel--green { background: #1a7a4a; }

@media (max-width: 820px) {
  .nbb-hero__grid, .nbb-lobby, .nbb-steps { grid-template-columns: 1fr; }
  .nbb-hero__art { height: 260px; }
  .nbb-nav { display: none; }
  .nbb-head__user { margin-left: auto; }
  .nbb-reels__cell { width: 76px; height: 86px; font-size: 38px; }
  /* tighter modal padding so the date row keeps room on phones */
  .nbb-modal { padding: 12px; }
  .nbb-modal__box { padding: 24px 18px; }
}
