/* ============================================================
   Design-System "Kreuzberg-Kneipe" (app-weit, Single Source of Truth)
   ------------------------------------------------------------
   Wird ueber partials/head.php auf JEDER Seite zuerst geladen.
   Draussen (Startseite) Strasse, drinnen (Spiel, Highscore, Geschenk)
   Kneipentisch. Bausteine: Zettel, Gaffa-Tape, Sticker, Edding-Schrift,
   Kronkorken. Buttons: buttons.css.

   Bewusst ohne Glanz, Neon-Verlaeufe und backdrop-filter.
   ============================================================ */

@font-face {
    font-family: 'Marydale';
    src: url('/assets/font/marydale.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Farben */
    --ink: #241c14;
    --ink-deep: #15110d;
    --brick: #b23a2e;
    --brick-hover: #c0473a;
    --yellow: #f4c20d;
    --yellow-hover: #ffd01f;
    --paper: #f3ead6;
    --cream: #efe8da;
    --ink-blue: #1a237e;

    /* Schriften: Display (Sticker, Buttons), Fliesstext, Handschrift (Edding) */
    --font-display: 'Oswald', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-hand: 'Marydale', 'Comic Sans MS', cursive;

    /* Harte Schatten (kein Weichzeichner) */
    --shadow-hard: 10px 14px 0 rgba(0, 0, 0, 0.35);
    --shadow-hard-sm: 4px 6px 0 rgba(0, 0, 0, 0.35);

    /* Gaffa-Tape: Gewebe + Grau, gerissene Enden */
    --tape:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 4px),
        linear-gradient(180deg, #918e88 0%, #7c7973 55%, #6b6863 100%);
    --tape-clip: polygon(0 10%, 3% 0, 97% 6%, 100% 24%, 98% 50%, 100% 78%, 96% 100%, 2% 92%, 0 70%, 2.5% 46%);

    /* Gelber Edding (z. B. Fortschritt) */
    --marker:
        repeating-linear-gradient(-6deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 7px),
        linear-gradient(180deg, #ffe12b 0%, #f2c714 100%);

    /* Kneipentisch mit Abdunklung zum Rand */
    --table-bg:
        radial-gradient(ellipse 80% 75% at 50% 48%, rgba(18, 9, 2, 0) 40%, rgba(12, 6, 0, 0.62) 100%),
        linear-gradient(rgba(74, 38, 6, 0.14), rgba(74, 38, 6, 0.14)),
        url('/assets/static/table.jpg') center / cover no-repeat #2b1a0d;
}

/* --- Kneipentisch als Untergrund --- */
.k-table {
    background: var(--table-bg);
}

/* --- Zettel (liniertes Papier, harter Schatten) --- */
.k-paper {
    position: relative;
    color: var(--ink);
    background:
        repeating-linear-gradient(180deg, transparent 0 31px, rgba(60, 90, 140, 0.12) 31px 32px),
        var(--paper);
    border-radius: 3px;
    box-shadow: var(--shadow-hard);
}

/* Unliniert, z. B. Plakat */
.k-paper--plain {
    background: var(--paper);
}

/* --- Gaffa-Tape oben mittig ueber dem Element --- */
.k-taped::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 1;
    width: 140px;
    height: 30px;
    translate: -50% 0;
    rotate: 2deg;
    background: var(--tape);
    clip-path: var(--tape-clip);
    pointer-events: none;
}

/* --- Sticker-Label (gestanzter heller Rand, harter Schatten) --- */
.k-sticker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--ink-deep);
    box-shadow:
        0 0 0 3px var(--cream),
        3px 4px 0 3px rgba(0, 0, 0, 0.35);
    rotate: -2deg;
}

.k-sticker--brick {
    background: var(--brick);
}

.k-sticker--yellow {
    color: var(--ink);
    background: var(--yellow);
}
