/* Tema B2 - Polni hlaseni s patinou: zestarly papir, psaci stroj, razitka, spony, skvrny od kafe */
:root {
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --desk: #5b4a32; --paper: #efe2c2; --paper2: #e8d7af; --text: #2b2214; --muted: #6e5a37; --line: #b7a072;
  --ink: #22386b; --stamp: #a3241a; --stamp-bg: rgba(163,36,26,.06);
  --allies: #2d4a24; --allies-bg: rgba(84,110,60,.18); --axis: #7a2618; --axis-bg: rgba(160,70,40,.16);
  --gold: #7c5200; --silver: #4a463d; --bronze: #87401c; --shame: #a3241a;
  --hl: rgba(255, 214, 80, .55);
  --type: "Courier New", Courier, "Nimbus Mono PS", monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --desk: #17120b; --paper: #3a3020; --paper2: #332a1b; --text: #efe2c2; --muted: #c2ad82; --line: #6b5a3a;
    --ink: #b9cbf2; --stamp: #f07a68; --stamp-bg: rgba(240,122,104,.08); --allies: #c7dba8; --allies-bg: rgba(120,150,90,.2); --axis: #f4b9a2; --axis-bg: rgba(190,90,60,.2);
    --gold: #f2c862; --silver: #ddd6c4; --bronze: #eba07a; --shame: #f07a68; --hl: rgba(255, 200, 60, .25); }
}
* { box-sizing: border-box; }
html { background: var(--desk); }
body { margin: 0; color: var(--text); font: 15px/1.6 var(--type); min-height: 100vh;
  background: var(--noise), radial-gradient(ellipse at 50% 30%, rgba(255,240,200,.08), rgba(0,0,0,.45) 85%), var(--desk); }
main { max-width: 1060px; margin: 0 auto; padding: 26px 18px 50px; }
a { color: inherit; }
.link { color: var(--ink); text-decoration: underline dotted 1px; text-underline-offset: 3px; cursor: pointer; }
.link:hover { background: var(--hl); text-decoration-style: solid; }
p { margin: 0; } .muted { color: var(--muted); font-size: 13px; }
h1, h2, h3, td, th, p, b, span, li { text-shadow: 0 0 .6px rgba(43,34,20,.55), .35px .25px 0 rgba(43,34,20,.18); }

/* hlavicka jako titulni list */
header { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; padding: 18px 22px 14px;
  background: var(--fibers), var(--noise), radial-gradient(ellipse at 15% 0%, rgba(255,250,230,.55), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(120,80,20,.28), transparent 60%), var(--paper);
  box-shadow: inset 0 0 50px rgba(110,75,25,.35), 3px 5px 10px rgba(0,0,0,.35); transform: rotate(-.3deg); }
