@font-face{font-family:Inter;src:local("Inter"),local("Arial");}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

:root{
  --auction-scale: 1;
  --auction-scale-width: 100%;
  --auction-scale-height: 100vh;
  --wheel-pointer-scale: 1;
  --wheel-pointer-offset-y: 0px;
  --wheel-title-scale: 1;
  --wheel-center-scale: 1;
  --main-title-shadow-color: rgba(0,0,0,.72);
  --main-title-shadow-y: 2px;
  --main-title-shadow-size: 5px;
}


body{font-family:Inter,Arial,sans-serif;color:#191d25;background:#c9effe;

	--background:linear-gradient(180deg,rgba(207,241,255,.01),rgba(251,255,234,.2)),url('../img/bg2.png'); 
	background:var(--bg-url); 
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;

}

.theme-bg-video{
  position:fixed;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
  opacity:0;
  transition:opacity .28s linear;
}

:root[data-theme="main"] .theme-bg-video.is-active,
:root[data-theme="moon"] .theme-bg-video.is-active,
:root[data-theme="flowers"] .theme-bg-video.is-active,
:root[data-theme="cybercity"] .theme-bg-video.is-active,
:root[data-theme="jack"] .theme-bg-video.is-active,
:root[data-theme="sakura"] .theme-bg-video.is-active,
:root[data-theme="circus"] .theme-bg-video.is-active,
:root[data-theme="love"] .theme-bg-video.is-active{
  opacity:1;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:0;
  background-image:var(--theme-fade-bg);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

body.theme-fade-ready::before{
  opacity:1;
  transition:none;
}

body.theme-fade-out::before{
  opacity:0;
  transition:opacity .48s ease;
}

button{cursor:pointer}

.screen{

  position:relative;
  z-index:1;
  padding: 18px 34px;
  width: var(--auction-scale-width);
  height: var(--auction-scale-height); /* Строго высота экрана */
  transform: scale(var(--auction-scale));
  transform-origin: top left;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Шапка сверху, сетка снизу */
  gap: 20px; /* Отступ между шапкой и контентом */
}



.panel,
.lot,
.base,
.gold,
.silver,
.bronze,
.timer,
.timer-controls button,
.mode-switch,
.mode-switch button,
.tabs,
.tabs button,
.theme-picker button,
.wheel-palette-picker button,
.search,
.add-row,
.add-row input,
.add-row button,
.rules-toolbar,
.rules-toolbar select,
.rules-toolbar input,
.rules-toolbar button,
.donations article,
.wheel-lot,
.pending,
.completed,
.percent i,
.percent i::before{
  transition:
    background-color .35s ease,
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    color .35s ease,
    fill .35s ease;
}

.topbar{flex:0 0 45px;display:grid;grid-template-columns:1fr 350px 450px;align-items:start;gap:22px}
.title-wrap{display:flex;align-items:center;gap:16px}
.title-wrap h1{
	
	margin:0px ;
	padding:7px 7px 7px 0px;
	font-size:22px; 
	letter-spacing:-.7px;
	font-family:  sans-serif;
	font-weight: 450;
	color:var(--main-header-color);
	text-shadow:0 var(--main-title-shadow-y) var(--main-title-shadow-size) var(--main-title-shadow-color);
	cursor:text;
}

.page-title-editor{
  min-width:0;
  width:100%;
  height:45px;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:8px;
  background:rgba(var(--panel-gradient-color), .8);
  color:var(--main-header-color);
  font:inherit;
  font-size:22px;
  font-weight:450;
  text-shadow:0 var(--main-title-shadow-y) var(--main-title-shadow-size) var(--main-title-shadow-color);
  padding:0 10px;
  outline:none;
  box-sizing:border-box;
}

.trophy{
	
	background:url('../img/goblet.png'); 
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover; 
	filter:drop-shadow(0 2px 0 #555);
	margin-left:10px; 
	width:35px; height:30px;
	
	filter: var(--header-icon-filter);	
}


.mode-switch{height:45px;display:grid;grid-template-columns:1fr 1fr;background:var(--passive-button-color); padding:1px;
border-radius:9px;box-shadow:0 8px 18px rgba(70,107,68,.12);overflow:hidden}
.mode-switch button,
.timer-controls button, .tabs button, .add-row button{border:0;font:inherit;font-weight:100;transition:transform .12s ease,background .12s ease,box-shadow .12s ease}
.mode-switch button{background:transparent;font-size:20px; color:var(--passive-btext-color);}
.mode-switch .active{background:var(--active-button-color); color:var(--active-btext-color); border-radius:8px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
.timer-controls{justify-self:end;display:flex;gap:10px;height:45px}
.timer,.timer-controls button{background:rgba(var(--panel-gradient-color), .8);border-radius:8px;min-width:52px;height:45px;display:grid;place-items:center;box-shadow:0 8px 18px rgba(70,107,68,.12);
color:var(--timer-text-color);
}
.timer{min-width:110px}
.timer-controls button{font-size:20px; font-weight:900;}
.timer strong{font-size:25px; color:var(--timer-text-color);}
.timer-controls .play{background:var(--active-button-color);color:#fff;font-size:31px}
.timer-controls .settings-open{
  font-size:22px;
  line-height:1;
}
.time-icon {

	background:url('../img/t1.png'); 
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover; 
	position:relative; width:30px; height:30px;  left:8px; top:5px;
  
}



.layout{ 

  display: grid; 
  grid-template-columns: 450px 1fr 450px; 
  gap: 20px;  
  box-sizing: border-box; 
  flex: 1; /* Занимает всю оставшуюся высоту .screen */
  min-height: 0; /* ВАЖНО: разрешает внутренним блокам сжиматься меньше их контента */
  height: 100%;

}


.panel{   

	background: linear-gradient(
		to bottom, 
		rgb(var(--panel-gradient-color)), 
		rgba(var(--panel-gradient-color), 0.1)
	  );

	  border: var(--panel-border);
	  border-radius:14px;
	  --box-shadow:0 20px 50px rgba(70,107,68,.16),inset 0 1px 0 rgba(255,255,255,.75);
	  backdrop-filter:blur(3px);  
	  min-height:0;
	  height:100%;
	  box-sizing: border-box;
  }


.rules{padding:18px 24px 16px 16px;overflow:auto;box-sizing:border-box;display:flex;flex-direction:column;}

.panel-title{
	display:flex;
	align-items:center;
	gap:16px;
	font-size:19px;
	padding-bottom:15px;
}


.panel-title b{
	
	color:var(--header-color);
	font-weight:400;
	font-synthesis-weight:none;
}

.rules .panel-title.rules-title-flash b{
  animation:rules-title-flash .9s ease-out both;
}

@keyframes rules-title-flash{
  0%{
    color:var(--header-color);
    text-shadow:none;
  }
  35%, 70%{
    color:var(--lot-percent-color);
    text-shadow:0 0 16px color-mix(in srgb, var(--lot-percent-color) 75%, transparent);
  }
  100%{
    color:var(--header-color);
    text-shadow:none;
  }
}



.panel-title .icon{
	
	background:url('../img/list.png'); 
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover; 
	width:25px; height:25px;
	margin-left:5px;


	filter: var(--header-icon-filter);

}

.rules-content{
  border:1px solid transparent;
  border-radius:8px;
  outline:none;
  margin-top:12px;
  padding:0 6px;
  box-sizing:border-box;
}

.rules.editing .rules-content{
  border-color:rgba(var(--lot-border-color), .8);
  background:rgba(var(--panel-gradient-color), .16);
}

.rules-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin:0 0 8px;
  padding:8px;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:8px;
  background:rgba(var(--panel-gradient-color), .85);
}

.rules-toolbar[hidden]{display:none}

.rules-toolbar select,
.rules-toolbar input,
.rules-toolbar button{
  height:30px;
  min-width:0;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:6px;
  background:var(--input-field-bg);
  color:var(--input-field-ph-color);
  font:inherit;
  font-size:12px;
  font-weight:800;
}

.rules-toolbar select{
  flex:1 1 84px;
  padding:0 6px;
}

.rules-toolbar input[type="color"]{
  flex:0 0 34px;
  width:34px;
  padding:2px;
}

.rules-toolbar button{
  flex:0 0 auto;
  padding:0 8px;
  background:var(--active-button-color);
  color:var(--active-btext-color);
}

.rules-toolbar .rules-command{
  width:30px;
  padding:0;
  display:grid;
  place-items:center;
}

.editor-icon{
  position:relative;
  display:block;
  width:16px;
  height:14px;
}

.editor-icon::before,
.editor-icon::after{
  content:"";
  position:absolute;
  height:2px;
  border-radius:2px;
  background:currentColor;
}

.editor-icon::before{
  top:1px;
  width:16px;
}

.editor-icon::after{
  top:6px;
  width:12px;
  box-shadow:0 5px 0 currentColor;
}

.editor-icon.align-left::before,
.editor-icon.align-left::after{
  left:0;
}

.editor-icon.align-center::before{
  left:50%;
  transform:translateX(-50%);
}

.editor-icon.align-center::after{
  left:50%;
  transform:translateX(-50%);
}

.editor-icon.align-right::before,
.editor-icon.align-right::after{
  left:auto;
  right:0;
}

.editor-icon.align-left::after,
.editor-icon.align-right::after{
  width:10px;
}

.editor-icon.list{
  width:17px;
}

.editor-icon.list::before{
  left:6px;
  width:11px;
  box-shadow:0 5px 0 currentColor, 0 10px 0 currentColor;
}

.editor-icon.list::after{
  left:0;
  top:1px;
  width:3px;
  height:3px;
  border-radius:50%;
  box-shadow:0 5px 0 currentColor, 0 10px 0 currentColor;
}

.rule{padding:12px 8px; width:100%; border-top:1px solid rgba(103,132,93,.15);font-size:17px;line-height:1.32;box-sizing:border-box}
.rule:first-of-type{margin-top:12px}
.rule-icon{font-size:32px;line-height:1;text-align:center}
.star{color:#a07b22}.pink{color:#df45a8}
.blue{color:#4168b2}.purple,strong{color:#e229a1}
.red,.danger{color:#ff3249;font-weight:800}
.yellow,mark{color:#e79b00;background:transparent;font-weight:400}em{color:#14951d;font-style:normal;font-weight:500}
.rule small{font-size:17px}

.theme-picker{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
  margin-bottom:4px;
  padding-top:14px;
  border-top:1px solid rgba(103,132,93,.15);
}

.theme-picker button{
  min-width:0;
  height:28px;
  padding:0 7px;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:6px;
  background:var(--passive-button-color);
  color:var(--passive-btext-color);
  font:inherit;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.theme-picker button.active{
  border-color:var(--active-button-color);
  background:var(--active-button-color);
  color:var(--active-btext-color);
}


.auction{padding:18px;display:flex;flex-direction:column;overflow:auto;min-height:0;box-sizing: border-box;  }



.search{flex:0 0 40px;font-size:18px; border:1px solid var(--input-field-border-color);border-radius:6px;background:var(--input-field-bg);padding:0 20px;outline:none; 
color: var(--input-field-ph-color);  }


input::placeholder {
  color: var(--input-field-ph-color);
  /* Опционально: сброс прозрачности в Firefox */
  opacity: 1; 
}





.lots{margin-top:18px;display:flex;flex:1 1 auto;flex-direction:column;gap:6px;min-height:0;overflow-y:auto;  color:var(--lot-text-color); }

.lot{min-height:45px;display:grid;grid-template-columns:45px minmax(140px,1fr) 130px 60px 30px 70px;gap:14px;align-items:center;border-radius:8px;padding:0 20px;border:1px solid rgba(var(--lot-border-color), 0.8);box-shadow:inset 0 1px rgba(var(--lot-bg-color),.7),0 8px 18px rgba(93,123,70,.08)}

.lot h2{ margin:0; font-weight:100; max-height:45px; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; font-size:20px; cursor:text;}

.lot-title-editor{
  min-width:0;
  width:100%;
  height:34px;
  border:1px solid rgba(var(--lot-border-color), 0.8);
  border-radius:6px;
  background:var(--input-field-bg);
  color:var(--input-field-ph-color);
  font:inherit;
  font-size:20px;
  font-weight:100;
  padding:0 10px;
  outline:none;
  box-sizing:border-box;
}

.gold {
  background:rgba(var(--lot-bg-color),.8);
  

  border-color: #c99614;
  box-shadow: 
    0 4px 15px rgba(201, 150, 20, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.5); 
}

.silver {
  background:rgba(var(--lot-bg-color),.8);
  

  border-color: #9ca8b5;
  box-shadow: 
    0 4px 15px rgba(156, 168, 181, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.bronze {
  background:rgba(var(--lot-bg-color),.8);
  

  border-color: #aa652d;
  box-shadow: 
    0 4px 15px rgba(170, 101, 45, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}


.base{background:rgba(var(--lot-bg-color),.8); }

.place{width:61px;height:45px;display:grid;place-items:center; font-size:18px;  font-weight:100;  }
.gold .place,
.silver .place,
.bronze .place{
  background-position:calc(50% - 2px) center;
  background-size:auto 18px;
  background-repeat:no-repeat;
  width:60px;
  margin-left:-4px;
}

.gold .place{ background-image:url('../img/1.png'); }
.silver .place{ background-image:url('../img/2.png'); }
.bronze .place{background-image:url('../img/3.png');}
.rank{font-size:20px;color:var(--lot-text-color);text-align:center; font-weight:100;}
.amount{font-size:22px; text-align:right; color:var(--lot-text-color); }
.amount .money-currency{font-size:calc(1em - 2px);}

.lot-amount-adder{
  min-width:0;
  width:100%;
  height:34px;
  border:1px solid rgba(var(--lot-border-color), 0.8);
  border-radius:6px;
  background:var(--input-field-bg);
  color:var(--input-field-ph-color);
  font:inherit;
  font-size:20px;
  font-weight:100;
  text-align:center;
  padding:0 6px;
  outline:none;
  box-sizing:border-box;
}




.plus{
	background:transparent;
	color:var(--lot-percent-color);
	border:0;
	font-size:19px;
	--filter:drop-shadow(0 2px 0 #fff);
}
.delete-lot{
	background:transparent;
	color:#ff4f5f;
	border:0;
	font-size:18px;
	width:30px;
	height:34px;
	padding:0;
	opacity:0;
	pointer-events:none;
	transition:opacity .14s ease,transform .14s ease,filter .14s ease;
}

.lot:hover .delete-lot,
.lot:focus-within .delete-lot{
	opacity:1;
	pointer-events:auto;
}

.lot.is-editing .delete-lot,
.lot.is-editing:hover .delete-lot,
.lot.is-editing:focus-within .delete-lot{
	opacity:0;
	pointer-events:none;
}

.delete-lot:hover{
	transform:translateY(-1px);
	filter:brightness(1.12);
}
.percent span{display:block;text-align:right;font-size:17px;margin-bottom:2px; color:var(--lot-text-color);}
.percent i{display:block;margin-left:auto;width:68px;height:4px;background:#d2d2cf;border-radius:20px;overflow:hidden}
.percent i:before{content:"";display:block;width:var(--w);height:100%;border-radius:20px;background:var(--lot-percent-color);}



.add-row input{
	min-width:0;border:1px solid var(--input-field-border-color);border-radius:9px;
	background:var(--input-field-bg);
	font-size:20px;
	padding:0 20px;
	color: var(--input-field-ph-color);
	outline:none;
	
}
.add-row{flex:0 0 45px;margin-top:16px;height:82px;background:rgba(var(--panel-gradient-color),.5);border-radius:12px;padding:14px;display:grid;grid-template-columns:1fr 190px 170px;gap:18px}


.currency,.add{background:var(--active-button-color);color:#fff;border-radius:8px;font-size:25px}
.add{font-size:22px}

.manual-lot-flight{
  position:fixed;
  left:0;
  top:0;
  z-index:180;
  height:41px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  padding:0 18px;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:8px;
  background:rgba(var(--lot-bg-color), .94);
  color:var(--lot-text-color);
  box-shadow:0 18px 38px rgba(0,0,0,.28), inset 0 0 0 1px var(--lot-percent-color);
  pointer-events:none;
  box-sizing:border-box;
  will-change:transform, opacity, width;
}

.manual-lot-flight b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:18px;
  font-weight:100;
}

.manual-lot-flight strong{
  color:var(--lot-text-color);
  font-size:20px;
  white-space:nowrap;
}


.history{padding:20px 20px;overflow:hidden;display:flex;flex-direction:column}

.app-view[hidden] {
  display: none !important;
}

.wheel-panel{
  padding:18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.wheel-stage{
  width:100%;
  height:100%;
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0, 1fr) auto;
  justify-items:center;
  align-items:center;
  gap:14px;
  color:var(--header-color);
  padding-top:14px;
  box-sizing:border-box;
}

.wheel-stage h2{
  margin:0;
  min-height:34px;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:28px;
  font-weight:400;
  font-synthesis-weight:none;
  color:var(--header-color);
  transform:scale(var(--wheel-title-scale));
  transform-origin:50% 50%;
}

.wheel-box{
  --wheel-size: 100%;
  position:relative;
  width:var(--wheel-size);
  height:100%;
  max-width:var(--wheel-size);
  max-height:var(--wheel-size);
  aspect-ratio:1;
  margin-top:15px;
  margin-bottom:18px;
}

.wheel-pointer{
  position:absolute;
  top:calc(-40px + var(--wheel-pointer-offset-y));
  left:50%;
  transform:translateX(-50%) scale(var(--wheel-pointer-scale));
  transform-origin:50% 100%;
  width:64px;
  height:100px;
  border:0;
  padding:0;
  background:transparent url('../arrows/1.png') center/contain no-repeat;
  z-index:4;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.55));
  cursor:pointer;
}

.wheel-svg{
  width:100%;
  height:100%;
  display:block;
  border-radius:50%;
  overflow:visible;
}

#rotatingWheel{
  transform-origin:300px 300px;
  transition-property:transform;
  transition-timing-function:cubic-bezier(.15,.8,.2,1);
}

.wheel-sector{
  stroke:#fff;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
}

.wheel-label{
  fill:#fff;
  font-size:19px;
  font-weight:900;
  text-anchor:middle;
  dominant-baseline:middle;
  paint-order:stroke;
  stroke:rgba(0,0,0,.45);
  stroke-width:4px;
  stroke-linejoin:round;
  pointer-events:none;
}

.wheel-shadow{
  pointer-events:none;
}

.wheel-border{
  stroke:#fff;
  stroke-width:5;
}

.wheel-center{
  position:absolute;
  left:50%;
  top:50%;
  width:127px;
  height:127px;
  transform:translate(-50%,-50%) scale(var(--wheel-center-scale));
  transform-origin:50% 50%;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:4px solid #fff;
  padding:0;
  background:rgba(var(--panel-gradient-color),.96);
  z-index:3;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,.28);
  cursor:pointer;
}

.wheel-center img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:50%;
}

.center-image-modal,
.arrow-image-modal{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(4px);
  box-sizing:border-box;
}

.center-image-modal[hidden],
.arrow-image-modal[hidden]{
  display:none !important;
}

.center-image-card{
  width:min(1010px, calc(100vw - 48px));
  max-height:min(720px, calc(100vh - 48px));
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:18px;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:12px;
  background:rgba(var(--panel-gradient-color), .98);
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  box-sizing:border-box;
}

.center-image-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:var(--header-color);
  font-size:20px;
}

.center-image-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:8px;
  background:var(--active-button-color);
  color:var(--active-btext-color);
  font-size:26px;
  line-height:1;
}

.center-image-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(112px, 1fr));
  gap:12px;
  min-height:0;
  overflow-y:auto;
  padding-right:4px;
}

.center-image-option{
  min-width:0;
  aspect-ratio:1;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:10px;
  padding:6px;
  background:var(--history-block-color);
  overflow:hidden;
}

.center-image-option.active{
  border-color:var(--active-button-color);
  box-shadow:0 0 0 2px var(--active-button-color);
}

.center-image-option img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:8px;
}

.arrow-image-option img{
  object-fit:contain;
  padding:8px;
  box-sizing:border-box;
}

.winner-modal{
  position:fixed;
  inset:0;
  z-index:190;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  pointer-events:auto;
  box-sizing:border-box;
}

.winner-modal[hidden]{
  display:none !important;
}

.winner-card{
  position:relative;
  width:min(551px, calc(100vw - 48px));
  padding:22px 24px 24px;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:12px;
  background:rgba(var(--panel-gradient-color), .98);
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  color:var(--header-color);
  pointer-events:auto;
  text-align:center;
  box-sizing:border-box;
}

.winner-kicker{
  margin-bottom:14px;
  color:var(--lot-percent-color);
  font-size:12px;
  font-weight:900;
  letter-spacing:6px;
  text-transform:uppercase;
}

.winner-title-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-width:0;
}

.winner-title{
  margin:0;
  max-width:min(720px, 100%);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--header-color);
  font-size:23px;
  font-weight:900;
}

.winner-stats{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:14px;
}

.winner-stats div{
  min-width:90px;
  padding:8px 14px;
  border:1px solid rgba(var(--lot-border-color), .72);
  border-radius:7px;
  background:rgba(255,255,255,.06);
}

.winner-stats span{
  display:block;
  margin-bottom:2px;
  color:var(--passive-btext-color);
  font-size:10px;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
}

.winner-stats b{
  color:var(--lot-percent-color);
  font-size:17px;
  font-weight:900;
}

.settings-modal{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(4px);
  box-sizing:border-box;
}

.settings-modal[hidden]{
  display:none !important;
}

.settings-card{
  width:min(990px, calc(100vw - 48px));
  max-height:min(720px, calc(100vh - 48px));
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:18px;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:12px;
  background:rgba(var(--panel-gradient-color), .96);
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  box-sizing:border-box;
}

.settings-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:var(--header-color);
  font-size:20px;
}

