/* 11/20/2026 - Bring back the roomy play cards and fit the original six tilted tiles into the gallery bar. */
/* 11/19/2026 - Put the daily board beside four play rows and reveal the puzzle action on hover, focus or touch. */
/* 11/19/2026 - Give the actual daily board the first screen and keep game links easy to scan on phones. */
/* 11/18/2026 - Make room for solo and analysis with a two-column play menu and compact study links. */
/* 11/17/2026 - Give the play menu a clear hierarchy and comfortable targets across desktop and phone screens. */
.home-page {
    max-width: 72.5rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.125rem);
    color: var(--ink);
    font-family: var(--font, system-ui);
}
.home-header, .home-nav { display: flex; align-items: center; }
.home-header { justify-content: space-between; gap: .5rem 1rem; min-height: 4.5rem; border-bottom: 1px solid var(--line); }
.home-wordmark { font: 500 1.85rem/1 var(--display, Georgia, serif); letter-spacing: -.035em; white-space: nowrap; }
.home-nav { gap: clamp(.65rem, 2.5vw, 1.6rem); }
.home-page a { color: var(--ink); text-decoration: none; }
.home-nav > a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9375rem; }
.home-nav > a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.home-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
    padding: clamp(1.75rem, 4vw, 3.5rem) 0;
}
.home-puzzle h1 {
    margin: 0;
    font: 500 clamp(2rem, 3.5vw, 2.8rem)/1.1 var(--display, Georgia, serif);
    letter-spacing: -.035em;
}
.daily-edition { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .85rem; margin: .45rem 0 1rem; }
.daily-edition span { font-weight: 600; }
.daily-edition time { color: var(--muted); font-size: .875rem; }
.home-daily { display: block; width: 100%; max-width: 26rem; border-radius: .4rem; }
.home-board {
    display: grid;
    grid-template-columns: .85rem minmax(0, 1fr);
    grid-template-rows: auto .9rem;
    gap: .2rem;
    width: 100%;
    color: var(--muted);
    font: 550 .75rem/1 var(--font, system-ui);
}
.home-playing-surface { position: relative; }
.daily-overlay {
    position: absolute; inset: 0; z-index: 3;
    display: grid; place-items: center;
    padding: 1rem; border-radius: .45rem;
    background: rgb(10 13 11 / 75%); color: #fff;
    text-align: center; font: 600 clamp(1.25rem, 3vw, 1.8rem)/1.2 var(--display, Georgia, serif);
    opacity: 0; transition: opacity .14s ease-out; pointer-events: none;
}
.home-daily:focus-visible .daily-overlay { opacity: 1; }
@media (hover: hover) { .home-daily:hover .daily-overlay { opacity: 1; } }
.daily-link-text { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--gold); font-weight: 600; }
.daily-touch-action { display: none; }
@media (hover: none) { .daily-touch-action { display: inline-flex; margin-inline-start: 1.05rem; } }
.home-ranks, .home-files { display: grid; place-items: center; }
.home-ranks { grid-template-rows: repeat(6, 1fr); padding-block: .4rem; }
.home-files { grid-column: 2; grid-template-columns: repeat(6, 1fr); padding-inline: .4rem; }
.home-squares {
    display: grid;
    grid-template: repeat(6, minmax(0, 1fr)) / repeat(6, minmax(0, 1fr));
    aspect-ratio: 1;
    gap: 2px;
    padding: .4rem;
    border: 1px solid var(--cell-line);
    border-radius: .45rem;
    background: var(--board);
    box-shadow: 0 .35rem .9rem #0002;
}
.home-square {
    display: grid;
    padding: 2px;
    min-height: 0;
    border: 1px solid var(--cell-line);
    border-radius: .2rem;
    background: var(--cell);
}
.home-tile {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--tile-edge);
    border-radius: .2rem;
    background: linear-gradient(145deg, var(--tile-face), var(--tile-face-end));
    box-shadow: inset 0 -2px 0 var(--tile-foot);
    color: var(--faction-color);
}
.home-choices { display: flex; flex-direction: column; gap: .75rem; }
.home-choice {
    display: flex;
    align-items: center;
    gap: clamp(.875rem, 1.75vw, 1.125rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: .625rem;
    background: var(--surface);
    transition: transform .15s, border-color .15s;
}
.home-page .home-choice-primary { border-color: var(--gold); background: var(--gold); color: var(--on-accent); }
.home-choice-icon { flex: none; display: grid; place-items: center; width: 2.125rem; }
.home-choice-icon .ui-icon { width: 1.7rem; height: 1.7rem; }
.home-choice-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.home-choice-copy strong { font: 400 clamp(1.35rem, 2.3vw, 1.65rem)/1.2 var(--display, Georgia, serif); }
.home-choice-copy small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.home-choice-primary small { color: inherit; }
.home-choice-arrow { flex: none; font-size: 1.5rem; line-height: 1; }
.home-page .home-editor {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 2.75rem; padding: .5rem .25rem;
    color: var(--muted); font-size: .9375rem;
}
.home-page .home-editor:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.home-footer { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.home-gallery {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
    padding: clamp(1rem, 2.75vw, 2rem);
    border: 1px solid var(--line); border-radius: .625rem; background: var(--surface);
}
.home-pieces {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center;
    gap: clamp(.3rem, .8vw, .5625rem); width: min(100%, 21.9375rem); padding-block: .5rem;
}
.home-piece {
    display: grid; place-items: center; aspect-ratio: 51 / 57;
    transform: rotate(var(--piece-angle)); background: var(--tile-face, #f3e8ce); color: var(--faction-color);
    border: 1px solid #b5a57c; border-radius: 5px; box-shadow: 0 4px 0 #9d8b64, 0 9px 12px #0002;
}
.home-piece .piece-icon { width: 67%; height: 64%; fill: currentColor; }
.home-gallery-label { display: inline-flex; align-items: center; gap: 1rem; color: var(--gold); white-space: nowrap; }
.home-gallery-label span { font-size: 1.25rem; }
@media (hover: hover) {
    .home-choice:hover { transform: translateY(-2px); border-color: var(--gold); }
    .home-gallery:hover { border-color: var(--gold); }
    .home-gallery:hover .home-gallery-label { text-decoration: underline; text-underline-offset: .2em; }
}
.home-page a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 44rem) {
    .home-header { min-height: 3.5rem; }
    .home-wordmark { font-size: 1.55rem; }
    .home-main { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.4rem 0; }
    .home-puzzle, .home-choices, .home-gallery { width: min(100%, 26rem); margin-inline: auto; }
    .home-gallery { flex-direction: column; align-items: stretch; }
    .home-pieces { width: min(100%, 18rem); margin-inline: auto; }
    .home-gallery-label { justify-content: space-between; }
}
@media (max-width: 24rem) {
    .home-header { flex-wrap: wrap; padding-block: .4rem; }
    .home-nav { margin-inline-start: auto; }
    .home-nav > a { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
    .daily-overlay, .home-choice { transition: none; }
    .home-choice:hover { transform: none; }
}
