.econ-page { background: #f3f6f8; color: #172d48; }
.econ-page [hidden] { display: none !important; }
.econ-page .skip-link:not(:focus) { clip-path: inset(50%); }
.econ-site-header { max-width: 1180px; margin: auto; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.econ-site-header img { width: 232px; }
.back-link { text-decoration: none; font-size: .9rem; font-weight: 650; padding: 10px 0; }
.econ-shell { max-width: 848px; margin: 18px auto 0; padding: 0 28px 24px; }
.econ-heading { border-top: 3px solid #0a3472; padding: 28px 0 26px; }
.econ-eyebrow { font-size: .68rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 10px; }
.signal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #05867f; margin-right: 7px; }
.econ-heading h1 { margin: 0; font-size: clamp(1.9rem, 6.8vw, 3.65rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 850; color: #062454; }
.econ-heading h1 span { color: #098782; }
.econ-subtitle { font-size: 1rem; color: #526277; margin: 12px 0 0; }
.landing-intro { border-top: 1px solid #d7e0e7; padding-top: 27px; }
.landing-intro h2 { font-size: 1.32rem; letter-spacing: -.025em; margin: 0; }
.landing-intro p { margin: 10px 0 23px; color: #526277; }
.domain-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.domain-card { background: #fff; color: #172d48; border: 1px solid #bccbd7; border-radius: 14px; padding: 23px; text-align: left; display: flex; flex-direction: column; cursor: pointer; box-shadow: 0 6px 20px #06245406; transition: transform .15s, border-color .15s; }
.domain-card:hover { transform: translateY(-3px); border-color: #0a3472; }
.domain-overline { font-size: .62rem; letter-spacing: .09em; font-weight: 750; color: #526277; }
.domain-name { display: flex; justify-content: space-between; align-items: center; font-size: 2.2rem; letter-spacing: -.04em; font-weight: 750; margin: 10px 0 4px; }
.domain-name span { font-size: 1.6rem; font-weight: 400; }
.domain-description { font-size: .85rem; color: #526277; }
.domain-status { border-top: 1px solid #e2e8ed; margin-top: 23px; padding-top: 14px; font-size: .78rem; font-weight: 700; }
.stats-strip { display: flex; flex-wrap: wrap; gap: 24px; padding: 22px 0 8px; }
.stat { display: flex; flex-direction: column; min-width: 74px; }
.stat strong { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.04em; }
.stat span { font-size: .72rem; color: #526277; margin-top: 5px; }
.streak-note { font-size: .77rem; color: #526277; margin: 12px 0 23px; }
.how-to { border-top: 1px solid #d7e0e7; padding: 17px 0; font-size: .87rem; color: #526277; }
.how-to summary { color: #172d48; cursor: pointer; font-weight: 650; min-height: 32px; }
.how-to ol { padding-left: 22px; }
.how-to li { margin: 8px 0; }
.econ-footer { border-top: 1px solid #d7e0e7; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; margin-top: 26px; font-size: .7rem; color: #526277; }
.game-topline { border-top: 1px solid #d7e0e7; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-size: .75rem; color: #526277; }
.text-button { border: 0; background: transparent; padding: 10px 0; min-height: 44px; color: #172d48; cursor: pointer; font-size: .85rem; font-weight: 650; }
.board-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.board-heading .econ-eyebrow { margin-bottom: 3px; color: #526277; }
.board-heading h2 { font-size: 1.6rem; margin: 0; letter-spacing: -.04em; }
.daily-label { font-size: .65rem; font-weight: 700; letter-spacing: .07em; border: 1px solid #becbd7; padding: 7px 10px; border-radius: 5px; }
#instructions { color: #526277; font-size: .88rem; margin: 12px 0 19px; }
.tile-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.tile { position: relative; min-height: 98px; padding: 15px 9px; background: #fff; border: 1px solid #bbc5ce; border-radius: 9px; color: #273545; font-size: .86rem; line-height: 1.3; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; transition: background .13s, box-shadow .13s; }
.tile:hover { background: #f0f2f4; border-color: #677585; }
.tile[aria-pressed="true"] { background: #34404c; color: #fff; border-color: #34404c; box-shadow: inset 0 0 0 2px #fff; }
.tile[aria-pressed="true"]::after { content: '✓'; position: absolute; right: 6px; top: 3px; font-size: .66rem; }
.econ-page :focus-visible { outline: 3px solid #08716d; outline-offset: 4px; }
.board-status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 18px; font-size: .78rem; font-weight: 650; }
.strike-dots { letter-spacing: .1em; margin-right: 5px; color: #34404c; }
.feedback { min-height: 26px; font-size: .83rem; margin: 12px 0; color: #526277; }
.feedback.miss { color: #9b3028; }
.game-actions { display: flex; gap: 10px; }
.econ-button { min-height: 46px; padding: 10px 19px; border-radius: 8px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.econ-button.secondary { color: #172d48; background: #fff; border: 1px solid #b8c5d0; }
.econ-button.primary { color: #fff; background: #062454; border: 1px solid #062454; }
.game-actions .primary { margin-left: auto; min-width: 150px; }
.econ-button:hover:not(:disabled) { box-shadow: 0 3px 9px #06245424; }
.econ-button:disabled { opacity: .42; cursor: not-allowed; }
.solved-groups { display: grid; gap: 9px; }
.connection { border-radius: 9px; padding: 15px 19px; }
.connection:last-child { margin-bottom: 9px; }
.connection[data-difficulty="1"] { background: #b8e7df; color: #113e40; }
.connection[data-difficulty="2"] { background: #237f80; color: #fff; }
.connection[data-difficulty="3"] { background: #235c98; color: #fff; }
.connection[data-difficulty="4"] { background: #062454; color: #fff; }
.connection-meta { display: block; font-size: .61rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.connection h3 { font-size: .95rem; margin: 0 0 4px; }
.connection-terms { font-size: .78rem; font-weight: 650; margin: 0; }
.connection-explanation { font-size: .78rem; margin: 7px 0 0; line-height: 1.5; }
.results { margin-top: 22px; background: #fff; border: 1px solid #b8c5d0; border-top: 3px solid #087c77; border-radius: 10px; padding: 24px; }
.results h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.03em; }
.results p { font-size: .86rem; }
.results .stats-strip { padding-top: 10px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { border: 1px solid #b89959; background: #fff8e7; border-radius: 8px; padding: 12px 15px; font-size: .85rem; }
#share-fallback { display: block; margin-top: 16px; font-size: .85rem; }
#share-text { width: 100%; margin-top: 8px; padding: 10px; }
.tile-board.miss { animation: nudge .24s ease-in-out; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 560px) {
  .econ-site-header { padding: 16px; gap: 12px; }
  .econ-site-header img { width: 184px; }
  .back-link { font-size: .75rem; }
  .econ-shell { padding: 0 16px 20px; margin-top: 4px; }
  .econ-heading { padding: 22px 0; }
  .domain-card { padding: 16px 12px; }
  .domain-choices { gap: 10px; }
  .domain-name { font-size: 1.8rem; }
  .domain-overline { font-size: .56rem; }
  .domain-description { font-size: .75rem; }
  .domain-status { font-size: .72rem; margin-top: 16px; }
  .tile-board { gap: 6px; }
  .tile { font-size: .72rem; min-height: 92px; padding: 14px 5px; }
  .game-actions { gap: 7px; }
  .econ-button { padding: 10px 11px; font-size: .75rem; }
  .game-actions .primary { min-width: 0; flex: 1; }
  .stats-strip { gap: 17px; }
  .results { padding: 20px 16px; }
  .connection { padding: 13px; }
  .playing .econ-site-header { padding-block: 12px; }
  .playing .econ-site-header img { width: 150px; }
  .playing .econ-heading { padding: 16px 0; }
  .playing .econ-heading .econ-eyebrow { display: none; }
  .playing .econ-subtitle { margin-top: 5px; font-size: .85rem; }
  .game-actions { position: sticky; bottom: 0; z-index: 2; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: #f3f6f8; border-top: 1px solid #d7e0e7; }
  .tile { scroll-margin-block: 18px 90px; }
}
@media (max-width: 420px) {
  .tile-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { font-size: .8125rem; line-height: 1.25; min-height: 80px; padding: 13px 8px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .econ-page *, .econ-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