.settings-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:8px;
  background:var(--active-button-color);
  color:var(--active-btext-color);
  font-size:26px;
  line-height:1;
}

.settings-body{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow-y:auto;
}

.settings-section{
  border:1px solid rgba(var(--lot-border-color), .65);
  border-radius:8px;
  padding:14px;
  background:rgba(255,255,255,.04);
  color:var(--header-color);
}

.settings-section h3{
  margin:0 0 12px;
  font-size:16px;
  font-weight:900;
  color:var(--header-color);
}

.settings-time-title{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 64px auto;
  align-items:center;
  gap:8px;
}

.settings-time-title input{
  min-width:0;
  height:32px;
  border:1px solid var(--input-field-border-color);
  border-radius:8px;
  background:var(--input-field-bg);
  color:var(--input-field-ph-color);
  font:inherit;
  font-size:14px;
  padding:0 8px;
  outline:none;
  box-sizing:border-box;
  appearance:textfield;
  -moz-appearance:textfield;
}

.settings-time-title input::-webkit-outer-spin-button,
.settings-time-title input::-webkit-inner-spin-button{
  margin:0;
  -webkit-appearance:none;
}

.settings-time-title b{
  white-space:nowrap;
  font-size:14px;
  font-weight:800;
}

.settings-row{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
  align-items:stretch;
}

