/* lotteryv5.css - 清新质感渐变主题 */
@font-face {
    font-family: 'DigitalDisplay';
    src: url('/assets/webfonts/roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/webfonts/roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/webfonts/roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal
}

:root {
    --primary-blue: #2563EB;
    --accent-green: #10B981;
    --highlight-red: #F43F5E;
    --dark-bg: #1E293B;
    --darker-bg: #0F172A;
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --christmas-red: #dc2626;
    --christmas-green: #16a34a;
    --soft-blue: #60a5fa;
    --soft-cyan: #22d3ee;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0
}

.lottery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    margin: 50px 5px 1px 5px;
    position: relative
}

#lottery-display {
    font-size: 5rem;
    margin-top: 25px;
    font-family: 'DigitalDisplay', monospace;
    text-align: center;
    margin: 0 0 10px 0;
    letter-spacing: 3px;
    color: #333;
    min-width: 395px;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    padding: 10px;
    border-radius: 12px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #836bff
}

.lottery-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 10px 0;
    position: relative
}

.lottery-btn {
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif
}

#start-stop-btn {
    background-color: #08a656;
    width: 80px;
    height: 80px;
    font-size: 18px
}

#start-stop-btn.stop-mode {
    background-color: var(--highlight-red);
    width: 80px;
    height: 80px;
    font-size: 18px
}

#reset-btn {
    background-color: #f37429;
    width: 80px;
    height: 80px;
    font-size: 18px
}

#export-btn {
    background-color: #1a73e8;
    width: 80px;
    height: 80px;
    font-size: 18px
}

#config-btn {
    background-color: #8B5CF6;
    width: 80px;
    height: 80px;
    font-size: 18px
}

.result-list-container {
    width: 100%;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 10px
}

.result-list {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 10px
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee
}

.result-header {
    font-weight: bold;
    color: var(--primary-blue);
    position: sticky;
    top: 0;
    background: white;
    padding-bottom: 8px
}

.result-number {
    width: 50px;
    text-align: center
}

.result-project {
    width: 120px;
    text-align: center
}

.result-name {
    width: 120px;
    text-align: center
}

.result-remark {
    width: 150px;
    text-align: center
}

h3 {
    margin-top: 0;
    color: var(--primary-blue);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px
}

/* ==================== 全屏模式修改部分 ==================== */

/* 清新质感的渐变色背景 - 蓝绿色系 */
.lottery-container:fullscreen {
    width: 100vw;
    height: 100vh;
    /* 清新蓝绿色渐变 */
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.15) 0%,    /* soft-blue 浅蓝色 */
        rgba(34, 211, 238, 0.2) 25%,    /* soft-cyan 青色 */
        rgba(96, 165, 250, 0.1) 50%,
        rgba(34, 211, 238, 0.15) 75%,
        rgba(96, 165, 250, 0.2) 100%
    );
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* 添加微妙的背景纹理 */
.lottery-container:fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* 全屏时图标控件显示（不隐藏） - 去掉小背景 */
.lottery-container:fullscreen .icon-controls {
    display: flex !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    /* 去掉背景，只保留图标 */
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* 全屏时隐藏所有输入相关元素 */
.lottery-container:fullscreen .mode-selector {
    display: none !important;
}

.lottery-container:fullscreen .input-section,
.lottery-container:fullscreen .import-section {
    display: none !important;
}

/* 特别隐藏 Start Number 和 End Number 相关元素 */
.lottery-container:fullscreen .input-row,
.lottery-container:fullscreen .input-group,
.lottery-container:fullscreen label[for="start-number"],
.lottery-container:fullscreen label[for="end-number"],
.lottery-container:fullscreen #start-number,
.lottery-container:fullscreen #end-number {
    display: none !important;
}

.lottery-container:fullscreen .lottery-controls .sound-icon {
    display: none;
}

/* 全屏模式下按钮下移到底部 */
.lottery-container:fullscreen .lottery-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 全屏时数字显示样式 - 白色文字，清新阴影效果 */
.lottery-container:fullscreen #lottery-display {
    color: #ffffff;
    /* 清新柔和的阴影效果 */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(96, 165, 250, 0.4),
        0 0 60px rgba(34, 211, 238, 0.3);
    font-size: 8rem;
    height: 220px;
    background: transparent; /* 去掉小背景 */
    border: none; /* 去掉边框 */
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* 全屏时结果列表样式 */
.lottery-container:fullscreen .result-list-container {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    margin-top: 30px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 800px;
}

.lottery-container:fullscreen .result-row {
    color: #1e293b;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.lottery-container:fullscreen .result-header {
    color: var(--soft-blue);
    background: rgba(96, 165, 250, 0.1);
    backdrop-filter: blur(5px);
}

.lottery-container:fullscreen h3 {
    color: var(--soft-blue);
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 兼容不同浏览器 */
.lottery-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.15) 0%,
        rgba(34, 211, 238, 0.2) 25%,
        rgba(96, 165, 250, 0.1) 50%,
        rgba(34, 211, 238, 0.15) 75%,
        rgba(96, 165, 250, 0.2) 100%
    );
    justify-content: center;
    padding: 20px;
    position: relative;
}

