/* RaminoPlay — il sito della sala. Verde feltro, oro delle sponde, carte chiare. */
:root { --felt: #12241c; --felt-2: #1c6a48; --felt-3: #0d3b2b; --gold: #c99a4a; --gold-2: #ffd66b; --ink: #070b1c; --paper: #fffdf6; --text: #eef6f1; --muted: #9fc4b2; --bad: #ff6a5a; --ok: #8dffc8; --card: rgba(10, 12, 30, .55); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; max-width: 100vw; overflow-x: hidden; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; background: radial-gradient(ellipse at 50% -10%, #1f5a42, var(--felt) 60%) fixed; color: var(--text); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--gold-2); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(14px, 3vw, 32px); background: rgba(7, 11, 28, .55); border-bottom: 2px solid rgba(201, 154, 74, .4); backdrop-filter: blur(6px); flex-wrap: wrap; }
.brand { font-weight: 900; font-size: 24px; letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand img { display: block; width: auto; height: 38px; filter: drop-shadow(0 2px 0 rgba(7, 11, 28, .6)); }
.logo-big { margin: 0 0 14px; } .logo-big img { display: block; width: min(100%, 340px); height: auto; margin: 0 auto; }
.support { padding: 10px 14px; border-radius: 12px; background: rgba(201, 154, 74, .15); border: 2px solid rgba(201, 154, 74, .5); }
.filters .csv { float: right; color: var(--gold-2); }
.brand-r { color: var(--paper); text-shadow: 0 2px 0 var(--ink); } .brand-p { color: var(--gold-2); text-shadow: 0 2px 0 var(--ink); }
.brand small { font-size: 11px; color: #1c1200; background: var(--gold-2); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 6px 4px; border-bottom: 2px solid transparent; }
.nav a.on { border-bottom-color: var(--gold-2); }
.nav .wallet { display: grid; line-height: 1.1; padding: 4px 12px; border: 2px solid var(--gold); border-radius: 12px; background: rgba(7, 11, 28, .5); }
.nav .wallet small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav .wallet b { font-size: 16px; color: var(--gold-2); }
.langs a { padding: 2px 6px; font-size: 12px; color: var(--muted); }
.langs a.on { color: var(--text); }
.inline { display: inline; }
button.ghost, .btn.ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .35); color: var(--text); }
.btn, button.btn { display: inline-block; padding: 10px 18px; border-radius: 12px; border: 2px solid var(--ink); background: linear-gradient(180deg, #ffd66b, #ff9a2a); color: #2a1200; font-weight: 900; text-decoration: none; cursor: pointer; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.btn.big { padding: 14px 26px; font-size: 18px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: linear-gradient(180deg, #ff6a5a, #c62a2a); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: none; }
button.ghost { padding: 6px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.main { flex: 1; width: min(100%, 1080px); margin: 0 auto; padding: 22px clamp(14px, 3vw, 32px) 40px; }
.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px clamp(14px, 3vw, 32px); font-size: 12px; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, .08); }
.flash { padding: 10px 14px; border-radius: 12px; margin: 0 0 16px; border: 2px solid var(--ink); font-weight: 600; }
.flash.bad { background: rgba(198, 42, 42, .35); color: #ffd3cc; } .flash.ok { background: rgba(21, 122, 86, .45); color: var(--ok); }
/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; padding: 20px 0 10px; }
.kicker { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero h1 { margin: 8px 0 12px; font-size: clamp(30px, 5vw, 50px); line-height: 1.05; font-weight: 900; text-shadow: 0 3px 0 var(--ink); }
.lead { font-size: 18px; color: #d7eadf; max-width: 36rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-art { position: relative; min-height: 260px; }
.felt { position: absolute; inset: 0; border-radius: 26px; border: 3px solid var(--ink); background: radial-gradient(ellipse at 50% 30%, rgba(60, 190, 130, .3), transparent 70%), linear-gradient(180deg, var(--felt-2), #13503a 55%, var(--felt-3)); box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px #6b4a16, inset 0 0 40px rgba(0, 0, 0, .5), 0 18px 34px -14px #000; overflow: hidden; }
.card { position: absolute; width: 64px; height: 90px; border-radius: 8px; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-weight: 900; font-size: 22px; padding: 4px 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.card i { display: block; font-style: normal; font-size: 26px; line-height: 1; }
.card.red { color: #c62a2a; }
.c1 { left: 10%; top: 18%; transform: rotate(-12deg); } .c2 { left: 22%; top: 15%; transform: rotate(-4deg); } .c3 { left: 34%; top: 14%; transform: rotate(5deg); }
.c4 { left: 48%; top: 48%; transform: rotate(-8deg); } .c5 { left: 60%; top: 46%; transform: rotate(2deg); } .c6 { left: 72%; top: 44%; transform: rotate(10deg); }
.chip { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 3px dashed #fff; box-shadow: 0 3px 0 var(--ink), inset 0 0 0 3px var(--ink); }
.chip.a { left: 12%; bottom: 14%; background: #c62a2a; } .chip.b { left: 20%; bottom: 10%; background: #2a5ac8; } .chip.c { left: 16%; bottom: 22%; background: #ffd66b; }
.notice { margin: 16px 0; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--gold); background: rgba(201, 154, 74, .15); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 28px 0; }
.features div { padding: 16px; border-radius: 16px; background: var(--card); border: 2px solid rgba(201, 154, 74, .35); }
.features h3 { margin: 0 0 6px; color: var(--gold-2); }
.features p { margin: 0; color: #d7eadf; }
.how { padding: 16px 20px; border-radius: 16px; background: var(--card); border: 2px solid rgba(201, 154, 74, .35); }
.how h2 { margin: 0 0 8px; } .how ol { margin: 0; padding-left: 22px; } .how li { margin: 4px 0; }
/* pannelli e moduli */
.panel { padding: 18px 20px; border-radius: 18px; background: var(--card); border: 2px solid rgba(201, 154, 74, .35); margin: 0 0 18px; }
.panel.narrow { max-width: 480px; margin: 20px auto; }
.panel h1 { margin: 0 0 12px; font-size: 26px; } .panel h2 { font-size: 18px; margin: 18px 0 8px; color: var(--gold-2); }
.prose p { color: #d7eadf; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.form label small { font-weight: 400; color: var(--muted); font-size: 12px; }
.form input, .form select, .form textarea, .search input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .18); background: rgba(7, 11, 28, .55); color: var(--text); font-size: 16px; font-family: inherit; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--gold-2); border-color: transparent; }
.form .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.form .check input { width: auto; margin-top: 4px; }
.form button { justify-self: start; }
.inline-form { grid-template-columns: 1fr auto auto; align-items: center; }
.alt { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.balance { display: grid; margin: 0 0 14px; }
.balance small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.balance b { font-size: 34px; color: var(--gold-2); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.box { padding: 14px 16px; border-radius: 14px; background: rgba(7, 11, 28, .35); }
.box h2 { margin: 0 0 6px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.only-m { display: none; }
.table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.table td { padding: 8px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { color: var(--ok); } .minus { color: #ffb3a8; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .12); }
.tag.active, .tag.paid, .tag.closed { background: rgba(21, 122, 86, .6); color: var(--ok); }
.tag.blocked, .tag.rejected, .tag.rolled_back { background: rgba(198, 42, 42, .5); color: #ffd3cc; }
.tag.pending, .tag.open { background: rgba(201, 154, 74, .35); color: var(--gold-2); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 600; }
/* gioco */
.page-play .main { max-width: none; padding: 10px 10px 16px; }
.game { height: calc(100vh - 150px); min-height: 520px; border-radius: 16px; overflow: hidden; border: 2px solid var(--gold); background: #05070f; }
.game iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 4px 0; }
/* admin */
.admin .main { max-width: 1280px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.stats div { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 2px solid rgba(201, 154, 74, .35); display: grid; }
.stats small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats b { font-size: 24px; color: var(--gold-2); } .stats span { font-size: 12px; color: var(--muted); }
.filters a { margin-right: 12px; color: var(--muted); text-decoration: none; font-weight: 600; } .filters a.on { color: var(--gold-2); border-bottom: 2px solid var(--gold-2); }
.search { display: flex; gap: 8px; margin: 0 0 12px; max-width: 480px; }
@media (max-width: 820px) {
  .top { padding: 10px 12px; }
  .brand img { height: 30px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 4px 10px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav form { white-space: nowrap; flex: 0 0 auto; font-size: 14px; }
  .nav .wallet { padding: 2px 10px; } .nav .wallet b { font-size: 14px; }
  .langs { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 200px; }
  .inline-form { grid-template-columns: 1fr; }
  .table { font-size: 13px; min-width: 100%; } .table th, .table td { padding: 6px 5px; }
  .hide-m { display: none !important; }
  .only-m { display: block; font-size: 11px; }
  .table-wrap { margin: 0 -6px; padding: 0 6px; }
  .main { padding-left: 12px; padding-right: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stats b { font-size: 20px; }
  .panel { padding: 14px 12px; }
  .cols { gap: 10px; }
  .game { height: calc(100vh - 130px); min-height: 460px; }
}