.settings-row-three{
  grid-template-columns:1fr .7fr 1fr;
}

.settings-display-row{
  grid-template-columns:2fr 1fr;
}

.settings-row-top{
  grid-template-columns:calc((100% - 22px) * .4286 + 150px) minmax(0, 1fr) minmax(0, 1fr);
}

.settings-compact-stack{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:6px;
  min-width:0;
}

.settings-section-compact{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1.25fr);
  align-items:center;
  gap:8px;
  padding:7px 10px;
}

.settings-section-compact h3{
  margin:0;
  line-height:1.15;
}

.settings-section-compact .settings-segment{
  width:100%;
  height:30px;
}

.settings-sound-section{
  min-width:0;
}

.settings-sound-controls{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:8px;
}

.settings-segment{
  width:min(220px, 100%);
  height:36px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  padding:1px;
  border-radius:8px;
  background:var(--passive-button-color);
}

.settings-segment-wide{
  width:min(380px, 100%);
}

.settings-segment button{
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--passive-btext-color);
  font:inherit;
  font-size:15px;
  font-weight:800;
}

.settings-segment .active{
  background:var(--active-button-color);
  color:var(--active-btext-color);
}

.settings-checks{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}

.settings-checks label{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--header-color);
  font-size:15px;
  font-weight:700;
}

