.app-header {
  width:100%;
  max-width:1100px;
  margin-inline:auto;
  font:17px/1.18 'Barlow Condensed','Arial Narrow',sans-serif;
  height:77px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 20px 11px
}

/* Shared icon alignment, including calendar headers whose brand is top-aligned. */
.app-header .account-header-actions { align-self:center }
/* Route body leading must not change the banner height above the common header. */
.preview-note { line-height:1.18 }

.brand {
  display:block
}

.wordmark {
  display:block;
  position:relative;
  width:190px;
  height:54px;
  padding-left:5px;
  isolation:isolate
}

.wordmark b {
  font-family:'Barlow Condensed',Impact,sans-serif;
  display:block;
  font-size:35px;
  font-weight:900;
  line-height:.83;
  letter-spacing:-.7px
}

.wordmark-line {
  position:relative;
  display:block;
  width:max-content;
  white-space:nowrap;
  transform:skewX(-12deg) scaleX(1.3);
  transform-origin:left center;
  text-shadow:1px 1px 0 var(--ink),2px 2px 0 #326682
}

.wordmark-line:first-child {
  color:#79a9c2;
  text-shadow:none;
  filter:drop-shadow(1px 1px 0 #326682)
}

.wordmark-line:last-child::after {
  content:'';
  position:absolute;
  bottom:-5px;
  left:0;
  width:100%;
  height:2px;
  background:var(--yellow);
  clip-path:polygon(0 0,100% 0,97% 100%,0 100%)
}

.icon-button {
  display:grid;
  place-items:center;
  min-width:44px;
  min-height:44px;
  border-radius:3px
}

.profile-button .icon {
  width:28px;
  height:28px;
  stroke-width:1.5
}

.ink-panel {
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden
}

.paper-panel {
  background:var(--grain),var(--paper);
  color:var(--ink);
  border-radius:var(--radius)
}

.yellow-panel {
  background:var(--grain),var(--yellow);
  color:var(--ink);
  border-radius:var(--radius)
}

.arrow-button {
  display:grid;
  place-items:center;
  flex:none;
  width:44px;
  height:44px;
  background:var(--yellow);
  color:var(--ink);
  border-radius:3px;
  transition:background .18s,transform .18s var(--ease)
}

.arrow-button .icon {
  width:30px;
  height:30px;
  stroke-width:2.7
}

.section-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px
}

.section-topline h2,.section-title {
  font-family:var(--display);
  font-size:18px;
  font-weight:400;
  line-height:1.1;
  text-transform:uppercase
}

.text-link {
  display:flex;
  align-items:center;
  gap:5px;
  min-height:44px;
  padding:0;
  font-size:14px;
  white-space:nowrap
}

.text-link .icon {
  width:19px;
  height:19px
}

.bottom-nav {
  height:calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding:6px 8px calc(5px + env(safe-area-inset-bottom));
  position:fixed;
  inset:auto 0 0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border-top:1px solid var(--line);
  background:var(--ink-deep);
  z-index:var(--z-nav)
}

.nav-item {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  padding:2px 0;
  font-size:14px;
  font-weight:600;
  min-width:44px;
  min-height:44px
}

.nav-item .icon {
  width:26px;
  height:26px;
  stroke-width:1.7
}

.nav-item.is-active {
  color:var(--yellow)
}

.nav-item.is-active .icon {
  fill:currentColor;
  stroke-width:1.3
}

.detail-dialog {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--body);
  max-width:490px;
  width:calc(100% - 28px);
  padding:0;
  max-height:85dvh;
  overflow:auto;
  box-shadow:0 18px 70px #0005
}

.detail-dialog::backdrop {
  background:#000b;
  backdrop-filter:blur(4px)
}

.dialog-shell {
  position:relative;
  padding:27px 24px 24px
}

.dialog-close {
  position:absolute;
  top:8px;
  right:8px
}

.dialog-eyebrow {
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--yellow);
  padding-right:40px;
  margin-bottom:12px
}

.dialog-shell h2 {
  font-size:clamp(30px,8vw,42px);
  line-height:1.1;
  padding-right:20px;
  margin-bottom:22px
}

.dialog-shell p {
  font-size:20px;
  line-height:1.35
}

.dialog-shell .dialog-eyebrow,.dialog-shell .dialog-note {
  font-size:14px
}

.dialog-note {
  margin-top:22px;
  border-top:1px solid #ffffff30;
  padding-top:15px;
  color:var(--muted)
}