.lottery-container:-webkit-full-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.lottery-container:-webkit-full-screen .icon-controls {
    display: flex !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.lottery-container:-webkit-full-screen .mode-selector {
    display: none !important;
}

.lottery-container:-webkit-full-screen .input-section,
.lottery-container:-webkit-full-screen .import-section {
    display: none !important;
}

.lottery-container:-webkit-full-screen .input-row,
.lottery-container:-webkit-full-screen .input-group,
.lottery-container:-webkit-full-screen label[for="start-number"],
.lottery-container:-webkit-full-screen label[for="end-number"],
.lottery-container:-webkit-full-screen #start-number,
.lottery-container:-webkit-full-screen #end-number {
    display: none !important;
}

.lottery-container:-webkit-full-screen .lottery-controls .sound-icon {
    display: none;
}

.lottery-container:-webkit-full-screen .lottery-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lottery-container:-webkit-full-screen #lottery-display {
    color: #ffffff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(96, 165, 250, 0.4),
        0 0 60px rgba(34, 211, 238, 0.3);
    font-size: 8rem;
    height: 220px;
    background: transparent;
    border: none;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.lottery-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.15) 0%,
        rgba(34, 211, 238, 0.2) 25%,
        rgba(96, 165, 250, 0.1) 50%,
        rgba(34, 211, 238, 0.15) 75%,
        rgba(96, 165, 250, 0.2) 100%
    );
    justify-content: center;
    padding: 20px;
    position: relative;
}

.lottery-container:-moz-full-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.lottery-container:-moz-full-screen .icon-controls {
    display: flex !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.lottery-container:-moz-full-screen .mode-selector {
    display: none !important;
}

.lottery-container:-moz-full-screen .input-section,
.lottery-container:-moz-full-screen .import-section {
    display: none !important;
}

.lottery-container:-moz-full-screen .input-row,
.lottery-container:-moz-full-screen .input-group,
.lottery-container:-moz-full-screen label[for="start-number"],
.lottery-container:-moz-full-screen label[for="end-number"],
.lottery-container:-moz-full-screen #start-number,
.lottery-container:-moz-full-screen #end-number {
    display: none !important;
}

.lottery-container:-moz-full-screen .lottery-controls .sound-icon {
    display: none;
}

.lottery-container:-moz-full-screen .lottery-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lottery-container:-moz-full-screen #lottery-display {
    color: #ffffff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(96, 165, 250, 0.4),
        0 0 60px rgba(34, 211, 238, 0.3);
    font-size: 8rem;
    height: 220px;
    background: transparent;
    border: none;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.lottery-container:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.15) 0%,
        rgba(34, 211, 238, 0.2) 25%,
        rgba(96, 165, 250, 0.1) 50%,
        rgba(34, 211, 238, 0.15) 75%,
        rgba(96, 165, 250, 0.2) 100%
    );
    justify-content: center;
    padding: 20px;
    position: relative;
}

.lottery-container:-ms-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.lottery-container:-ms-fullscreen .icon-controls {
    display: flex !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.lottery-container:-ms-fullscreen .mode-selector {
    display: none !important;
}

.lottery-container:-ms-fullscreen .input-section,
.lottery-container:-ms-fullscreen .import-section {
    display: none !important;
}

.lottery-container:-ms-fullscreen .input-row,
.lottery-container:-ms-fullscreen .input-group,
.lottery-container:-ms-fullscreen label[for="start-number"],
.lottery-container:-ms-fullscreen label[for="end-number"],
.lottery-container:-ms-fullscreen #start-number,
.lottery-container:-ms-fullscreen #end-number {
    display: none !important;
}

.lottery-container:-ms-fullscreen .lottery-controls .sound-icon {
    display: none;
}

.lottery-container:-ms-fullscreen .lottery-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lottery-container:-ms-fullscreen #lottery-display {
    color: #ffffff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(96, 165, 250, 0.4),
        0 0 60px rgba(34, 211, 238, 0.3);
    font-size: 8rem;
    height: 220px;
    background: transparent;
    border: none;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* ==================== 原有样式保持不变 ==================== */
.icon-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px
}

.icon-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-size: 24px;
    text-align: center;
    line-height: 24px
}

.icon-btn:hover {
    opacity: 1
}

.tooltip {
    position: absolute;
    top: 30px;
    right: 0;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none
}

.icon-btn:hover .tooltip {
    opacity: 0.9;
    transition-delay: 0.5s
}

.sound-icon {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-top: 3px;
    width: 30px;
    height: 30px
}

.sound-icon:hover {
    opacity: 1
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    margin: 10px 0
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: center
}

.input-group {
    display: flex;
    gap: 2px;
    align-items: center;
    flex: 1;
    justify-content: center
}

.input-group label {
    min-width: 80px;
    font-weight: bold;
    color: #333
}

.input-group input {
    flex: 1;
    padding: 5px;
    border: 1px solid #9a9a9a;
    border-radius: 6px;
    font-size: 16px;
    width: 120px
}