.settings-checks input{
  accent-color:var(--active-button-color);
}

.settings-toggle{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--header-color);
  font-size:15px;
  font-weight:800;
}

.settings-toggle input{
  accent-color:var(--active-button-color);
}

.settings-switch{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:36px;
  color:var(--header-color);
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}

.settings-switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.settings-switch i{
  position:relative;
  flex:0 0 auto;
  width:46px;
  height:24px;
  border-radius:999px;
  background:var(--passive-button-color);
  transition:background .2s ease;
}

.settings-switch i::after{
  content:'';
  position:absolute;
  left:3px;
  top:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--passive-btext-color);
  transition:transform .2s ease, background .2s ease;
}

.settings-switch input:checked + i{
  background:var(--active-button-color);
}

.settings-switch input:checked + i::after{
  transform:translateX(22px);
  background:var(--active-btext-color);
}

.min-bid-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.min-bid-list label{
  display:grid;
  grid-template-columns:minmax(72px, 1fr) 90px;
  gap:8px;
  align-items:center;
  color:var(--header-color);
  font-size:14px;
  font-weight:800;
}

.auction-time-list label{
  grid-template-columns:minmax(130px, 1fr) 64px auto;
}

.auction-time-list span{
  display:flex;
  align-items:center;
  gap:7px;
}

