/* Fox & Wolf – Game Wheel (Wheel size control) */
:root{
  --bg:#070b12;
  --text:#e8eefc;
  --muted:#a9b3cc;
  --line:rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius:20px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 50% -200px, rgba(92,130,255,0.25), transparent 65%), var(--bg);
  color:var(--text);
}
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11,18,32,0.98), rgba(11,18,32,0.90));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px 14px 10px;
  max-width: 1250px;
  margin: 0 auto;
}
.brand{
  display:flex;
  gap: 12px;
  align-items:center;
}
.logo{
  width:44px;height:44px;
  display:grid;place-items:center;
  background: rgba(255,255,255,0.06);
  border:1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 18px;
}
.brand-title{font-weight: 750; letter-spacing:0.2px}
.brand-subtitle{color:var(--muted); font-size: 12.5px; margin-top:2px}

.wheel-area{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}
.wheel-wrap{display:grid;place-items:center;padding: 10px 0;}
.pointer{
  width:0;height:0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid rgba(255,255,255,0.90);
  margin: 0 auto -10px;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.45));
  position: relative;
  z-index: 3;
}
.wheel-rotator{
  width: min(520px, 90vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(0deg);
  will-change: transform;
  background: rgba(255,255,255,0.02);
}
.wheel-rotator canvas{width: 100%;height: 100%;display:block;}
.wheel-rotator.spinning{
  transition: transform var(--spin-ms, 8000ms) cubic-bezier(0.10, 0.95, 0.20, 1);
}
.wheel-controls{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: end;
}
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.btn:hover{ background: rgba(255,255,255,0.10); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: rgba(92,130,255,0.22);
  border-color: rgba(92,130,255,0.35);
}
.pool{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border:1px solid var(--line);
  min-width: 150px;
  text-align:center;
}
.pool-label{font-size:12px;color:var(--muted)}
.pool-value{font-size:16px;font-weight:800;margin-top:2px}
.winner{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.10);
  border:1px solid rgba(34, 197, 94, 0.25);
  min-width: 240px;
}
.winner-label{font-size:12px;color:rgba(218,255,231,0.9)}
.winner-value{font-size:18px;font-weight:900;margin-top:2px}
.winner-meta{font-size:12px;color:rgba(218,255,231,0.85); margin-top:2px}

.filters{
  display:grid;
  grid-template-columns: 1.2fr repeat(2, 1fr);
  gap: 10px;
  align-items: end;
}
.field label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}
.field input::placeholder{color:rgba(169,179,204,0.75)}
.field.inline{width: 180px;}

.content{
  max-width: 1250px;
  margin: 0 auto;
  padding: 14px;
  display:grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 14px;
}
.card{
  background: linear-gradient(180deg, rgba(13,22,40,0.95), rgba(11,18,32,0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.card-title{font-weight: 850;margin-bottom: 10px;}
.small{font-size: 12.5px}
.muted{color:var(--muted)}
.tips{margin:0; padding-left: 18px; color: var(--muted)}
.tips li{margin: 6px 0}
.tips b{color: var(--text)}
.pill-row{display:flex;flex-wrap: wrap;gap: 8px;min-height: 22px;}
.pill{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
}
.library{padding: 0}
.library-header{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 14px 10px;
}
.table-wrap{
  overflow:auto;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: calc(100vh - 350px);
}
.table{width:100%;border-collapse: collapse;min-width: 720px;}
.table thead th{
  position: sticky;
  top: 0;
  background: rgba(9,14,25,0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  text-align:left;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 10px;
}
.table tbody td{
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 10px;
  vertical-align: top;
}
.row-title{font-weight: 750;}
.tags{display:flex;gap: 6px;flex-wrap: wrap;}
.tag{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(231,238,252,0.95);
}
.chk{display:flex;align-items:center;gap: 8px;}
.chk input{width:18px;height:18px;}

.footer{
  border-top: 1px solid var(--line);
  padding: 16px 14px;
  margin-top: 6px;
  color: var(--muted);
}
.footer-inner{
  max-width: 1250px;
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
code{color: rgba(231,238,252,0.95)}

@media (max-width: 980px){
  .content{ grid-template-columns: 1fr; }
  .filters{ grid-template-columns: 1fr 1fr; }
  .table{ min-width: 620px; }
  .field.inline{ width: 100%; }
}

/* Range input tweaks */
input[type=range]{
  width:100%;
  accent-color: rgba(92,130,255,0.9);
}
