/* ============================================================
   Shared game landing page ("Oyun Kur" / "Oyuna Katıl")
   Used by every game's home page so they look identical.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Patrick+Hand&display=swap');

:root {
    --paper: #fdfbf0;
    --paper-line: #cfe3f0;
    --margin-red: #eb9a9a;
    --ink: #21326b;
    --ink-soft: #4a5b8c;
    --pencil: #6f6f6f;
    --blue: #2f6fb0;
    --hand-head: "Caveat", "Marker Felt", "Bradley Hand", "Chalkboard SE", cursive;
    --hand: "Patrick Hand", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
    --mono: "Courier New", Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--hand);
    font-size: 18px;
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    padding: 42px 16px 56px;
    background-color: #4a3423;
    background-image:
        radial-gradient(ellipse at 25% 5%, rgba(255, 244, 214, 0.14), transparent 55%),
        repeating-linear-gradient(93deg, rgba(0, 0, 0, 0.12) 0 3px, rgba(255, 255, 255, 0.025) 3px 9px),
        linear-gradient(160deg, #6d4b31 0%, #4a3220 45%, #352416 100%);
    background-attachment: fixed;
}

.game-container {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 38px 42px 46px 74px;
    background-color: var(--paper);
    background-image:
        linear-gradient(90deg, transparent 0 62px, var(--margin-red) 62px 63px, transparent 63px),
        repeating-linear-gradient(to bottom, transparent 0 31px, var(--paper-line) 31px 32px);
    background-position: 0 0, 0 6px;
    border-radius: 2px;
    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.38),
        0 3px 8px rgba(0, 0, 0, 0.25),
        inset 0 0 90px rgba(197, 176, 123, 0.18);
}

.game-container::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    width: 150px;
    height: 30px;
    transform: translateX(-50%) rotate(-2.5deg);
    background: linear-gradient(180deg, rgba(255, 250, 214, 0.72), rgba(240, 232, 180, 0.55));
    border-left: 1px dashed rgba(180, 165, 110, 0.6);
    border-right: 1px dashed rgba(180, 165, 110, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

/* ---------- Header ---------- */
.game-header {
    text-align: center;
    margin: 4px 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px dashed rgba(59, 110, 165, 0.3);
}

.game-header h1 {
    font-family: var(--hand-head);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ink);
    line-height: 1.05;
    text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(33, 50, 107, 0.12);
}

.game-header p {
    margin: 8px auto 0;
    max-width: 640px;
    color: var(--ink-soft);
}

.room-code {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 16px;
    font-family: var(--mono);
    font-size: 1.05rem;
    letter-spacing: 3px;
    background: #fff6b7;
    border: 1px solid rgba(33, 50, 107, 0.25);
    border-radius: 6px;
    transform: rotate(-0.6deg);
}

/* ---------- Buttons ---------- */
.game-btn,
.primary {
    display: inline-block;
    padding: 12px 22px;
    font-family: var(--hand);
    font-size: 1.1rem;
    letter-spacing: 0.6px;
    color: #fff;
    background: var(--blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(33, 50, 107, 0.35);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.game-btn:hover,
.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(33, 50, 107, 0.35);
}

.game-btn:active,
.primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(33, 50, 107, 0.35);
}

.game-btn:disabled,
.primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Home cards ---------- */
.home-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.game-card {
    padding: 26px 24px;
    background: #fff;
    border: 2px solid rgba(59, 110, 165, 0.35);
    border-radius: 12px;
    box-shadow: 0 6px 0 rgba(59, 110, 165, 0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-card h2 {
    font-family: var(--hand-head);
    font-size: 2rem;
    color: var(--ink);
}

.game-card p {
    color: var(--ink-soft);
    flex-grow: 1;
}

.game-card input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
    border: 1.5px solid rgba(33, 50, 107, 0.35);
    border-radius: 8px;
    background: #fffdf5;
}

.game-card input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 111, 176, 0.18);
}

.footer {
    margin-top: 34px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--pencil);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .game-container {
        padding: 30px 20px 36px 34px;
    }
}