.auction-time-list input[type="checkbox"]{
  width:auto;
  height:auto;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  accent-color:var(--active-button-color);
}

.auction-time-list b{
  white-space:nowrap;
  font-size:14px;
  font-weight:800;
}

.min-bid-list input{
  min-width:0;
  height:36px;
  border:1px solid var(--input-field-border-color);
  border-radius:8px;
  background:var(--input-field-bg);
  color:var(--input-field-ph-color);
  font:inherit;
  font-size:16px;
  padding:0 10px;
  outline:none;
  box-sizing:border-box;
  appearance:textfield;
  -moz-appearance:textfield;
}

.min-bid-list input::-webkit-outer-spin-button,
.min-bid-list input::-webkit-inner-spin-button{
  margin:0;
  -webkit-appearance:none;
}

.platform-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.platform-list span{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(var(--lot-border-color), .65);
  border-radius:8px;
  padding:0 10px;
  background:rgba(var(--panel-gradient-color), .34);
  color:var(--header-color);
  font-size:14px;
  font-weight:800;
  box-sizing:border-box;
}

.settings-scale-control{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:3px;
  padding:1px;
  border-radius:8px;
  background:var(--passive-button-color);
}

.settings-scale-control button{
  min-width:0;
  height:36px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--passive-btext-color);
  font:inherit;
  font-size:14px;
  font-weight:800;
}

.settings-scale-control button.active{
  background:var(--active-button-color);
  color:var(--active-btext-color);
}

.settings-reset-section{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}

.settings-reset-section h3{
  margin:0;
}

.settings-reset-wheel{
  height:36px;
  min-width:120px;
  border:0;
  border-radius:8px;
  background:var(--active-button-color);
  color:var(--active-btext-color);
  font:inherit;
  font-size:15px;
  font-weight:900;
  padding:0 14px;
}

.settings-subtitle{
  margin:14px 0 8px;
  color:var(--header-color);
  font-size:14px;
  font-weight:900;
}

.settings-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:0;
}

.conversion-row{
  min-width:0;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  color:var(--header-color);
  font-size:14px;
  font-weight:800;
}

.conversion-row input{
  width:76px;
  min-width:76px;
  height:36px;
  border:1px solid var(--input-field-border-color);
  border-radius:8px;
  background:var(--input-field-bg);
  color:var(--input-field-ph-color);
  font:inherit;
  font-size:16px;
  padding:0 10px;
  outline:none;
  box-sizing:border-box;
  appearance:textfield;
  -moz-appearance:textfield;
}

.conversion-row input::-webkit-outer-spin-button,
.conversion-row input::-webkit-inner-spin-button{
  margin:0;
  -webkit-appearance:none;
}

.conversion-row span,
.conversion-row b{
  white-space:nowrap;
}

.wheel-controls{
  width:min(360px, 100%);
  display:grid;
  grid-template-columns:240px 90px;
  justify-content:center;
  gap:12px;
  margin-top:auto;
  margin-bottom:10px;
}