h1 { font-size: 34px; font-weight: 700; margin: 0; letter-spacing: 7px; text-transform: uppercase; }
h1 a { text-decoration: none; }
h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: 2px; text-transform: uppercase; }
h3 { font-size: 13px; font-weight: 700; margin: 14px 0 6px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.report { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.secret, .pill, .b, .ann { opacity: .92; }
.secret { display: inline-block; border: 3px double var(--stamp); color: var(--stamp); padding: 1px 8px; transform: rotate(-6deg); margin-left: 14px; font-weight: 700; letter-spacing: 2px; background: var(--stamp-bg); }
.pill { font-size: 12px; padding: 3px 10px; border: 2px solid currentColor; text-transform: uppercase; letter-spacing: 2px; transform: rotate(3deg); display: inline-block; font-weight: 700; }
.on { color: #2d5a24; } .off { color: var(--stamp); }

/* listy papiru */
.card, .metric, .cal { position: relative; border: 0;
  background: var(--fibers), var(--noise), radial-gradient(ellipse at 10% 0%, rgba(255,250,230,.5), transparent 55%), radial-gradient(ellipse at 95% 100%, rgba(120,80,20,.22), transparent 55%), var(--paper);
  box-shadow: inset 0 0 40px rgba(110,75,25,.3), 2px 4px 8px rgba(0,0,0,.35); }
.card { padding: 16px 20px; margin-bottom: 18px; }
.card:nth-of-type(odd) { transform: rotate(-.25deg); } .card:nth-of-type(even) { transform: rotate(.3deg); }
.card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; background: linear-gradient(315deg, var(--desk) 50%, rgba(0,0,0,.18) 50%, var(--paper2) 60%); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 2px solid var(--text); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { padding: 12px 14px; } .metric:nth-child(2n) { transform: rotate(.6deg); } .metric:nth-child(2n+1) { transform: rotate(-.5deg); }
.metric b { display: block; font-size: 26px; font-weight: 700; }
.spis .cards .metric { background: transparent; box-shadow: none; border: 1px dashed var(--line); transform: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; } .grid2 > .card { margin-bottom: 18px; }

/* kancelarska sponka */
.clip::before { content: ""; position: absolute; top: -14px; left: 34px; width: 16px; height: 46px; border: 3px solid #8d8f93; border-radius: 9px; border-bottom-color: #6f7175; transform: rotate(8deg); z-index: 2; }
/* skvrna od kafe */
#board::before { content: ""; position: absolute; top: -30px; right: 40px; width: 130px; height: 130px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 54%, rgba(115,70,25,.28) 57%, rgba(115,70,25,.10) 61%, transparent 66%), radial-gradient(circle at 60% 45%, rgba(115,70,25,.07), transparent 55%); }

/* tabulky jako rejstrik */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 700; color: var(--muted); font-size: 11px; padding: 6px 8px; border-bottom: 2px solid var(--text); text-transform: uppercase; letter-spacing: 1px; }
td { padding: 6px 8px; border-bottom: 1px solid rgba(110,80,30,.25); } tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,230,150,.25); }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.team { padding: 10px 14px; border: 2px solid currentColor; } .team b { display: block; font-size: 34px; font-weight: 700; }
.allies { color: var(--allies); background: var(--allies-bg); transform: rotate(-.6deg); } .axis { color: var(--axis); background: var(--axis-bg); text-align: right; transform: rotate(.6deg); }
.tt-allies { color: var(--allies); } .tt-axis { color: var(--axis); }

/* razitka (odznaky) - kulate gumove razitko s kodem a hvezdami */
.b { position: relative; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 40px; height: 40px; margin: 2px 6px 2px 0;
  border-radius: 50%; border: 3px solid currentColor; text-decoration: none; text-shadow: none; background: rgba(255,250,235,.25); transform: rotate(-8deg); filter: url(#ink); opacity: 1; }
.b:nth-child(3n+2) { transform: rotate(6deg); } .b:nth-child(3n) { transform: rotate(-2deg); }
.b:hover { background: var(--hl); opacity: 1; }
.b .bi { display: none; }
.b .bc { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.b .bc b { font-size: 11px; letter-spacing: .5px; font-weight: 900; }
.b .bc i { font-style: normal; font-size: 8px; letter-spacing: 1px; margin-top: 2px; font-weight: 700; }
.t1 { color: #7a3410; }
.t2 { color: #36332b; border-style: double; border-width: 5px; }
.t3 { color: #8a5a00; border-style: double; border-width: 6px; box-shadow: inset 0 0 0 2px rgba(255,250,235,.6), inset 0 0 0 4px currentColor; background: rgba(240,190,60,.28); }
@media (prefers-color-scheme: dark) { .t1 { color: var(--bronze); } .t2 { color: var(--silver); } .t3 { color: var(--gold); } }
.t0 { color: var(--muted); border-style: dashed; opacity: .55; }
.shame { color: var(--shame); border-width: 3px; background: linear-gradient(135deg, transparent 46%, currentColor 46%, currentColor 52%, transparent 52%); }
.shame .bc b { background: var(--paper); padding: 0 1px; }
.cnt { position: absolute; right: -10px; bottom: -6px; font-size: 10px; font-weight: 700; color: var(--text); background: var(--paper); border: 1px solid var(--line); padding: 0 3px; transform: rotate(8deg); filter: none; }
.tile .ic .b { width: 46px; height: 46px; } .tile .ic .b .bc b { font-size: 12px; }
.stamps { display: flex; gap: 10px; margin: 4px 0 10px; } .stamps .b { width: 58px; height: 58px; } .stamps .b .bc b { font-size: 14px; } .stamps .b .bc i { font-size: 9px; }
.shame-t { color: var(--stamp); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.medals { margin-top: 10px; } .aw { display: inline-flex; align-items: center; margin-right: 12px; white-space: nowrap; }
.feed p { padding: 6px 0; border-bottom: 1px solid rgba(110,80,30,.25); font-size: 13px; } .feed p:last-child { border: 0; }
.list { margin: 0; padding-left: 22px; font-size: 13px; } .list li { padding: 2px 0; }

/* aktivita jako tuzkou vysrafovane sloupce */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars div { flex: 1; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bars i { display: block; background: repeating-linear-gradient(55deg, var(--text) 0 1.5px, transparent 1.5px 6px); border: 1.5px solid var(--text); min-height: 2px; opacity: .85; }
.bars span { font-size: 11px; color: var(--muted); }

/* katalog vyznamenani */
.cat { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.tile { border: 1px dashed var(--line); padding: 10px; display: flex; gap: 10px; text-decoration: none; color: inherit; background: rgba(255,250,235,.25); }
.tile:hover { background: var(--hl); } .tile .ic { font-size: 24px; filter: sepia(.6); } .tile p { font-size: 13px; }
.prog { height: 7px; border: 1px solid var(--text); margin-top: 6px; } .prog i { display: block; height: 5px; background: repeating-linear-gradient(90deg, var(--text) 0 3px, transparent 3px 5px); }

/* oznameni jako rozkaz */
.ann { border: 3px double currentColor; padding: 8px 14px; margin-bottom: 18px; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; background: var(--paper); transform: rotate(-.4deg); }
.ann.info { color: #2d5a24; } .ann.udrzba { color: #7c5200; } .ann.varovani { color: var(--stamp); }

.connect { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
code { background: rgba(255,250,235,.5); border: 1px dashed var(--line); padding: 2px 8px; font-size: 13px; font-family: var(--type); }
button { font: inherit; font-size: 12px; border: 2px solid var(--text); background: transparent; color: var(--text); padding: 3px 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
button:hover { background: var(--hl); }
.mx td, .mx th { text-align: center; padding: 4px 6px; } .mx td.hot { color: var(--stamp); font-weight: 700; }
footer { margin-top: 18px; text-align: center; color: #d8c79d; }

/* spis = desky z manily */
.spis { background: var(--noise), radial-gradient(ellipse at 20% 0%, rgba(255,245,210,.4), transparent 60%), #d9b874; margin-top: 26px; transform: none !important; }
.spis::before { content: "SPIS"; position: absolute; top: -24px; left: 18px; padding: 2px 18px 0; height: 24px; background: inherit; font-weight: 700; letter-spacing: 3px; font-size: 13px; }
.spis .head { border-bottom-color: var(--text); }
.spis-sec { margin-top: 6px; }
@media (prefers-color-scheme: dark) { .spis { background: var(--noise), #4a3a1c; } }

/* nahled mapy - fotka */
.mapimg { margin: 0 0 14px; position: relative; background: #fbf6e6; padding: 9px 9px 4px; box-shadow: 2px 4px 8px rgba(0,0,0,.35); transform: rotate(-1.2deg); max-width: 520px; }
.mapimg img { display: block; width: 100%; height: auto; filter: sepia(.55) contrast(1.08) brightness(.95); }
.mapimg figcaption { font-size: 12px; text-align: center; padding-top: 4px; color: #3a2f1c; letter-spacing: 2px; text-transform: uppercase; text-shadow: none; }
.mapimg::before { content: ""; position: absolute; top: -10px; left: 50%; width: 80px; height: 20px; margin-left: -40px; background: rgba(226,206,150,.85); transform: rotate(4deg); box-shadow: 0 1px 2px rgba(0,0,0,.2); }

/* trhaci kalendar */
.top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.cal { text-align: center; margin-bottom: 18px; transform: rotate(-1.5deg); }
.cal::before { content: ""; position: absolute; left: 20px; right: 20px; top: -8px; height: 16px; background: radial-gradient(circle at 8px 8px, #3a2f1c 3.5px, #8d8f93 4px, transparent 5px) 0 0 / 30px 16px repeat-x; }
.cal .bar { background: var(--stamp); color: #fff3e0; padding: 12px 6px 6px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; text-shadow: none; }
.cal .big { font-family: Georgia, "Times New Roman", serif; font-size: 96px; line-height: 1; font-weight: 700; padding: 12px 0 2px; }
.cal .lbl { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 0 10px; }
.cal .last { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 10px; padding: 8px 10px; }
.cal .tear { height: 12px; background: linear-gradient(135deg, var(--desk) 6px, transparent 0) 0 0 / 12px 12px repeat-x, linear-gradient(225deg, var(--desk) 6px, transparent 0) 0 0 / 12px 12px repeat-x; }
@media (max-width: 700px) { .top { grid-template-columns: 1fr; } .hide-sm { display: none; } h1 { font-size: 24px; letter-spacing: 4px; } .card { transform: none !important; } }

.mvp { display: inline-block; font-size: 9px; font-weight: 900; letter-spacing: 1px; color: var(--stamp); border: 2px solid currentColor; padding: 0 3px; margin-right: 6px; transform: rotate(-8deg); filter: url(#ink); }

.credit { margin-top: 6px; font-size: 12px; letter-spacing: 1px; } .credit b { font-weight: 700; }

/* paticka: svetly text na stole + credit na prouzku papiru */
footer, footer.muted { color: #eadcb6; text-shadow: 0 1px 2px rgba(0,0,0,.6); font-size: 13px; }
.credit { display: inline-block; margin-top: 12px; padding: 6px 16px; font-size: 13px; letter-spacing: 1px; color: var(--text); text-shadow: none;
  background: var(--fibers), var(--noise), var(--paper); box-shadow: 2px 3px 6px rgba(0,0,0,.4); transform: rotate(-1deg); }
.credit b { color: var(--stamp); }

footer { text-align: center; } .credit { display: table; margin: 12px auto 0; }