.dialog-match {
  display:flex;
  align-items:center;
  justify-content:space-evenly;
  gap:20px;
  padding:10px 0 20px
}

.dialog-match img {
  width:90px;
  max-height:100px;
  object-fit:contain
}

.dialog-match b {
  font-size:48px;
  color:var(--yellow)
}

.dialog-shell .dialog-match-date {
  font-size:30px;
  color:var(--yellow);
  margin-bottom:8px
}

.dialog-result {
  display:flex;
  flex-direction:column;
  gap:8px
}

.dialog-result span {
  font-size:65px;
  color:var(--yellow);
  line-height:1.2
}

.dialog-symbol {
  display:grid;
  place-items:center;
  background:var(--yellow);
  color:var(--ink);
  width:76px;
  height:76px;
  margin-bottom:20px;
  transform:rotate(-3deg)
}

.dialog-symbol .icon {
  width:48px;
  height:48px
}

.dialog-photo img {
  width:100%;
  max-height:50dvh;
  object-fit:contain;
  background:var(--ink-deep)
}

.dialog-photo figcaption {
  font-size:12px;
  color:var(--muted);
  margin-top:8px
}

.gallery-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:15px
}

.secondary-button {
  min-width:44px;
  min-height:44px;
  border:1px solid var(--line);
  font-size:24px
}

.ranking-table {
  width:100%;
  border-collapse:collapse;
  font-size:20px
}

.ranking-table caption {
  text-align:left;
  margin-bottom:15px;
  color:var(--muted);
  font-size:16px
}

.ranking-table th,.ranking-table td {
  text-align:left;
  padding:11px 8px;
  border-bottom:1px solid #ffffff20
}

.ranking-table thead {
  font-size:14px;
  color:var(--muted)
}

.ranking-table .is-sqbb {
  background:var(--yellow);
  color:var(--ink)
}

.destination-page {
  padding:0 var(--page-padding) 28px;
  min-height:500px;
  outline:none
}

.back-link {
  display:flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  min-height:44px;
  margin-bottom:18px
}

.back-link .icon {
  transform:rotate(180deg)
}

.destination-eyebrow {
  color:var(--yellow);
  text-transform:uppercase;
  font-size:13px;
  letter-spacing:1px
}

.destination-page h1 {
  font-size:clamp(40px,10vw,68px);
  line-height:1.15;
  margin:8px 0 20px
}

.destination-status {
  font-size:22px;
  margin-bottom:16px
}

.destination-games,.prediction-previews {
  display:grid;
  gap:10px
}

.destination-game {
  display:flex;
  align-items:center;
  gap:14px;
  min-height:88px;
  padding:16px;
  text-align:left
}

.destination-game strong {
  flex:1;
  font-size:24px
}

.daily-pack-preview {
  padding:30px 20px;
  text-align:center
}

.daily-pack-preview .icon {
  width:76px;
  height:76px;
  margin:0 auto 20px
}

.daily-pack-preview h2 {
  font-size:30px;
  margin-bottom:10px
}

.daily-pack-preview p {
  font-size:22px
}

.prediction-preview {
  padding:16px
}

.prediction-preview h2 {
  font-size:24px;
  margin:8px 0
}

.prediction-preview small {
  font-family:var(--body);
  font-size:14px;
  margin:0 5px
}

.prediction-preview>span {
  font-size:13px
}

.destination-note {
  margin-top:22px;
  color:var(--muted);
  font-size:17px;
  line-height:1.4;
  max-width:50ch
}

@media(hover:hover) {
  .icon-button:hover,.nav-item:hover {
    color:var(--yellow)
  }
  .match-link:hover .arrow-button,.album-link:hover .arrow-button {
    transform:translateX(2px);
    background:var(--paper)
  }

  .text-link:hover {
    color:var(--yellow)
  }
  .result-card:hover,.standing-card:hover {
    filter:brightness(1.06)
  }
}

@container app (min-width:720px) {
  .destination-page {
    max-width:700px;
    margin:auto;
    padding-bottom:40px
  }
  .app-header {
    height:94px;
    padding:18px 32px
  }
  .wordmark b {
    font-size:40px
  }
  .bottom-nav {
    position:absolute;
    max-width:none;
    height:78px;
    padding:10px 20px
  }
  .nav-item {
    flex-direction:row;
    gap:10px;
    font-size:18px
  }
  .nav-item .icon {
    width:25px;
    height:25px
  }
}

@media(min-width:760px) {
  .bottom-nav {
    position:absolute;
  }
}