.spin-button{
  min-width:0;
  height:52px;
  box-sizing:border-box;
  border:0;
  border-radius:8px;
  background:var(--active-button-color);
  color:var(--active-btext-color);
  font-size:16px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.spin-button .hotkey{
  padding:4px 5px;
  border-radius:6px;
  background:rgba(0,0,0,.18);
  font-size:9px;
  line-height:1;
  letter-spacing:.6px;
}

.spin-time,
.spin-music,
.spin-volume{
  position:relative;
  height:52px;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:4px;
  padding:15px 12px 8px;
  border:1px solid var(--input-field-border-color);
  border-radius:8px;
  background:var(--input-field-bg);
  color:var(--input-field-ph-color);
}

.wheel-controls .spin-time{
  grid-column:2;
}

.wheel-controls .spin-music{
  grid-column:1;
}

.wheel-controls .spin-volume{
  grid-column:2;
}

.spin-time span,
.spin-music span,
.spin-volume span{
  position:absolute;
  left:10px;
  top:3px;
  font-size:11px;
  font-weight:900;
  color:var(--passive-btext-color);
}

.spin-time input,
.spin-music select{
  min-width:0;
  border:0;
  outline:none;
  background:transparent;
  color:var(--input-field-ph-color);
  font:inherit;
  font-size:18px;
  font-weight:900;
  appearance:textfield;
  -moz-appearance:textfield;
}

.spin-music{
  grid-template-columns:1fr;
}

.spin-music select{
  width:100%;
  font-size:15px;
  color:var(--input-field-ph-color);
  background:var(--input-field-bg);
}

.spin-music select option{
  color:#111;
  background:#fff;
}

.spin-volume{
  grid-template-columns:1fr;
}

.settings-sound-controls .spin-music,
.settings-sound-controls .spin-volume{
  grid-column:auto;
  width:100%;
}

.settings-sound-controls .spin-volume{
  grid-template-columns:minmax(0, 1fr) 34px;
}

.spin-music-preview{
  width:30px;
  height:28px;
  padding:0;
  border:0;
  border-radius:7px;
  background:var(--active-button-color);
  color:var(--active-btext-color);
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.spin-music-preview.is-playing{
  background:var(--passive-button-color);
  color:var(--passive-btext-color);
}

.spin-volume input{
  width:100%;
  min-width:0;
  accent-color:var(--active-button-color);
}

.spin-time input::-webkit-outer-spin-button,
.spin-time input::-webkit-inner-spin-button{
  margin:0;
  -webkit-appearance:none;
}

.spin-time b{
  font-size:15px;
  color:var(--passive-btext-color);
}

.wheel-lots-panel{
  padding:20px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.wheel-lots{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:10px;
  min-height:0;
  overflow-y:auto;
  padding-right:4px;
}

.wheel-lot{
  display:grid;
  grid-template-columns:minmax(0,1fr) 74px;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  border:1px solid rgba(var(--lot-border-color),.8);
  border-radius:8px;
  background:var(--history-block-color);
  color:var(--header-color);
}

.wheel-lot b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--header-color);
  font-size:18px;
  font-weight:400;
  font-synthesis-weight:none;
}

.wheel-lot span{
  text-align:right;
  color:var(--history-money-color);
  font-size:18px;
  font-weight:900;
}

.wheel-palette-picker{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
  margin-bottom:4px;
  padding-top:14px;
  border-top:1px solid rgba(103,132,93,.15);
}

.wheel-palette-picker button{
  min-width:0;
  height:30px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 8px;
  border:1px solid rgba(var(--lot-border-color), .8);
  border-radius:6px;
  background:var(--passive-button-color);
  color:var(--passive-btext-color);
  font:inherit;
  font-size:12px;
  font-weight:800;
}

.wheel-palette-picker button.active{
  border-color:var(--active-button-color);
  background:var(--active-button-color);
  color:var(--active-btext-color);
}

.wheel-palette-swatch{
  width:34px;
  height:10px;
  border-radius:10px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);
}

.tabs{height:48px;margin:18px 0 16px;display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--passive-button-color);padding:1px; font-size:18px;
border-radius:8px;flex:0 0 auto}
.tabs button{background:transparent;border-radius:7px; color:var(--passive-btext-color);}
.tabs .active{background:var(--active-button-color);color: var(--active-btext-color);}

.donations{display:flex;flex:1 1 auto;flex-direction:column;gap:13px;min-height:0;overflow-y:auto;padding-right:4px}
.donations article{position:relative;padding:18px 16px 15px 42px;background:var(--history-block-color);border-radius:10px;border:1px solid rgba(115,147,95,.12)}
.drag{position:absolute;left:16px;top:22px;color:#b9bfb7}
.donations b{font-size:21px; font-weight:900; color:var(--header-color);}
.donations strong{float:right;color:var(--history-money-color);font-size:21px}
.donations button{float:right;border:0;background:none; }
.cancel-btn { margin-top:-7px; font-size: 2.0em; color:#858b8f;}
.approve-btn { margin-top:-2px; font-size: 1.0em;}
.donations p{margin:10px 0 7px;font-size:19px; color:var(--header-color);}



/* Drag & drop */
.lot,
.pending-lots article[draggable="true"]{
  cursor:grab;
  user-select:none;
  transition:transform .14s ease,box-shadow .14s ease,outline-color .14s ease;
}

.lot:active,
.pending-lots article[draggable="true"]:active{
  cursor:grabbing;
}

.lot.dragging,
.pending-lots article.dragging{
  opacity:1;
  transform:scale(1);
  outline:2px solid rgba(135,185,21,.75);
  outline-offset:3px;
  box-shadow:0 18px 36px rgba(70,107,68,.22);
}

.drag-preview{
  opacity:1!important;
  filter:none!important;
  box-shadow:0 22px 44px rgba(70,107,68,.26)!important;
}

.lots.drag-over{
  outline:2px dashed rgba(135,185,21,.45);
  outline-offset:8px;
  border-radius:12px;
  background:rgba(255,255,255,.18);
}

.lot.merge-target{
  outline:2px solid var(--lot-percent-color);
  outline-offset:3px;
  transform:scale(1.01);
  box-shadow:0 18px 36px rgba(70,107,68,.22),inset 0 0 0 1px var(--lot-percent-color);
}

.lot.lot-flash{
  animation:lot-flash .9s ease-out both;
}

.lot.lot-flash .amount{
  animation:lot-flash-amount .9s ease-out both;
}

@keyframes lot-flash{
  0%{
    box-shadow:inset 0 0 0 1px var(--lot-percent-color), 0 0 0 rgba(70,107,68,0);
    filter:brightness(1.22);
  }
  45%{
    box-shadow:inset 0 0 0 2px var(--lot-percent-color), 0 0 38px color-mix(in srgb, var(--lot-percent-color) 72%, transparent);
    filter:brightness(1.38);
  }
  100%{
    filter:brightness(1);
  }
}

@keyframes lot-flash-amount{
  0%, 100%{
    color:var(--lot-text-color);
  }
  35%, 70%{
    color:var(--lot-percent-color);
  }
}

.pending-lots.drag-over-blocked{
  outline:2px dashed rgba(255,255,255,.16);
  outline-offset:8px;
  border-radius:12px;
}

.drag{cursor:grab}

.completed-lots article{
  cursor:default;
  user-select:auto;
}

.completed-lots article:active{
  cursor:default;
}



/* 1. Стили для современных браузеров (Chrome, Safari, Edge, Opera) */
.rules::-webkit-scrollbar,
.lots::-webkit-scrollbar,
.donations::-webkit-scrollbar,
.wheel-lots::-webkit-scrollbar {
  width: 6px;               /* Ширина вертикального скроллбара (делаем тонким) */
  height: 6px;              /* Высота горизонтального скроллбара */
  
  
  
}

/* Бегунок (ползунок) скролла */
.rules::-webkit-scrollbar-thumb,
.lots::-webkit-scrollbar-thumb,
.donations::-webkit-scrollbar-thumb,
.wheel-lots::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2); /* Цвет вашей зеленой темы с прозрачностью */
  border-radius: 10px;                 /* Полностью округлые края */
  transition: background 0.2s ease;
}

