/* Shared game (Play) styles — single source for Blob.Web and Blob.Debug. */
.play { height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 16px 24px; overflow: hidden; background: #44b9fc; color: #1c1e22; }
.play-top { display: flex; justify-content: space-between; align-items: center; }
.play-title { font-size: 40px; font-weight: 800; color: #f97316; }
.play-top-right { display: flex; align-items: center; gap: 10px; }
.play-help {
    height: 40px; flex-shrink: 0; padding: 0 16px; border-radius: 20px;
    border: 2px solid #b8cbe8; background: #fff; color: #2f6fed;
    font-size: 18px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.play-help::after { content: "How to play"; font-size: 14px; font-weight: 600; }
.play-help:hover { background: #eaf2ff; }

.howto-overlay {
    position: fixed; inset: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(15, 17, 22, 0.55);
}
.howto-card {
    position: relative; width: 100%; max-width: 460px;
    background: #fff; color: #1c1e22; border-radius: 20px;
    padding: 32px 36px; border-top: 6px solid #2f6fed;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.howto-close {
    position: absolute; top: 12px; right: 16px;
    border: none; background: transparent; cursor: pointer;
    font-size: 26px; line-height: 1; color: #8a8f99;
}
.howto-close:hover { color: #1c1e22; }
.howto-title { margin: 0 0 16px; font-size: 26px; font-weight: 800; color: #1a1c20; }
.howto-steps {
    margin: 0 0 24px; padding-left: 22px;
    display: flex; flex-direction: column; gap: 10px;
    font-size: 15px; line-height: 1.4; color: #3a3e46;
}
.howto-steps b { color: #2f6fed; }
.howto-start { width: 100%; }
.play-top select {
    background: #fff; color: #1c1e22; border: 1px solid #d3d6dc;
    border-radius: 6px; padding: 6px 10px; font-size: 13px;
}
.play-clue {
    align-self: center; text-align: center; max-width: 1100px; margin: 0 520px 0 0;
    font-size: 42px; line-height: 1.2; font-weight: 700; font-style: italic; color: #1a1c20;
}
.play-stage { flex: 1; display: flex; gap: 20px; min-height: 0; }
.play-calendar {
    width: 420px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px;
    background: #ffffff; border-radius: 20px; padding: 28px; align-self: start;
}
.cal-head { font-size: 26px; font-weight: 700; color: #1a1c20; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-weekday { font-size: 14px; font-weight: 700; color: #8a8f99; text-align: center; padding-bottom: 4px; }
.cal-cell {
    aspect-ratio: 1; border: none; border-radius: 12px; background: #f0f2f5;
    color: #5a5f68; font-size: 18px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.cal-cell.empty { background: transparent; }
.cal-cell:disabled { cursor: not-allowed; opacity: 0.45; }
.cal-cell.has-puzzle { cursor: pointer; background: #dbe7ff; color: #2f6fed; }
.cal-cell.has-puzzle:hover { background: #c5d8ff; }
.cal-cell.has-puzzle.active { background: #2f6fed; color: #ffffff; }
.cal-cell.today { outline: 3px solid #2f6fed; color: #2f6fed; }
.cal-cell.today.active { color: #ffffff; }
.cal-note { font-size: 14px; color: #8a8f99; text-align: center; margin: 0; }
.play-board-area {
    flex: 1; min-width: 0; min-height: 0;
    display: flex; align-items: center; justify-content: center;
    container-type: size;
}
.play-board {
    width: min(100cqw, 100cqh * var(--board-ratio, 1));
    aspect-ratio: var(--board-ratio, 1);
    background: #ffffff; border: 2px solid #b8cbe8; border-radius: 16px;
}
.play-board svg { width: 100%; height: 100%; display: block; }
.play-board .emoji { font-size: 24px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.play-sprite { pointer-events: none; }
.play-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.sel-fill { fill: #2f6fed; fill-opacity: 0.3; pointer-events: none; }
.sel-outline { fill: none; stroke: #2f6fed; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.wrong-fill { fill: #e5484d; fill-opacity: 0.55; pointer-events: none; }
.wrong-outline { fill: none; stroke: #d0343a; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.play-guess-wrap { position: relative; display: flex; flex-direction: column; }
.wrong-toast {
    position: absolute; bottom: calc(100% + 12px); left: 0; right: 0;
    text-align: center; color: #e5484d; font-size: 18px; font-weight: 700;
    background: #ffffff; padding: 12px 16px; border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    pointer-events: none; animation: wrong-toast 3s ease forwards;
}
@keyframes wrong-toast {
    0% { opacity: 0; transform: translateY(8px); }
    12% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(0); }
}

.play-side { width: 500px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.play-spacer { flex: 1; }
.play-lupas {
    flex-shrink: 0;
    display: flex; justify-content: center; align-items: center; gap: 8px;
    font-size: 34px; line-height: 1;
    background: #f5f6f8; border: 1px solid #e3e5e9; border-radius: 16px; padding: 18px;
}
.lupa { position: relative; display: inline-block; }
.lupa-empty { opacity: 0.2; filter: grayscale(1); }
.lupa-fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; }

.play-tips { display: flex; flex-direction: column; gap: 12px; }
.play-tip {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 18px; border-radius: 16px;
    background: #f5f6f8; border: 1px solid #e3e5e9;
    font-size: 24px; font-weight: 700; font-family: inherit; color: inherit; text-align: left;
}
.play-tip.locked { cursor: pointer; color: #5a5f68; }
.play-tip.locked:hover { background: #eceef1; border-color: #cfd3da; }
.play-tip.revealed { color: #1a1c20; }
.play-tip .tip-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.play-tip .tip-cost { margin-left: auto; font-size: 15px; font-weight: 600; color: #8a8f99; }

.play-guess {
    flex-shrink: 0; padding: 20px; border-radius: 12px; border: none;
    font-size: 20px; font-weight: 600; cursor: pointer; background: #2f6fed; color: #fff;
}
.play-guess:hover:not(:disabled) { background: #285fd0; }
.play-guess:disabled { background: #d3d6dc; color: #9aa0a8; cursor: not-allowed; }
.play-overlay {
    position: fixed; inset: 0; z-index: 50;
    background: transparent; pointer-events: none;
}
.play-overlay-card {
    position: fixed; pointer-events: auto;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    background: #fff; border-radius: 20px; padding: 32px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); text-align: center;
    border-top: 6px solid #b3261e;
}
.play-overlay.win .play-overlay-card { border-top-color: #1e7a37; }
.play-overlay-title { font-size: 30px; font-weight: 800; color: #1a1c20; }
.play-overlay.win .play-overlay-title { color: #1e7a37; }
.play-overlay.lose .play-overlay-title { color: #b3261e; }
.play-overlay-sub { font-size: 15px; color: #5a5f68; }
.play-overlay-card .play-guess { margin-top: 8px; padding: 12px 28px; font-size: 15px; }
.howto-start { padding: 14px; font-size: 15px; }

.spotlight-backdrop { position: fixed; inset: 0; z-index: 40; pointer-events: none; background: rgba(15, 17, 22, 0.85); }

.blob-reveal {
    fill: none; stroke: #35d75f; stroke-width: 7;
    stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(53, 215, 95, 0.9));
}