.input-group button {
    padding: 8px 12px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold
}

.input-group button:hover {
    background-color: #1d4ed8
}

.import-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    margin: 10px 0
}

.import-section textarea {
    width: 100%;
    height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical
}

.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center
}

.mode-btn {
    padding: 10px;
    background-color: #d6dee8;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s
}

.mode-btn.active {
    background-color: var(--primary-blue);
    color: white
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 1920px;
    margin: -52px 0 auto 0;
    padding: 1px;
    text-align: center;
}

.file-controls {
    display: flex;
    gap: 10px;
    margin: 8px 0;
    justify-content: center
}

.file-btn {
    padding: 6px 12px;
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold
}

.file-btn:hover {
    background-color: #0da271
}

.time-sync-info {
    margin-top: 8px;
    font-size: 14px;
    color: #666
}

.import-info {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 3px;
    font-size: 13px;
    color: #0369a1
}

.import-info h4 {
    margin: 0 0 3px 0;
    color: #0c4a6e;
    font-size: 14px
}

.import-stats {
    margin-top: 10px;
    padding: 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
    font-size: 14px;
    color: #475569
}

.config-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center
}

.config-content {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto
}

.config-section {
    margin-bottom: 5px
}

.config-section h4 {
    margin-bottom: 3px;
    color: var(--primary-blue);
    font-size: 14px
}

.config-input-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px
}

.config-input-group label {
    font-weight: bold;
    font-size: 13px
}

.config-input-group input,
.config-input-group textarea,
.config-input-group select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px
}

.config-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px
}

.config-actions button {
    margin: 15px 1px 15px 1px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px
}

.config-save {
    background-color: var(--primary-blue);
    color: white
}

.config-cancel {
    background-color: #94A3B8;
    color: white
}

.import-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #10B981;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: bold;
    animation: fadeInOut 2s ease-in-out;
    opacity: 0
}

.import-notification.error {
    background-color: #F43F5E
}

.time-options {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    justify-content: center
}

.time-option {
    display: flex;
    align-items: center;
    gap: 5px
}

.time-option input {
    margin: 0
}

.time-option label {
    margin: 0;
    font-weight: normal;
    font-size: 13px;
    cursor: pointer
}

.time-setting-content {
    margin-top: 3px;
    padding: 5px;
    background-color: #f8fafc;
    border-radius: 4px;
    font-size: 12px
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center
}

.time-input-group label {
    min-width: auto;
    font-weight: normal
}

.time-input-group input {
    width: 80px
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px)
    }
    20% {
        opacity: 1;
        transform: translateY(0)
    }
    80% {
        opacity: 1;
        transform: translateY(0)
    }
    100% {
        opacity: 0;
        transform: translateY(-20px)
    }
}

@media (max-width: 1024px) {
    .main-content {
        margin-top: 10px
    }
    #lottery-display {
        font-size: 8.5rem;
        letter-spacing: 1px;
        margin-top: 25px;
        min-width: 250px;
        height: 150px
    }
}

@media (max-width: 768px) {
    #lottery-display {
        font-size: 6rem;
        letter-spacing: 1px;
        margin-top: 25px;
        min-width: 250px;
        height: 120px
    }
    .lottery-container {
        padding: 10px 5px 30px 5px;
        margin: 45px 20px 1px 20px;
        width: calc(100% - 10px)
    }
    .lottery-controls {
        gap: 10px;
        flex-wrap: wrap;
        margin: 10px 0
    }
    .icon-controls {
        display: none
    }
    .input-group {
        flex-direction: column;
        align-items: center
    }
    .input-group label {
        min-width: auto
    }
    .file-controls {
        flex-direction: row;
        justify-content: center
    }
    .result-row {
        flex-wrap: wrap;
        gap: 5px
    }
    .result-number,
    .result-project,
    .result-name,
    .result-remark {
        flex: 1;
        min-width: 80px
    }
    .mode-selector {
        flex-wrap: wrap;
        justify-content: center
    }
    .input-row {
        flex-direction: row;
        justify-content: center
    }
    .time-options {
        flex-direction: row;
        gap: 15px;
        justify-content: center
    }
    .time-input-group {
        justify-content: center
    }
}

@media (max-width: 860px) {
    #lottery-display {
        font-size: 7rem;
        height: 290px
    }
}

@media (max-width: 670px) {
    #lottery-display {
        font-size: 5.5rem;
        height: 120px
    }
}

@media (max-width: 550px) {
    #lottery-display {
        font-size: 4.7rem;
        height: 110px
    }
}

@media (max-width: 480px) {
    #lottery-display {
        font-size: 4rem;
        height: 100px
    }
}

@media (max-width: 468px) {
    #lottery-display {
        font-size: 3.5rem;
        height: 90px
    }
}

@media (max-width: 400px) {
    #lottery-display {
        font-size: 3rem;
        height: 90px
    }
}

@media (max-width: 338px) {
    #lottery-display {
        font-size: 2.7rem;
        height: 70px
    }
}