/* Бегунок при наведении мыши (становится ярче) */
.rules::-webkit-scrollbar-thumb:hover,
.lots::-webkit-scrollbar-thumb:hover,
.donations::-webkit-scrollbar-thumb:hover,
.wheel-lots::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.35);/* Делаем насыщеннее при наведении */
}



/* Стили для разделителя */
.resizer {
  width: 8px;
  cursor: col-resize;
  background-color: #ccc; /* Цвет линии */
  transition: background 0.2s;
  z-index: 10;
}

/* Подсветка при наведении */
.resizer:hover, 
.resizer:active {
  background-color: #666; 
}


//------------------------------



.slot-machine {
    width: min(320px, 94vw);
	overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(21,30,40,.95), rgba(8,12,18,.98));
    box-shadow: 0 24px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  }

  .slot-machine .header {
    text-align: center;
    margin-bottom: 22px;
  }

  .eyebrow {
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

 
  .reel-wrap {
    position: relative;
    height: 560px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, #070b10, #111a24 50%, #070b10);
    box-shadow: inset 0 0 35px rgba(0,0,0,.65), 0 0 0 8px rgba(255,255,255,.025);
  }

  .slot-machine .reel-wrap::before,
  .slot-machine .reel-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 5;
    pointer-events: none;
  }

  .slot-machine .reel-wrap::before {
    top: 0;
    background: linear-gradient(180deg, #070b10 0%, rgba(7,11,16,.8) 35%, transparent 100%);
  }

  .slot-machine .reel-wrap::after {
    bottom: 0;
    background: linear-gradient(0deg, #070b10 0%, rgba(7,11,16,.8) 35%, transparent 100%);
  }

  .slot-machine .win-line {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    height: 74px;
    transform: translateY(-50%);
    border: 1px solid rgba(140,255,90,.75);
    border-radius: 18px;
    z-index: 6;
    box-shadow: 0 0 22px rgba(140,255,90,.28), inset 0 0 18px rgba(140,255,90,.08);
    pointer-events: none;
  }

  .slot-machine .pointer {
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-right: 18px solid var(--accent-2);
    filter: drop-shadow(0 0 10px rgba(140,255,90,.7));
  }

  .slot-machine .reel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    will-change: transform;
  }

  .slot-machine .item {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 22px;
    margin: 8px 0;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  }

  .slot-machine .item .name {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .01em;
	color:#fff;
  }

  .slot-machine .item .chance {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
	color:#fff;
  }

   .slot-machine .common { border-color: rgba(85,214,255,.22); }
  .slot-machine .rare { border-color: rgba(112,92,255,.4); box-shadow: inset 4px 0 0 rgba(112,92,255,.8); }
  .slot-machine .epic { border-color: rgba(255,73,188,.42); box-shadow: inset 4px 0 0 rgba(255,73,188,.8); }
  .slot-machine .legendary { border-color: rgba(246,198,91,.55); box-shadow: inset 4px 0 0 rgba(246,198,91,.9); }

  .slot-machine .controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 22px;
  }

   .slot-machine button {
    height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #78ff61, #36a94d);
    color: #06100a;
    font-size: 18px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(81,255,111,.18), inset 0 1px 0 rgba(255,255,255,.35);
  }

   .slot-machine button:disabled {
    opacity: .65;
    cursor: not-allowed;
  }

  .duration {
    min-width: 92px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    color: var(--accent-2);
    font-weight: 900;
  }

  .result {
    min-height: 42px;
    margin-top: 18px;
    text-align: center;
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
  }


/* Tabs and completed lots */
.tab-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.tab-panel[hidden] {
  display: none !important;
}

.completed-lots article.completed {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 34px;
  grid-template-areas:
    "icon name amount undo"
    ". text text text";
  gap: 8px 10px;
  align-items: center;
  padding: 16px;
}

.completed-lots .status-icon {
  grid-area: icon;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  justify-self: start;
}

.completed-lots .added .status-icon {
  color: #22d66f;
  background: rgba(34, 214, 111, .13);
  box-shadow: 0 0 16px rgba(34, 214, 111, .22);
}

.completed-lots .declined .status-icon {
  color: #ff4f5f;
  background: rgba(255, 79, 95, .13);
  box-shadow: 0 0 16px rgba(255, 79, 95, .22);
}

.completed-lots .merged .status-icon {
  color: var(--lot-percent-color);
  background: rgba(130, 120, 255, .13);
  box-shadow: 0 0 16px rgba(130, 120, 255, .22);
}

.completed-lots b {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completed-lots strong {
  grid-area: amount;
  float: none;
  justify-self: end;
  white-space: nowrap;
}

.completed-lots p {
  grid-area: text;
  min-width: 0;
  margin: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.donations .undo-btn {
  grid-area: undo;
  float: none;
  justify-self: end;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px;
  padding: 0;
  background: var(--active-button-color);
  color: var(--active-btext-color);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.16);
}

.donations .undo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Compact 90% layout without browser/page transform */
.screen{
  padding:16px 31px;
  gap:18px;
}

.topbar{
  flex-basis:41px;
  grid-template-columns:1fr 315px 405px;
  gap:20px;
}

.title-wrap{
  gap:14px;
}

.title-wrap h1{
  padding:6px 6px 6px 0;
  font-size:21px;
}

.page-title-editor{
  height:41px;
  font-size:21px;
}

.trophy{
  width:32px;
  height:27px;
  margin-left:9px;
}

.mode-switch,
.timer-controls,
.timer,
.timer-controls button{
  height:41px;
}

.mode-switch button,
.timer-controls button{
  font-size:18px;
}

.timer-controls{
  gap:9px;
}

.timer,
.timer-controls button{
  min-width:47px;
}

.timer{
  min-width:99px;
}

.timer strong{
  font-size:23px;
}

.timer-controls .play{
  font-size:28px;
}

.timer-controls .settings-open{
  font-size:20px;
}

.layout{
  grid-template-columns:405px 1fr 405px;
  gap:18px;
}

.panel{
  border-radius:13px;
}

.rules{
  padding:16px 22px 14px 14px;
}

.rules-content{
  margin-top:12px;
  padding:0 7px;
}

.panel-title{
  gap:14px;
  font-size:17px;
  padding-bottom:14px;
}

.panel-title .icon{
  width:23px;
  height:23px;
}

.rules-toolbar{
  gap:5px;
  padding:7px;
}

.rules-toolbar select,
.rules-toolbar input,
.rules-toolbar button{
  height:27px;
  font-size:11px;
}

.rules-toolbar .rules-command{
  width:27px;
}

.rule{
  padding:11px 7px;
  font-size:15px;
}

.rule:first-of-type{
  margin-top:11px;
}

.rule small{
  font-size:15px;
}

.theme-picker,
.wheel-palette-picker{
  gap:5px;
  padding-top:13px;
}

.theme-picker button,
.wheel-palette-picker button{
  height:25px;
  padding:0 8px;
  font-size:11px;
}

.auction,
.wheel-panel{
  padding:16px;
}

.search{
  flex-basis:36px;
  font-size:16px;
  padding:0 18px;
}

.lots{
  margin-top:16px;
  gap:5px;
}

.lot{
  min-height:41px;
  grid-template-columns:41px minmax(126px,1fr) 116px 54px 27px 63px;
  gap:13px;
  padding:0 18px;
}

.lot h2{
  max-height:41px;
  font-size:18px;
}

.place{
  width:55px;
  height:41px;
  font-size:16px;
}

.gold .place{
  width:54px;
  background-size:auto 16px;
}

.silver .place{
  width:54px;
  background-size:auto 16px;
}

.bronze .place{
  width:54px;
  background-size:auto 16px;
}

.rank,
.lot-title-editor,
.lot-amount-adder,
.add-row input{
  font-size:18px;
}

.amount{
  font-size:20px;
}

.plus{
  font-size:17px;
}

.delete-lot{
  width:27px;
  height:31px;
  font-size:16px;
}

.percent span{
  font-size:15px;
}

.percent i{
  width:61px;
}

.add-row{
  height:74px;
  margin-top:14px;
  padding:13px;
  grid-template-columns:1fr 171px 153px;
  gap:16px;
}

.add{
  font-size:20px;
}

.manual-lot-flight{
  height:37px;
  gap:13px;
  padding:0 16px;
}

.manual-lot-flight b{
  font-size:16px;
}

.manual-lot-flight strong{
  font-size:18px;
}

.history,
.wheel-lots-panel{
  padding:18px;
}

.tabs{
  height:43px;
  margin:16px 0 14px;
  font-size:16px;
}

.donations{
  gap:12px;
}

.donations article{
  padding:16px 14px 14px 38px;
}

.drag{
  left:14px;
  top:20px;
}

.donations b,
.donations strong{
  font-size:19px;
}

.donations p{
  margin:9px 0 6px;
  font-size:17px;
}

.cancel-btn{
  font-size:1.8em;
}

.completed-lots article.completed{
  grid-template-columns:27px minmax(0, 1fr) auto 31px;
  gap:7px 9px;
  padding:14px;
}

.completed-lots .status-icon{
  width:25px;
  height:25px;
  font-size:20px;
}

.donations .undo-btn{
  width:29px;
  height:29px;
  font-size:20px;
}

.wheel-stage{
  gap:13px;
  padding-top:13px;
}

.wheel-stage h2{
  min-height:31px;
  font-size:25px;
}

.wheel-box{
  margin-top:14px;
  margin-bottom:20px;
}

.wheel-pointer{
  top:calc(-35px + var(--wheel-pointer-offset-y));
  width:58px;
  height:91px;
}

.wheel-label{
  font-size:17px;
}

.wheel-border{
  stroke-width:4.5;
}

.wheel-center{
  width:114px;
  height:114px;
  border-width:4px;
}

.wheel-controls{
  width:min(324px, 100%);
  grid-template-columns:216px 81px;
  gap:11px;
  margin-bottom:9px;
}

.spin-button,
.spin-time,
.spin-music,
.spin-volume{
  height:47px;
}

.spin-button{
  font-size:14px;
  gap:5px;
}

.spin-button .hotkey{
  font-size:8px;
}

.spin-time,
.spin-music,
.spin-volume{
  padding:14px 11px 7px;
}

.spin-time span,
.spin-music span,
.spin-volume span{
  left:9px;
  font-size:10px;
}

.spin-time input,
.spin-music select{
  font-size:16px;
}

.spin-time b{
  font-size:14px;
}

.wheel-lots{
  gap:9px;
}

.wheel-lot{
  grid-template-columns:minmax(0,1fr) 67px;
  gap:11px;
  padding:13px 14px;
}

.wheel-lot b,
.wheel-lot span{
  font-size:16px;
}

.wheel-palette-swatch{
  width:31px;
  height:9px;
}

.settings-card{
  width:min(1110px, calc(100vw - 44px));
  gap:14px;
  padding:16px;
}

.settings-head{
  font-size:18px;
}

.settings-close{
  width:31px;
  height:31px;
  font-size:23px;
}

.settings-section{
  padding:13px;
}

.settings-section h3{
  font-size:14px;
}

.settings-section-compact{
  padding:6px 9px;
}

.settings-section-compact h3{
  margin:0;
}

.settings-section-compact .settings-segment{
  height:28px;
}

.settings-row{
  gap:11px;
}

.settings-segment{
  height:32px;
}

.settings-segment button,
.settings-checks label,
.settings-toggle,
.min-bid-list label{
  font-size:14px;
}

.min-bid-list input{
  height:32px;
  font-size:14px;
}

.platform-list span{
  min-height:27px;
  font-size:13px;
  padding:0 9px;
}

.settings-scale-control button{
  height:32px;
  font-size:13px;
}

.settings-reset-wheel{
  height:32px;
  min-width:108px;
  font-size:14px;
}

.settings-subtitle{
  font-size:13px;
}

.conversion-row{
  gap:6px;
  font-size:13px;
}

.conversion-row input{
  width:68px;
  min-width:68px;
  height:32px;
  font-size:14px;
}

@media (max-width: 900px){
  .settings-scale-control{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .settings-row{
    grid-template-columns:1fr;
  }

  .settings-sound-section{
    grid-column:auto;
  }
}
